adk_core library
Classes
- App
- ArtifactVersion
- BaseAgent
- BaseAgentState
- BaseArtifactService
- BaseLlm
- BaseMemoryService
- BasePlugin
- BaseSessionService
- BaseTelemetryService
- BaseTool
- Content
- Context
- Event
- EventActions
- EventCompaction
- EventsCompactionConfig
- FileData
- Frontmatter
- L1 skill metadata parsed from SKILL.md frontmatter.
- FunctionCall
- FunctionCallingConfig
- FunctionDeclaration
- FunctionResponse
- FunctionTool
- Gemini
- GenerateContentConfig
- GetSessionConfig
- HttpOptions
- HttpRetryOptions
- InlineData
- InMemoryArtifactService
- InMemoryMemoryService
- InMemoryRunner
- InMemorySessionService
- InMemoryTelemetryService
- InvocationContext
- InvocationPlan
- ListSessionsResponse
- LiveActivityEnd
- LiveActivityStart
- LiveConnectConfig
- LiveRequest
- LiveRequestQueue
- LlmAgent
- LlmRequest
- LlmResponse
- LlmToolConfig
- LoadMcpResourceTool
- LoopAgent
- LoopAgentState
- McpBaseTool
- McpResourceContent
-
Content returned by
resources/read. - McpSessionManager
- McpTool
- McpToolset
- MemoryEntry
- ParallelAgent
- Part
- PluginManager
- Resources
- L3 skill resources loaded from references/assets/scripts directories.
- ResumabilityConfig
- RunConfig
- Runner
- Script
- Wrapper for script content.
- SearchMemoryResponse
- SequentialAgent
- SequentialAgentState
- Session
- Skill
- Complete skill representation with metadata, instructions, and resources.
- SkillDescriptor
- SkillRegistry
- SkillToolset
- State
- StdioConnectionParams
- Process launch options for an MCP stdio server.
- StreamableHTTPConnectionParams
- Connection options for an MCP server that supports Streamable HTTP.
- TelemetryLogRecord
- TelemetrySpan
- ToolDeclaration
- ToolThreadPoolConfig
Constants
- defaultSkillSystemInstruction → const String
Functions
-
formatSkillsAsXml(
List< SkillDescriptor> skills) → String -
loadSkillFromDir(
String skillDirPath) → Skill -
readSkillProperties(
String skillDirPath) → Frontmatter -
validateAppName(
String name) → void -
validateSkillDir(
String skillDirPath) → List< String>
Typedefs
-
AfterModelCallback
= FutureOr<
LlmResponse?> Function(CallbackContext callbackContext, LlmResponse llmResponse) -
AfterToolCallback
= FutureOr<
Map< Function(BaseTool tool, Map<String, dynamic> ?>String, dynamic> args, ToolContext toolContext, Map<String, dynamic> toolResponse) - Agent = LlmAgent
-
AgentLifecycleCallback
= FutureOr<
Content?> Function(CallbackContext callbackContext) -
BeforeModelCallback
= FutureOr<
LlmResponse?> Function(CallbackContext callbackContext, LlmRequest llmRequest) -
BeforeToolCallback
= FutureOr<
Map< Function(BaseTool tool, Map<String, dynamic> ?>String, dynamic> args, ToolContext toolContext) - CallbackContext = Context
-
ConfirmationPredicate
= FutureOr<
bool> Function(Map<String, dynamic> args) -
GeminiGenerateHook
= Stream<
LlmResponse> Function(LlmRequest request, bool stream) -
GeminiInteractionsInvoker
= Stream<
LlmResponse> Function(LlmRequest request, {required bool stream}) - GeminiLiveSessionFactory = GeminiLiveSession Function(LlmRequest request)
- GoogleLlm = Gemini
-
InstructionProvider
= FutureOr<
String> Function(ReadonlyContext context) -
JsonMap
= Map<
String, dynamic> - McpConnectionParams = Object
-
McpHeaderProvider
= Map<
String, String> Function(ReadonlyContext readonlyContext) -
McpToolExecutor
= FutureOr<
Object?> Function(Map<String, dynamic> args, {Map<String, String> ? headers}) -
McpToolHeaderProvider
= Map<
String, String> Function(ReadonlyContext readonlyContext) -
OnModelErrorCallback
= FutureOr<
LlmResponse?> Function(CallbackContext callbackContext, LlmRequest llmRequest, Exception error) -
OnToolErrorCallback
= FutureOr<
Map< Function(BaseTool tool, Map<String, dynamic> ?>String, dynamic> args, ToolContext toolContext, Exception error) - ToolContext = Context
Exceptions / Errors
- AlreadyExistsError
- InputValidationError
- LlmCallsLimitExceededError
- McpHttpStatusException
- Thrown when an HTTP request returns a non-success status code.
- McpJsonRpcException
-
Thrown when a JSON-RPC response contains an
errorobject. - NotFoundError
- PluginManagerException
- ResourceExhaustedModelException
- SessionNotFoundError