adk-python API reference
400 public APIs from adk-python (google/adk-python) — 162 classes, 130 functions, 108 methods. Signatures extracted by static analysis of the actual source.
Repository: google/adk-python
| Kind | Count |
|---|---|
| Classes | 162 |
| Functions | 130 |
| Methods | 108 |
API list
func
src.google.adk.a2a._compat.a2a_to_dict(obj:Any) -> dict[str, Any]Serializes an A2A object to a plain dict.
func
src.google.adk.a2a._compat.add_activated_extension(context:Any, uri:str) -> NoneActivates an extension on the request context if supported.
func
src.google.adk.a2a._compat.data_part_blob_bytes(p:Part) -> bytesSerializes a data Part for embedding as a generic inline blob.
func
src.google.adk.a2a._compat.data_part_dict(p:Part) -> dict[str, Any]Returns the structured data of a data Part as a plain dict.
func
src.google.adk.a2a._compat.file_part_mime_type(p:Part) -> Optional[str]Returns the media type of a file Part.
func
src.google.adk.a2a._compat.file_part_name(p:Part) -> Optional[str]Returns the display name / filename of a file Part.
func
src.google.adk.a2a._compat.file_part_uri(p:Part) -> Optional[str]Returns the URI of a URI-backed file Part, else None.
func
src.google.adk.a2a._compat.is_data_part(p:Part) -> boolReturns True if the Part carries structured data.
func
src.google.adk.a2a._compat.is_file_part(p:Part) -> boolReturns True if the Part carries raw bytes or a URL.
func
src.google.adk.a2a._compat.is_text_part(p:Part) -> boolReturns True if the Part carries text content.
func
src.google.adk.a2a._compat.make_api_key_scheme(*name:str, *location:str='header') -> AnyBuilds an API-key SecurityScheme.
func
src.google.adk.a2a._compat.make_client_config(*httpx_client:Any, **kwargs:Any) -> AnyBuilds a version-correct A2A ``ClientConfig``.
func
src.google.adk.a2a._compat.make_data_part(*data:dict[str, Any], *metadata:Optional[dict[str, Any]]=None) -> PartBuilds a structured-data Part.
func
src.google.adk.a2a._compat.make_file_part_with_bytes(*data:bytes, *mime_type:str='', *name:Optional[str]=None) -> PartBuilds a file Part carrying raw bytes.
func
src.google.adk.a2a._compat.make_file_part_with_uri(*uri:str, *mime_type:str='', *name:Optional[str]=None) -> PartBuilds a file Part referencing a URI.
func
src.google.adk.a2a._compat.make_text_part(text:str) -> PartBuilds a text Part.
func
src.google.adk.a2a._compat.meta_to_dict(metadata:Any) -> dict[str, Any]Normalizes A2A metadata to a plain dict.
func
src.google.adk.a2a._compat.metadata_get(metadata:Any, key:str, default:Any=None) -> AnyReads a key from A2A metadata.
func
src.google.adk.a2a._compat.normalize_message(msg:Any) -> AnyCollapses an empty 1.x proto ``Message`` to ``None``.
func
src.google.adk.a2a._compat.parse_agent_card(data:dict[str, Any]) -> AgentCardBuilds an AgentCard from a JSON dict.
func
src.google.adk.a2a._compat.part_metadata(p:Part) -> dict[str, Any]Reads a Part's metadata.
func
src.google.adk.a2a._compat.part_text(p:Part) -> strReads the text of a text Part.
func
src.google.adk.a2a._compat.rebind_client_factory_httpx(factory:Any, httpx_client:Any) -> AnyReturns a client factory bound to ``httpx_client``.
func
src.google.adk.a2a._compat.role_to_str(role:Any) -> strMaps an A2A ``Role`` to the GenAI content role string.
func
src.google.adk.a2a._compat.set_event_metadata(event:Any, metadata:dict[str, Any]) -> NoneSet metadata on an A2A event.
func
src.google.adk.a2a._compat.set_part_metadata(p:Part, metadata:dict[str, Any]) -> NoneWrites a Part's metadata.
func
src.google.adk.a2a._compat.stream_item_kind(item:Any) -> tuple[str, Any]Returns ``(kind, payload)`` for a stream item.
class
src.google.adk.a2a.agent.config.A2aRemoteAgentConfigConfiguration for A2A remote agents.
class
src.google.adk.a2a.agent.config.CardRequestInterceptorInterceptor for the remote agent card fetch request.
class
src.google.adk.a2a.agent.config.RequestInterceptorInterceptor for A2A requests.
func
src.google.adk.a2a.converters.part_converter.convert_a2a_part_to_genai_part(a2a_part:a2a_types.Part) -> Optional[genai_types.Part]Convert an A2A Part to a Google GenAI Part.
func
src.google.adk.a2a.converters.part_converter.convert_genai_part_to_a2a_part(part:genai_types.Part) -> Optional[a2a_types.Part]Convert a Google GenAI Part to an A2A Part.
class
src.google.adk.a2a.converters.request_converter.AgentRunRequestData model for arguments passed to the ADK runner.
class
src.google.adk.a2a.executor.config.A2aAgentExecutorConfigConfiguration for the A2aAgentExecutor.
class
src.google.adk.a2a.executor.config.ExecuteInterceptorInterceptor for the A2aAgentExecutor.
class
src.google.adk.a2a.executor.executor_context.ExecutorContextContext for the executor.
func
src.google.adk.a2a.logs.log_utils.build_a2a_request_log(req:A2AMessage) -> strBuilds a structured log representation of an A2A request.
func
src.google.adk.a2a.logs.log_utils.build_message_part_log(part:A2APart) -> strBuilds a log representation of an A2A message part.
func
src.google.adk.a2a.utils.agent_to_a2a.create_runner() -> RunnerCreate a runner for the agent or workflow.
class
src.google.adk.agents._streaming_mode.StreamingModeStreaming modes for agent execution.
class
src.google.adk.agents.agent_config.AgentConfigThe config for the YAML schema to create an agent.
func
src.google.adk.agents.agent_config.agent_config_discriminator(v:Any) -> strDiscriminator function that returns the tag name for Pydantic.
class
src.google.adk.agents.base_agent.BaseAgentBase class for all agents in Agent Development Kit.
method
src.google.adk.agents.base_agent.BaseAgent.clone(update:Mapping[str, Any] | None=None) -> SelfAgentCreates a copy of this agent instance.
method
src.google.adk.agents.base_agent.BaseAgent.find_agent(name:str) -> Optional[BaseAgent]Finds the agent with the given name in this agent and its descendants.
method
src.google.adk.agents.base_agent.BaseAgent.find_sub_agent(name:str) -> Optional[BaseAgent]Finds the agent with the given name in this agent's descendants.
method
src.google.adk.agents.base_agent.BaseAgent.from_config(config:BaseAgentConfig, config_abs_path:str) -> SelfAgentCreates an agent from a config.
method
src.google.adk.agents.base_agent.BaseAgent.root_agent() -> BaseAgentGets the root agent of this agent.
method
src.google.adk.agents.base_agent.BaseAgent.validate_sub_agents_unique_names(value:list[BaseAgent]) -> list[BaseAgent]Validates that all sub-agents have unique names.
class
src.google.adk.agents.base_agent.BaseAgentStateBase class for all agent states.
class
src.google.adk.agents.base_agent_config.BaseAgentConfigThe config for the YAML schema of a BaseAgent.
class
src.google.adk.agents.common_configs.AgentRefConfigThe config for the reference to another agent.
func
src.google.adk.agents.config_agent_utils.from_config(config_path:str) -> BaseAgentBuild agent from a configfile path.
func
src.google.adk.agents.config_agent_utils.resolve_agent_reference(ref_config:AgentRefConfig, referencing_agent_config_abs_path:str) -> BaseAgentBuild an agent from a reference.
func
src.google.adk.agents.config_agent_utils.resolve_callbacks(callbacks_config:List[CodeConfig]) -> AnyResolve callbacks from configuration.
func
src.google.adk.agents.config_agent_utils.resolve_code_reference(code_config:CodeConfig) -> AnyResolve a code reference to actual Python object.
class
src.google.adk.agents.context.ContextThe context within an agent run.
method
src.google.adk.agents.context.Context.actions() -> EventActionsThe event actions for the current context.
method
src.google.adk.agents.context.Context.add_session_to_memory() -> NoneTriggers memory generation for the current session.
method
src.google.adk.agents.context.Context.attempt_count() -> intReturns the current attempt number (1-based).
method
src.google.adk.agents.context.Context.branch() -> str | NoneThe branch path of the current invocation context.
method
src.google.adk.agents.context.Context.custom_metadata() -> dict[str, Any]Returns the custom metadata dictionary.
method
src.google.adk.agents.context.Context.error() -> Exception | NoneThe exception raised by the node, if any.
method
src.google.adk.agents.context.Context.error_node_path() -> strThe path of the node that failed.
method
src.google.adk.agents.context.Context.event_author() -> strAuthor name stamped on events emitted by this node.
method
src.google.adk.agents.context.Context.function_call_id() -> str | NoneThe function call id of the current tool call.
method
src.google.adk.agents.context.Context.get_artifact_version(filename:str, version:int | None=None) -> ArtifactVersion | NoneGets artifact version info.
method
src.google.adk.agents.context.Context.get_auth_response(auth_config:AuthConfig) -> AuthCredential | NoneGets the auth response credential from session state.
method
src.google.adk.agents.context.Context.interrupt_ids() -> set[str]Interrupt IDs accumulated during this execution.
method
src.google.adk.agents.context.Context.load_artifact(filename:str, version:int | None=None) -> types.Part | NoneLoads an artifact attached to the current session.
method
src.google.adk.agents.context.Context.load_credential(auth_config:AuthConfig) -> AuthCredential | NoneLoads a credential from the credential service.
method
src.google.adk.agents.context.Context.node() -> BaseNode | NoneReturns the node instance of this context.
method
src.google.adk.agents.context.Context.output() -> AnyThe node's result value.
method
src.google.adk.agents.context.Context.parent_ctx() -> Context | NoneReturns the parent node's Context.
method
src.google.adk.agents.context.Context.request_confirmation(*hint:str | None=None, *payload:Any | None=None) -> NoneRequests confirmation for the current tool call.
method
src.google.adk.agents.context.Context.request_credential(auth_config:AuthConfig) -> NoneRequests a credential for the current tool call.
method
src.google.adk.agents.context.Context.route() -> RouteValue | list[RouteValue] | NoneRouting value for conditional edges.
method
src.google.adk.agents.context.Context.run_id() -> strReturns the execution ID of the current node.
method
src.google.adk.agents.context.Context.save_credential(auth_config:AuthConfig) -> NoneSaves a credential to the credential service.
method
src.google.adk.agents.context.Context.search_memory(query:str) -> SearchMemoryResponseSearches the memory of the current user.
method
src.google.adk.agents.context.Context.session() -> SessionReturns the current session for this invocation.
method
src.google.adk.agents.context.Context.state() -> StateThe delta-aware state of the current session.
method
src.google.adk.agents.context.Context.telemetry_context() -> TelemetryContextReturns the telemetry context.
class
src.google.adk.agents.live_request_queue.LiveRequestRequest send to live agents.
class
src.google.adk.agents.llm.task._finish_task_tool.FinishTaskToolTool for signaling LlmAgent task completion.
method
src.google.adk.agents.llm.task._finish_task_tool.FinishTaskTool.run_async(*args:dict[str, Any], *tool_context:ToolContext) -> str | dict[str, str]Execute the finish_task tool.
class
src.google.adk.agents.llm.task._task_models.TaskRequestA request to delegate a task to a sub-agent.
class
src.google.adk.agents.llm.task._task_models.TaskResultThe result returned by a task agent upon completion.
class
src.google.adk.agents.llm_agent.LlmAgentLLM-based Agent.
method
src.google.adk.agents.llm_agent.LlmAgent.canonical_model() -> BaseLlmThe resolved self.model field as BaseLlm.
class
src.google.adk.agents.llm_agent_config.LlmAgentConfigThe config for the YAML schema of a LlmAgent.
class
src.google.adk.agents.loop_agent.LoopAgentA shell agent that run its sub-agents in a loop.
class
src.google.adk.agents.loop_agent.LoopAgentStateState for LoopAgent.
class
src.google.adk.agents.loop_agent_config.LoopAgentConfigThe config for the YAML schema of a LoopAgent.
class
src.google.adk.agents.mcp_instruction_provider.McpInstructionProviderFetches agent instructions from an MCP server.
class
src.google.adk.agents.parallel_agent_config.ParallelAgentConfigThe config for the YAML schema of a ParallelAgent.
class
src.google.adk.agents.remote_a2a_agent.A2AClientErrorRaised when A2A client operations fail.
class
src.google.adk.agents.remote_a2a_agent.AgentCardResolutionErrorRaised when agent card resolution fails.
class
src.google.adk.agents.run_config.RunConfigConfigs for runtime behavior of agents.
class
src.google.adk.agents.run_config.ToolThreadPoolConfigConfiguration for the tool thread pool executor.
class
src.google.adk.agents.sequential_agent.SequentialAgentA shell agent that runs its sub-agents in sequence.
class
src.google.adk.agents.sequential_agent.SequentialAgentStateState for SequentialAgent.
class
src.google.adk.agents.transcription_entry.TranscriptionEntryStore the data that can be used for transcription.
class
src.google.adk.apps._configs.EventsCompactionConfigThe config of event compaction for an application.
class
src.google.adk.apps._configs.ResumabilityConfigThe config of the resumability for an application.
class
src.google.adk.apps.app.AppRepresents an LLM-backed agentic application.
func
src.google.adk.apps.app.validate_app_name(name:str) -> NoneEnsures the provided application name is safe and intuitive.
class
src.google.adk.apps.base_events_summarizer.BaseEventsSummarizerBase interface for compacting events.
method
src.google.adk.apps.base_events_summarizer.BaseEventsSummarizer.maybe_summarize_events(*events:list[Event]) -> Optional[Event]Compact a list of events into a single event.
class
src.google.adk.artifacts.artifact_util.ParsedArtifactUriThe result of parsing an artifact URI.
func
src.google.adk.artifacts.artifact_util.get_artifact_uri(app_name:str, user_id:str, filename:str, version:int, session_id:str | None=None) -> strConstructs an artifact URI.
func
src.google.adk.artifacts.artifact_util.is_artifact_ref(artifact:types.Part) -> boolChecks if an artifact part is an artifact reference.
func
src.google.adk.artifacts.artifact_util.parse_artifact_uri(uri:str) -> ParsedArtifactUri | NoneParses an artifact URI.
func
src.google.adk.artifacts.artifact_util.validate_path_segment(value:str, field_name:str) -> NoneRejects values that could alter the constructed path.
class
src.google.adk.artifacts.base_artifact_service.BaseArtifactServiceAbstract base class for artifact services.
method
src.google.adk.artifacts.base_artifact_service.BaseArtifactService.delete_artifact(*app_name:str, *user_id:str, *filename:str, *session_id:Optional[str]=None) -> NoneDeletes an artifact.
method
src.google.adk.artifacts.base_artifact_service.BaseArtifactService.list_versions(*app_name:str, *user_id:str, *filename:str, *session_id:Optional[str]=None) -> list[int]Lists all versions of an artifact.
func
src.google.adk.artifacts.base_artifact_service.ensure_part(artifact:Union[types.Part, dict[str, Any]]) -> types.PartNormalizes an artifact to a ``types.Part`` instance.
class
src.google.adk.auth.auth_credential.AuthCredentialData class representing an authentication credential.
class
src.google.adk.auth.auth_credential.AuthCredentialTypesRepresents the type of authentication credential.
class
src.google.adk.auth.auth_credential.HttpAuthThe credentials and metadata for HTTP authentication.
class
src.google.adk.auth.auth_credential.ServiceAccountRepresents Google Service Account configuration.
class
src.google.adk.auth.auth_credential.ServiceAccountCredentialRepresents Google Service Account configuration.
class
src.google.adk.auth.auth_provider_registry.AuthProviderRegistryRegistry for auth provider instances.
class
src.google.adk.auth.auth_schemes.CustomAuthSchemeA flexible model for custom authentication schemes.
class
src.google.adk.auth.auth_schemes.OAuthGrantTypeRepresents the OAuth2 flow (or grant type).
method
src.google.adk.auth.auth_schemes.OAuthGrantType.from_flow(flow:OAuthFlows) -> Optional['OAuthGrantType']Converts an OAuthFlows object to a OAuthGrantType.
class
src.google.adk.auth.exchanger.base_credential_exchanger.BaseCredentialExchangerBase interface for credential exchangers.
method
src.google.adk.auth.exchanger.base_credential_exchanger.BaseCredentialExchanger.exchange(auth_credential:AuthCredential, auth_scheme:Optional[AuthScheme]=None) -> ExchangeResultExchange credential if needed.
func
src.google.adk.auth.oauth2_credential_util.update_credential_with_tokens(auth_credential:AuthCredential, tokens:OAuth2Token) -> NoneUpdate the credential with new tokens.
class
src.google.adk.auth.refresher.base_credential_refresher.BaseCredentialRefresherBase interface for credential refreshers.
method
src.google.adk.auth.refresher.base_credential_refresher.BaseCredentialRefresher.refresh(auth_credential:AuthCredential, auth_scheme:Optional[AuthScheme]=None) -> AuthCredentialRefreshes a credential if needed.
func
src.google.adk.cli.api_server.ApiServer.get_adk_app_info(app_name:str) -> AppInfoReturns the detailed info for a given ADK app.
func
src.google.adk.cli.api_server.ApiServer.save_artifact(app_name:str, user_id:str, session_id:str, req:SaveArtifactRequest) -> ArtifactVersionRequest payload for saving a new artifact.
func
src.google.adk.cli.api_server.ApiServer.update_session(app_name:str, user_id:str, session_id:str, req:UpdateSessionRequest) -> SessionUpdates session state without running the agent.
class
src.google.adk.cli.api_server.SaveArtifactRequestRequest payload for saving a new artifact.
class
src.google.adk.cli.api_server.UpdateMemoryRequestRequest to add a session to the memory service.
func
src.google.adk.cli.built_in_agents.adk_agent_builder_assistant.AgentBuilderAssistant.add(text:str='', indent:int=0) -> NoneAppend wrapped text with indentation.
func
src.google.adk.cli.built_in_agents.utils.adk_source_utils.clear_schema_cache() -> NoneClear the cached schema data.
func
src.google.adk.cli.cli_eval.get_eval_sets_manager(eval_storage_uri:Optional[str], agents_dir:str) -> EvalSetsManagerReturns an instance of EvalSetsManager.
func
src.google.adk.cli.cli_eval.get_root_agent(agent_module_file_path:str) -> BaseAgentReturns root agent given the agent module.
func
src.google.adk.cli.cli_eval.pretty_print_eval_result(eval_result:EvalCaseResult) -> NonePretty prints eval result.
func
src.google.adk.cli.cli_tools_click.conformance()Conformance testing tools for ADK.
func
src.google.adk.cli.cli_tools_click.deploy()Deploys agent to hosted environments.
func
src.google.adk.cli.cli_tools_click.eval_set()Manage Eval Sets.
func
src.google.adk.cli.cli_tools_click.main(ctx:Optional[click.Context]=None) -> NoneAgent Development Kit CLI tools.
func
src.google.adk.cli.cli_tools_click.migrate()ADK migration commands.
func
src.google.adk.cli.cli_tools_click.telemetry() -> NoneManage telemetry settings.
func
src.google.adk.cli.cli_tools_click.telemetry_disable() -> NoneDisable telemetry collection.
func
src.google.adk.cli.cli_tools_click.telemetry_enable() -> NoneEnable telemetry collection.
func
src.google.adk.cli.cli_tools_click.telemetry_status() -> NoneShow telemetry collection status.
func
src.google.adk.cli.conformance._generated_file_utils.load_recorded_session(test_case_dir:Path, streaming_mode:StreamingMode) -> Optional[Session]Load recorded session data from YAML file.
func
src.google.adk.cli.conformance._generated_file_utils.load_test_case(test_case_dir:Path) -> TestSpecLoad TestSpec from spec.yaml file.
func
src.google.adk.cli.conformance._replay_validators.compare_events(actual_events:list[Event], recorded_events:list[Event]) -> ComparisonResultCompare actual events with recorded events.
func
src.google.adk.cli.dev_server.DevServer.create_eval_set_legacy(app_name:str, eval_set_id:str)Creates an eval set, given the id.
func
src.google.adk.cli.dev_server.DevServer.create_test(app_name:str, test_name:str, req:CreateTestRequest) -> dict[str, str]Creates or updates a test file from session data.
func
src.google.adk.cli.dev_server.DevServer.delete_test(app_name:str, test_name:str) -> dict[str, str]Deletes a specific test file.
func
src.google.adk.cli.dev_server.DevServer.get_eval(app_name:str, eval_set_id:str, eval_case_id:str) -> EvalCaseGets an eval case in an eval set.
func
src.google.adk.cli.dev_server.DevServer.get_eval_result(app_name:str, eval_result_id:str) -> EvalResultGets the eval result for the given eval id.
func
src.google.adk.cli.dev_server.DevServer.get_test_content(app_name:str, test_name:str) -> dict[str, Any]Fetches the content of a specific test file.
func
src.google.adk.cli.dev_server.DevServer.list_eval_results(app_name:str) -> ListEvalResultsResponseLists all eval results for the given app.
func
src.google.adk.cli.dev_server.DevServer.list_eval_sets(app_name:str) -> ListEvalSetsResponseLists all eval sets for the given app.
func
src.google.adk.cli.dev_server.DevServer.list_evals_in_eval_set(app_name:str, eval_set_id:str) -> list[str]Lists all evals in an eval set.
func
src.google.adk.cli.dev_server.DevServer.list_metrics_info(app_name:str) -> ListMetricsInfoResponseLists all eval metrics for the given app.
func
src.google.adk.cli.dev_server.DevServer.list_tests(app_name:str) -> list[str]Lists all test JSON files for the given app.
func
src.google.adk.cli.dev_server.DevServer.rebuild_app_tests(app_name:str, test_name:Optional[str]=None) -> dict[str, str]Rebuilds tests for the app.
func
src.google.adk.cli.dev_server.DevServer.run_app_tests(app_name:str, test_name:Optional[str]=None) -> StreamingResponseRuns tests and streams pytest output.
func
src.google.adk.cli.dev_server.DevServer.run_eval(app_name:str, eval_set_id:str, req:RunEvalRequest) -> RunEvalResponseRuns an eval given the details in the eval request.
class
src.google.adk.cli.dev_server.EvalResultThis class has no field intentionally.
class
src.google.adk.cli.plugins.recordings_plugin.RecordingsPluginPlugin for recording ADK agent interactions.
class
src.google.adk.cli.plugins.recordings_schema.LlmRecordingPaired LLM request and response.
class
src.google.adk.cli.plugins.recordings_schema.RecordingsAll recordings in chronological order.
class
src.google.adk.cli.plugins.recordings_schema.ToolRecordingPaired tool call and response.
class
src.google.adk.cli.plugins.replay_plugin.ReplayVerificationErrorException raised when replay verification fails.
class
src.google.adk.cli.service_registry.ServiceFactoryProtocol for service factory functions.
class
src.google.adk.cli.service_registry.ServiceRegistryRegistry for custom service URI schemes.
class
src.google.adk.cli.trigger_routes.EventarcTriggerRequestEventarc / CloudEvents request format.
class
src.google.adk.cli.trigger_routes.PubSubMessageInner message payload from a Pub/Sub push subscription.
class
src.google.adk.cli.trigger_routes.PubSubTriggerRequestPub/Sub push subscription request format.
class
src.google.adk.cli.trigger_routes.TriggerResponseStandard response for Pub/Sub and Eventarc triggers.
func
src.google.adk.cli.utils._onboarding.get_gcp_project_from_gcloud() -> strUses gcloud to get default project.
func
src.google.adk.cli.utils._onboarding.get_gcp_region_from_gcloud() -> strUses gcloud to get default region.
func
src.google.adk.cli.utils._onboarding.handle_login_with_google() -> VertexAIAuth | ExpressModeAuthHandles the "Login with Google" flow.
func
src.google.adk.cli.utils._onboarding.prompt_for_google_api_key(google_api_key:Optional[str]) -> strPrompts user for Google API key.
func
src.google.adk.cli.utils._onboarding.prompt_for_google_cloud(google_cloud_project:Optional[str]) -> strPrompts user for Google Cloud project ID.
func
src.google.adk.cli.utils._onboarding.prompt_for_google_cloud_region(google_cloud_region:Optional[str]) -> strPrompts user for Google Cloud region.
class
src.google.adk.cli.utils.base_agent_loader.BaseAgentLoaderAbstract base class for agent loaders.
method
src.google.adk.cli.utils.base_agent_loader.BaseAgentLoader.load_agent(agent_name:str) -> Union[BaseAgent, App]Loads an instance of an agent with the given name.
func
src.google.adk.cli.utils.envs.load_dotenv_for_agent(agent_name:str, agent_parent_folder:str, filename:str='.env') -> NoneLoads the `.env` file for the agent module.
func
src.google.adk.cli.utils.evals.convert_session_to_eval_invocations(session:Session) -> list[Invocation]Converts a session data into a list of Invocation.
func
src.google.adk.cli.utils.evals.create_gcs_eval_managers_from_uri(eval_storage_uri:str) -> GcsEvalManagersCreates GcsEvalManagers from eval_storage_uri.
func
src.google.adk.cli.utils.gcp_utils.check_adc() -> boolChecks if Application Default Credentials exist.
func
src.google.adk.cli.utils.gcp_utils.check_express_eligibility(location:str='us-central1') -> boolChecks if user is eligible for Express Mode.
func
src.google.adk.cli.utils.gcp_utils.get_access_token() -> strGets the ADC access token.
func
src.google.adk.cli.utils.gcp_utils.list_gcp_projects(limit:int=20) -> List[Tuple[str, str]]Lists GCP projects available to the user.
func
src.google.adk.cli.utils.gcp_utils.login_adc() -> NonePrompts user to login via gcloud ADC.
func
src.google.adk.cli.utils.gcp_utils.retrieve_express_project(location:str='us-central1') -> Optional[Dict[str, Any]]Retrieves existing Express project info.
func
src.google.adk.cli.utils.gcp_utils.sign_up_express(location:str='us-central1') -> Dict[str, Any]Signs up for Express Mode.
func
src.google.adk.cli.utils.graph_serialization.serialize_agent(agent:BaseAgent) -> dict[str, Any]Recursively serialize an agent, excluding non-serializable fields.
func
src.google.adk.cli.utils.state.create_empty_state(agent:BaseAgent | BaseNode, initialized_states:Optional[dict[str, Any]]=None) -> dict[str, Any]Creates empty str for non-initialized states.
class
src.google.adk.code_executors.base_code_executor.BaseCodeExecutorAbstract base class for all code executors.
class
src.google.adk.code_executors.code_execution_utils.CodeExecutionUtilsUtility functions for code execution.
method
src.google.adk.code_executors.code_execution_utils.CodeExecutionUtils.build_executable_code_part(code:str) -> types.PartBuilds an executable code part with code string.
method
src.google.adk.code_executors.code_execution_utils.CodeExecutionUtils.get_encoded_file_content(data:bytes) -> bytesGets the file content as a base64-encoded bytes.
class
src.google.adk.environment._base_environment.BaseEnvironmentAbstract base class for code execution environments.
method
src.google.adk.environment._base_environment.BaseEnvironment.close() -> NoneRelease resources held by the environment.
method
src.google.adk.environment._base_environment.BaseEnvironment.initialize() -> NoneInitialize the environment (e.g.
method
src.google.adk.environment._base_environment.BaseEnvironment.is_initialized() -> boolWhether the environment has been initialized.
method
src.google.adk.environment._base_environment.BaseEnvironment.read_file(path:Path) -> bytesRead a file from the environment filesystem.
class
src.google.adk.environment._base_environment.ExecutionResultResult of a command execution.
class
src.google.adk.errors.not_found_error.NotFoundErrorRepresents an error that occurs when an entity is not found.
class
src.google.adk.errors.session_not_found_error.SessionNotFoundErrorRaised when a session cannot be found.
func
src.google.adk.evaluation._audio_utils.resample_pcm16(pcm:bytes, src_rate:int, dst_rate:int) -> bytesResamples 16-bit mono PCM via linear interpolation.
func
src.google.adk.evaluation._eval_set_results_manager_utils.parse_eval_set_result_json(eval_set_result_json:str | bytes) -> EvalSetResultParses an EvalSetResult from JSON.
func
src.google.adk.evaluation._path_validation.validate_path_segment(value:str, field_name:str) -> NoneRejects values that could alter a filesystem path.
class
src.google.adk.evaluation.app_details.AgentDetailsDetails about the individual agent in the App.
class
src.google.adk.evaluation.app_details.AppDetailsContains details about the App (the agentic system).
method
src.google.adk.evaluation.app_details.AppDetails.get_developer_instructions(agent_name:str) -> strReturns a string containing the developer instructions.
class
src.google.adk.evaluation.base_eval_service.BaseEvalServiceA service to run Evals for an ADK agent.
class
src.google.adk.evaluation.base_eval_service.EvaluateConfigContains configurations needed to run evaluations.
class
src.google.adk.evaluation.base_eval_service.InferenceConfigContains configurations need to run inferences.
class
src.google.adk.evaluation.base_eval_service.InferenceResultContains inference results for a single eval case.
class
src.google.adk.evaluation.base_eval_service.InferenceStatusStatus of the inference.
class
src.google.adk.evaluation.eval_case.EvalCaseAn eval case.
class
src.google.adk.evaluation.eval_case.InvocationRepresents a single invocation.
class
src.google.adk.evaluation.eval_case.SessionInputValues that help initialize a Session.
class
src.google.adk.evaluation.eval_config.CustomMetricConfigConfiguration for a custom metric.
class
src.google.adk.evaluation.eval_config.EvalConfigConfigurations needed to run an Eval.
class
src.google.adk.evaluation.eval_metrics.BaseCriterionBase criterion to use for an Eval Metric.
class
src.google.adk.evaluation.eval_metrics.EvalMetricResultPerInvocationEval metric results per invocation.
class
src.google.adk.evaluation.eval_metrics.IntervalRepresents a range of numeric values, e.g.
class
src.google.adk.evaluation.eval_metrics.JudgeModelOptionsOptions for an eval metric's judge model.
class
src.google.adk.evaluation.eval_metrics.LlmAsAJudgeCriterionCriterion when using LLM-As-A-Judge metric.
class
src.google.adk.evaluation.eval_metrics.MetricInfoInformation about the metric that are used for Evals.
class
src.google.adk.evaluation.eval_metrics.MetricInfoProviderInterface for providing MetricInfo.
method
src.google.adk.evaluation.eval_metrics.MetricInfoProvider.get_metric_info() -> MetricInfoReturns MetricInfo for a given metric.
class
src.google.adk.evaluation.eval_metrics.MetricValueInfoInformation about the type of metric value.
class
src.google.adk.evaluation.eval_metrics.RubricsBasedCriterionCriterion when using a rubric based metric.
class
src.google.adk.evaluation.eval_result.EvalCaseResultCase level evaluation results.
class
src.google.adk.evaluation.eval_result.EvalSetResultEval set level evaluation results.
class
src.google.adk.evaluation.eval_rubrics.RubricThis class represents a single Rubric.
class
src.google.adk.evaluation.eval_rubrics.RubricContentThe content of a rubric.
class
src.google.adk.evaluation.eval_set.EvalSetA set of eval cases.
class
src.google.adk.evaluation.eval_set_results_manager.EvalSetResultsManagerAn interface to manage Eval Set Results.
class
src.google.adk.evaluation.eval_sets_manager.EvalSetsManagerAn interface to manage Eval Sets.
method
src.google.adk.evaluation.eval_sets_manager.EvalSetsManager.get_eval_case(app_name:str, eval_set_id:str, eval_case_id:str) -> Optional[EvalCase]Returns an EvalCase if found; otherwise, None.
class
src.google.adk.evaluation.evaluation_constants.EvalConstantsHolds constants for evaluation file constants.
class
src.google.adk.evaluation.evaluation_generator.EvaluationGeneratorGenerates evaluation responses for agents.
class
src.google.adk.evaluation.evaluator.EvaluatorA metrics evaluator interface.
class
src.google.adk.evaluation.evaluator.PerInvocationResultMetric evaluation score per invocation.
class
src.google.adk.evaluation.llm_as_judge.LlmAsJudgeEvaluator based on a LLM.
class
src.google.adk.evaluation.llm_as_judge_utils.LabelLabels for auto rater response.
class
src.google.adk.evaluation.metric_evaluator_registry.MetricEvaluatorRegistryA registry for metric Evaluators.
method
src.google.adk.evaluation.metric_evaluator_registry.MetricEvaluatorRegistry.get_evaluator(eval_metric:EvalMetric) -> EvaluatorReturns an Evaluator for the given metric.
class
src.google.adk.evaluation.metric_info_providers.ResponseEvaluatorMetricInfoProviderMetric info provider for ResponseEvaluator.
class
src.google.adk.evaluation.metric_info_providers.SafetyEvaluatorV1MetricInfoProviderMetric info provider for SafetyEvaluatorV1.
class
src.google.adk.evaluation.response_evaluator.ResponseEvaluatorEvaluates Agent's responses.
class
src.google.adk.evaluation.rubric_based_evaluator.AutoRaterResponseParserAn interface for parsing auto rater's response.
method
src.google.adk.evaluation.rubric_based_evaluator.AutoRaterResponseParser.parse(auto_rater_response:str) -> list[RubricResponse]Parses the auto rater's response.
class
src.google.adk.evaluation.rubric_based_evaluator.RubricBasedEvaluatorA base class for rubric based evaluators.
method
src.google.adk.evaluation.rubric_based_evaluator.RubricBasedEvaluator.get_effective_rubrics_list() -> list[Rubric]Returns the effective rubrics list.
class
src.google.adk.evaluation.simulation._llm_audio_user_simulator.LlmAudioUserSimulatorConfigConfiguration for _LlmAudioUserSimulator.
class
src.google.adk.evaluation.simulation.per_turn_user_simulator_quality_v1.PerTurnUserSimulatorQualityV1Per turn user simulator evaluator.
class
src.google.adk.evaluation.simulation.user_simulator.StatusThe resulting status of get_next_user_message().
class
src.google.adk.evaluation.simulation.user_simulator_personas.UserBehaviorContainer for the behavior of a persona.
class
src.google.adk.evaluation.simulation.user_simulator_personas.UserPersonaContainer for a persona.
class
src.google.adk.evaluation.simulation.user_simulator_personas.UserPersonaRegistryA registry for UserPersona instances.
class
src.google.adk.evaluation.trajectory_evaluator.TrajectoryEvaluatorEvaluates tool use trajectories for accuracy.
class
src.google.adk.events.event.EventRepresents an event in a conversation between agents and users.
method
src.google.adk.events.event.Event.message() -> AnyAlias for content.
method
src.google.adk.events.event.Event.model_post_init(__context:Any) -> NonePost initialization logic for the event.
method
src.google.adk.events.event.Event.node_name() -> strThe name of the node that generated the event.
class
src.google.adk.events.event.NodeInfoWorkflow node metadata attached to an Event.
method
src.google.adk.events.event.NodeInfo.name() -> strThe clean name of the node (without @run_id).
method
src.google.adk.events.event.NodeInfo.run_id() -> strThe run ID of the node that generated the event.
class
src.google.adk.events.event_actions.EventActionsRepresents the actions attached to an event.
class
src.google.adk.events.event_actions.EventCompactionThe compaction of the events.
class
src.google.adk.events.request_input.RequestInputRepresents a request for input from the user.
func
src.google.adk.features._feature_decorator.experimental(feature_name:FeatureName) -> Callable[[T], T]Decorator for experimental features.
func
src.google.adk.features._feature_decorator.stable(feature_name:FeatureName) -> Callable[[T], T]Decorator for stable features.
func
src.google.adk.features._feature_decorator.working_in_progress(feature_name:FeatureName) -> Callable[[T], T]Decorator for working in progress features.
class
src.google.adk.features._feature_registry.FeatureConfigFeature configuration.
class
src.google.adk.features._feature_registry.FeatureNameFeature names.
class
src.google.adk.features._feature_registry.FeatureStageFeature lifecycle stages.
func
src.google.adk.features._feature_registry.is_feature_enabled(feature_name:FeatureName) -> boolCheck if a feature is enabled at runtime.
func
src.google.adk.features._feature_registry.override_feature_enabled(feature_name:FeatureName, enabled:bool) -> NoneProgrammatically override a feature's enabled state.
class
src.google.adk.flows.llm_flows._base_llm_processor.BaseLlmRequestProcessorBase class for LLM request processor.
method
src.google.adk.flows.llm_flows._base_llm_processor.BaseLlmRequestProcessor.run_async(invocation_context:InvocationContext, llm_request:LlmRequest) -> AsyncGenerator[Event, None]Runs the processor.
class
src.google.adk.flows.llm_flows._base_llm_processor.BaseLlmResponseProcessorBase class for LLM response processor.
method
src.google.adk.flows.llm_flows._base_llm_processor.BaseLlmResponseProcessor.run_async(invocation_context:InvocationContext, llm_response:LlmResponse) -> AsyncGenerator[Event, None]Processes the LLM response.
func
src.google.adk.flows.llm_flows._code_execution.get_content_as_bytes(output_content:str | bytes) -> bytesConverts output_content to bytes.
class
src.google.adk.flows.llm_flows.audio_cache_manager.AudioCacheConfigConfiguration for audio caching behavior.
class
src.google.adk.flows.llm_flows.auto_flow.AutoFlowAutoFlow is SingleFlow with agent transfer capability.
func
src.google.adk.flows.llm_flows.base_llm_flow.BaseLlmFlow.get_author_for_event(llm_response:LlmResponse) -> strGet the author of the event.
func
src.google.adk.flows.llm_flows.functions.deep_merge_dicts(d1:dict[str, Any], d2:dict[str, Any]) -> dict[str, Any]Recursively merges d2 into d1.
class
src.google.adk.flows.llm_flows.single_flow.SingleFlowSingleFlow is the LLM flows that handles tools calls.
class
src.google.adk.integrations.agent_registry.agent_registry.EndpointFull metadata for a registered Endpoint.
class
src.google.adk.integrations.agent_registry.agent_registry.InterfaceDetails for a single connection interface.
func
src.google.adk.integrations.bigquery.client.get_bigquery_client(*project:Optional[str], *credentials:Credentials, *location:Optional[str]=None, *user_agent:Optional[Union[str, List[Optional[str]]]]=None) -> bigquery.ClientGet a BigQuery client.
class
src.google.adk.integrations.bigquery.config.BigQueryToolConfigConfiguration for BigQuery tools.
method
src.google.adk.integrations.bigquery.config.BigQueryToolConfig.validate_application_name(v:Optional[str]) -> Optional[str]Validate the application name.
method
src.google.adk.integrations.bigquery.config.BigQueryToolConfig.validate_job_labels(v:Optional[dict[str, str]]) -> Optional[dict[str, str]]Validate the job labels.
method
src.google.adk.integrations.bigquery.config.BigQueryToolConfig.validate_maximum_bytes_billed(v:Optional[int]) -> Optional[int]Validate the maximum bytes billed.
func
src.google.adk.integrations.bigquery.metadata_tool.list_table_ids(project_id:str, dataset_id:str, credentials:Credentials, settings:BigQueryToolConfig) -> list[str]List table ids in a BigQuery dataset.
class
src.google.adk.integrations.crewai.crewai_tool.CrewaiToolUse this class to wrap a CrewAI tool.
func
src.google.adk.integrations.eventarc._client.cleanup_clients() -> NoneCleans up all cached publisher clients.
func
src.google.adk.integrations.eventarc._client.remove_publisher_client(*credentials:typing.Any, *user_agent:str | None=None, *project_id:str | None=None) -> NoneRemoves a publisher client from the cache.
class
src.google.adk.integrations.eventarc._config.EventarcCredentialsConfigConfiguration for Google Cloud credentials.
class
src.google.adk.integrations.eventarc._config.EventarcToolConfigConfiguration for the Eventarc tool.
func
src.google.adk.integrations.gcs.admin_tool.create_bucket(*project_id:str, *bucket_name:str, *credentials:Credentials, *location:str | None=None) -> dict[str, Any]Create a new GCS bucket.
func
src.google.adk.integrations.gcs.admin_tool.delete_bucket(*bucket_name:str, *credentials:Credentials) -> dict[str, Any]Delete a GCS bucket.
func
src.google.adk.integrations.gcs.admin_tool.get_bucket(*bucket_name:str, *credentials:Credentials) -> dict[str, Any]Get metadata information about a GCS bucket.
func
src.google.adk.integrations.gcs.client.get_gcs_client(*credentials:Credentials, *project:str | None=None) -> storage.ClientGet a GCS client.
class
src.google.adk.integrations.gcs.settings.GCSToolSettingsSettings for GCS tools.
func
src.google.adk.integrations.gcs.storage_tool.get_bucket(*bucket_name:str, *credentials:Credentials) -> dict[str, Any]Get metadata information about a GCS bucket.
class
src.google.adk.integrations.oci._oci_genai_llm.OCIGenAILlmIntegration with OCI Generative AI models.
class
src.google.adk.integrations.slack.slack_runner.SlackRunnerRunner for ADK agents on Slack.
method
src.google.adk.integrations.slack.slack_runner.SlackRunner.start(app_token:str) -> NoneStarts the Slack app using Socket Mode.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.click_at(x:int, y:int) -> NoneClick at a specific coordinate.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.drag_and_drop(x1:int, y1:int, x2:int, y2:int) -> NoneDrag from one coordinate to another.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.get_current_url(max_retries:int=3) -> str | NoneGet the URL of the currently active tab.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.get_screenshot(max_retries:int=3) -> bytesCapture a screenshot of the current page.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.go_back() -> boolNavigate back in browser history.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.go_forward() -> boolNavigate forward in browser history.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.health_check() -> boolCheck if the sandbox is healthy.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.hover_at(x:int, y:int) -> NoneHover at a specific coordinate.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.key_combination(keys:list[str]) -> NonePress a combination of keys.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.make_cdp_batch_request(commands:list[dict[str, Any]], stop_on_error:bool=True) -> list[dict[str, Any]]Execute multiple CDP commands.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.make_cdp_request(command:str, params:dict[str, Any] | None=None) -> dict[str, Any]Make a single CDP request to the sandbox.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.navigate(url:str) -> dict[str, Any]Navigate to a URL.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.scroll_at(x:int, y:int, direction:Literal['up', 'down', 'left', 'right'], magnitude:int) -> NoneScroll at a specific coordinate.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.type_text(text:str, press_enter:bool=False, clear_before_typing:bool=False) -> NoneType text at the currently focused element.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.type_text_at(x:int, y:int, text:str, press_enter:bool=False, clear_before_typing:bool=False) -> NoneClick at a coordinate and type text.
method
src.google.adk.integrations.vmaas.sandbox_client.SandboxClient.update_access_token(access_token:str) -> NoneUpdate the access token.
class
src.google.adk.labs.openai._openai_llm.OpenAILlmIntegration with OpenAI models.
class
src.google.adk.labs.openai._openai_responses_llm.AzureOpenAIResponsesLlmAzure OpenAI-compatible Responses API model.
func
src.google.adk.memory._utils.format_timestamp(timestamp:float) -> strFormats the timestamp of the memory entry.
class
src.google.adk.memory.base_memory_service.BaseMemoryServiceBase class for memory services.
method
src.google.adk.memory.base_memory_service.BaseMemoryService.add_session_to_memory(session:Session) -> NoneAdds a session to the memory service.
method
src.google.adk.memory.base_memory_service.BaseMemoryService.search_memory(*app_name:str, *user_id:str, *query:str) -> SearchMemoryResponseSearches for sessions that match the query.
class
src.google.adk.memory.base_memory_service.SearchMemoryResponseRepresents the response from a memory search.
class
src.google.adk.memory.memory_entry.MemoryEntryRepresent one memory entry.
class
src.google.adk.models._capabilities.LlmCapabilitiesResolved capabilities for an LLM instance.
func
src.google.adk.models._capabilities.gemini_output_schema_and_tools(model_name:str) -> boolWhether a Gemini model id can pair an output schema with tools.
class
src.google.adk.models.anthropic_llm.AnthropicLlmIntegration with Claude models via the Anthropic API.
class
src.google.adk.models.anthropic_llm.ClaudeIntegration with Claude models served from Vertex AI.
func
src.google.adk.models.anthropic_llm.content_block_to_part(content_block:anthropic_types.ContentBlock) -> types.PartConverts an Anthropic content block to a genai Part.
class
src.google.adk.models.apigee_llm.ApigeeLlmA BaseLlm implementation for calling Apigee proxy.
class
src.google.adk.models.apigee_llm.ApigeeLlm.ApiTypeThe supported API types for Apigee LLM.
method
src.google.adk.models.apigee_llm.ApigeeLlm.api_client() -> ClientProvides the api client.
method
src.google.adk.models.apigee_llm.ApigeeLlm.supported_models() -> list[str]Provides the list of supported models.
class
src.google.adk.models.base_llm.BaseLlmThe BaseLLM class.
method
src.google.adk.models.base_llm.BaseLlm.capabilities() -> LlmCapabilitiesThe capabilities of this model instance.
method
src.google.adk.models.base_llm.BaseLlm.connect(llm_request:LlmRequest) -> AbstractAsyncContextManager[BaseLlmConnection]Creates a live connection to the LLM.
method
src.google.adk.models.base_llm.BaseLlm.generate_content_async(llm_request:LlmRequest, stream:bool=False) -> AsyncGenerator[LlmResponse, None]Generates content for a single model turn.
class
src.google.adk.models.base_llm_connection.BaseLlmConnectionThe base class for a live model connection.
method
src.google.adk.models.base_llm_connection.BaseLlmConnection.close() -> NoneCloses the llm server connection.
method
src.google.adk.models.base_llm_connection.BaseLlmConnection.send_content(content:types.Content) -> NoneSends a user content to the model.
method
src.google.adk.models.base_llm_connection.BaseLlmConnection.send_history(history:list[types.Content]) -> NoneSends the conversation history to the model.
class
src.google.adk.models.cache_metadata.CacheMetadataMetadata for context cache associated with LLM responses.
class
src.google.adk.models.gemini_llm_connection.GeminiLlmConnectionThe Gemini model connection.
method
src.google.adk.models.gemini_llm_connection.GeminiLlmConnection.close() -> NoneCloses the llm server connection.
method
src.google.adk.models.gemini_llm_connection.GeminiLlmConnection.send_content(content:types.Content) -> NoneSends a user content to the gemini model.
method
src.google.adk.models.gemini_llm_connection.GeminiLlmConnection.send_history(history:list[types.Content]) -> NoneSends the conversation history to the gemini model.
class
src.google.adk.models.gemma_llm.GemmaIntegration for Gemma 3 models exposed via the Gemini API.
method
src.google.adk.models.gemma_llm.Gemma.generate_content_async(llm_request:LlmRequest, stream:bool=False) -> AsyncGenerator[LlmResponse, None]Sends a request to the Gemma model.
method
src.google.adk.models.gemma_llm.Gemma.supported_models() -> list[str]Provides the list of supported models.
class
src.google.adk.models.google_llm.GeminiIntegration for Gemini models.
method
src.google.adk.models.google_llm.Gemini.api_client() -> ClientProvides the api client.
method
src.google.adk.models.google_llm.Gemini.generate_content_async(llm_request:LlmRequest, stream:bool=False) -> AsyncGenerator[LlmResponse, None]Sends a request to the Gemini model.
method
src.google.adk.models.google_llm.Gemini.supported_models() -> list[str]Provides the list of supported models.
func
src.google.adk.models.interactions_utils.build_interactions_response_log(interaction:Interaction) -> strBuild a log string for an interactions API response.
func
src.google.adk.models.interactions_utils.convert_interaction_to_llm_response(interaction:Interaction) -> LlmResponseConvert an Interaction response to an LlmResponse.
func
src.google.adk.models.interactions_utils.extract_system_instruction(config:types.GenerateContentConfig) -> str | NoneExtract system instruction as a string from config.
class
src.google.adk.models.lite_llm.LiteLLMClientProvides acompletion method (for better testability).
method
src.google.adk.models.lite_llm.LiteLLMClient.acompletion(model:Any, messages:Any, tools:Any, **kwargs:Any) -> Union[ModelResponse, CustomStreamWrapper]Asynchronously calls acompletion.
method
src.google.adk.models.lite_llm.LiteLLMClient.completion(model:Any, messages:Any, tools:Any, stream:bool=False, **kwargs:Any) -> Union[ModelResponse, CustomStreamWrapper]Synchronously calls completion.
class
src.google.adk.models.lite_llm.LiteLlmWrapper around litellm.
method
src.google.adk.models.lite_llm.LiteLlm.generate_content_async(llm_request:LlmRequest, stream:bool=False) -> AsyncGenerator[LlmResponse, None]Generates content asynchronously.
method
src.google.adk.models.lite_llm.LiteLlm.supported_models() -> list[str]Provides the list of supported models.
class
src.google.adk.models.registry.LLMRegistryRegistry for LLMs.
method
src.google.adk.models.registry.LLMRegistry.new_llm(model:str) -> BaseLlmCreates a new LLM instance.
method
src.google.adk.models.registry.LLMRegistry.register(llm_cls:type[BaseLlm]) -> NoneRegisters a new LLM class.
method
src.google.adk.models.registry.LLMRegistry.resolve(model:str) -> type[BaseLlm]Resolves the model to a BaseLlm subclass.
class
src.google.adk.optimization.agent_optimizer.AgentOptimizerBase class for agent optimizers.
method
src.google.adk.optimization.agent_optimizer.AgentOptimizer.optimize(initial_agent:Agent, sampler:Sampler[SamplingResultT]) -> OptimizerResult[AgentWithScoresT]Runs the optimizer.
class
src.google.adk.optimization.data_types.AgentWithScoresAn optimized agent with its scores.
class
src.google.adk.optimization.data_types.OptimizerResultBase class for optimizer final results.
class
src.google.adk.planners.base_planner.BasePlannerAbstract base class for all planners.
func
src.google.adk.platform.thread.create_thread(target:Callable[..., None], *args:object, **kwargs:object) -> threading.ThreadCreates a thread.
func
src.google.adk.platform.time.get_time() -> floatReturns the current time in seconds since the epoch.
func
src.google.adk.platform.time.set_time_provider(provider:Callable[[], float]) -> NoneSets the provider for the current time.
func
src.google.adk.platform.uuid.new_uuid() -> strReturns a new unique ID.
func
src.google.adk.platform.uuid.reset_id_provider() -> NoneResets the ID provider to its default implementation.
func
src.google.adk.platform.uuid.set_id_provider(provider:Callable[[], str]) -> NoneSets the provider for generating unique IDs.
func
src.google.adk.plugins._reflect_retry_utils.resolve_scope_key(scope:TrackingScope, invocation_id:str | None) -> strReturns the scope key for failure tracking.
func
src.google.adk.plugins.auto_tracing_helpers.tracer_will_record(tracer:trace_api.Tracer) -> boolTrue iff ``tracer`` will record (not a NoOpTracer).
class
src.google.adk.plugins.base_plugin.BasePluginBase class for creating plugins.
method
src.google.adk.plugins.base_plugin.BasePlugin.before_run_callback(*invocation_context:InvocationContext) -> Optional[types.Content]Callback executed before the ADK runner runs.
method
src.google.adk.plugins.base_plugin.BasePlugin.close() -> NoneMethod executed when the runner is closed.
About this data
These signatures were extracted from the public source of google/adk-python
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.