DummyAgent
class DummyAgent(name: String = "test-agent", subAgents: List<ERROR CLASS: Symbol not found for BaseAgent> = emptyList(), beforeAgentCallbacks: List<ERROR CLASS: Symbol not found for BeforeAgentCallback> = emptyList(), afterAgentCallbacks: List<ERROR CLASS: Symbol not found for AfterAgentCallback> = emptyList(), description: String = "", disallowTransferToParent: Boolean = false, disallowTransferToPeers: Boolean = false, val onRunAsync: suspend ERROR CLASS: Symbol not found for FlowCollector<ERROR CLASS: Symbol not found for Event>.(ERROR CLASS: Symbol not found for InvocationContext) -> Unit = {}) : <ERROR CLASS> ERROR CLASS: Symbol not found for BaseAgent
A configurable dummy implementation of BaseAgent designed for unit testing.
This fixture assists developers in validating hierarchical agent designs and callback routing logic without relying on deeply wired production agents.
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
Forwarded to BaseAgent.disallowTransferToParent.
disallowTransferToPeers
Forwarded to BaseAgent.disallowTransferToPeers.
onRunAsync
Configures the lambda to simulate execution within runAsyncImpl.
Constructors
Link copied to clipboard
constructor(name: String = "test-agent", subAgents: List<ERROR CLASS: Symbol not found for BaseAgent> = emptyList(), beforeAgentCallbacks: List<ERROR CLASS: Symbol not found for BeforeAgentCallback> = emptyList(), afterAgentCallbacks: List<ERROR CLASS: Symbol not found for AfterAgentCallback> = emptyList(), description: String = "", disallowTransferToParent: Boolean = false, disallowTransferToPeers: Boolean = false, onRunAsync: suspend ERROR CLASS: Symbol not found for FlowCollector<ERROR CLASS: Symbol not found for Event>.(ERROR CLASS: Symbol not found for InvocationContext) -> Unit = {})
Properties
Link copied to clipboard
val onRunAsync: suspend ERROR CLASS: Symbol not found for FlowCollector<ERROR CLASS: Symbol not found for Event>.(ERROR CLASS: Symbol not found for InvocationContext) -> Unit
Functions
Link copied to clipboard
open override fun runAsyncImpl(context: ERROR CLASS: Symbol not found for InvocationContext): ERROR CLASS: Symbol not found for Flow<ERROR CLASS: Symbol not found for Event>