Package-level declarations
Types
Link copied to clipboard
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.
Functions
Link copied to clipboard
Link copied to clipboard
A model-role text Content (the typical model response body).
Link copied to clipboard
fun modelParallelFunctionCallsResponse(vararg calls: ERROR CLASS: Symbol not found for FunctionCall): ERROR CLASS: Symbol not found for LlmResponse
A model response containing several FunctionCall parts in a single turn.
Link copied to clipboard
fun testInvocationContext(agent: ERROR CLASS: Symbol not found for BaseAgent = DummyAgent(), session: ERROR CLASS: Symbol not found for Session = testSession(), runConfig: ERROR CLASS: Symbol not found for RunConfig?? = RunConfig(), invocationId: String = "test-invocation-id", branch: String? = null, sessionService: ERROR CLASS: Symbol not found for SessionService?? = null, artifactService: ERROR CLASS: Symbol not found for ArtifactService?? = null, memoryService: ERROR CLASS: Symbol not found for MemoryService?? = null, resumabilityConfig: ERROR CLASS: Symbol not found for ResumabilityConfig?? = null, userContent: ERROR CLASS: Symbol not found for Content?? = null): ERROR CLASS: Symbol not found for InvocationContext
An InvocationContext populated with sensible defaults for tests.
Link copied to clipboard
fun testSession(appName: String = "test_app_name", userId: String = "test_user_id", id: String? = "test_session_id"): ERROR CLASS: Symbol not found for Session
A Session with a SessionKey and otherwise default state and event list.
Link copied to clipboard
fun testToolContext(invocationContext: ERROR CLASS: Symbol not found for InvocationContext = testInvocationContext(), actions: ERROR CLASS: Symbol not found for EventActions = EventActions(), functionCallId: String? = null, eventId: String? = null, toolConfirmation: ERROR CLASS: Symbol not found for ToolConfirmation?? = null): ERROR CLASS: Symbol not found for ToolContext
A ToolContext wrapping an InvocationContext built by testInvocationContext.
Link copied to clipboard
fun userFunctionResponse(name: String, id: String, response: Map<String, Any?> = emptyMap()): ERROR CLASS: Symbol not found for Content
A user-role Content carrying a single FunctionResponse - what the caller sends back when resuming after a long-running tool, an HITL approval, or a manual function-response injection.
Link copied to clipboard
A user-role text Content (the typical user message).