DummyAgent

constructor(name: String = "test-agent", subAgents: List<BaseAgent> = emptyList(), beforeAgentCallbacks: List<BeforeAgentCallback> = emptyList(), afterAgentCallbacks: List<AfterAgentCallback> = emptyList(), description: String = "", disallowTransferToParent: Boolean = false, disallowTransferToPeers: Boolean = false, onRunAsync: suspend FlowCollector<Event>.(InvocationContext) -> Unit = {})

Parameters

name

The agent's identifier (defaults to "test-agent").

subAgents

The sub-agents managed by this agent (default is empty).

beforeAgentCallbacks

Callbacks executed prior to this agent's run.

afterAgentCallbacks

Callbacks executed after this agent's run.

description

The agent's description (default is empty).

disallowTransferToParent
disallowTransferToPeers
onRunAsync

Configures the lambda to simulate execution within runAsyncImpl.