An open-source, code-first Python toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.
Repo google/adk-python, read from GitHub 18 min ago. google has not joined Take My Repo.
This release keeps voice streams and agent turns responsive under slow tools and session storage, measures multi-run reliability and partial tool-call accuracy, isolates sandboxes per user or session, adds Google Maps and project-wide BigQuery table discovery, and speeds up RAG memory search up to 6x. It also removes the interactive Visual Agent Builder from ADK Web.
GoogleMapsToolset (get_street_view_image, validate_address, and reverse_geocode). See the unit guide and sample for more details. (5371bb1)table_references upfront: BigQueryToolset's ask_data_insights now accepts search_scope (includeProjectIds and includeDatasetReferences) to discover relevant tables across projects or datasets. (9eb6d9d)BufferedSessionService and BaseSessionService.append_events, which buffer session events in memory and flush them in background batches. See the unit guide for more details. (e1deb17, f4fab78)gs://, s3://, file://, and memory://): FsspecArtifactService now writes, deletes, and versions artifacts (save_artifact, delete_artifact, get_artifact_version, and list_artifact_versions), including S3 custom metadata. (df9f9d0, b916291)pass_at_k / pass@k) versus reliably on every run (pass_hat_k / pass^k) in multi_run_config: adk eval now reports their mean across the eval set, prints a per-case multi-run summary table by default, and saves MultiRunCaseSummary results to .evalset_result.json. See the unit guide for more details. (5c7a829, b64b540, 287c0b0)tool_parameter_match (ToolParameterMatchCriterion), backed by ToolArgsMatcher and IN_ORDER, EXACT, or ANY_ORDER call pairing. See the unit guide for more details. (04ba412)BaseEnvironment methods now receive the calling run's ctx: Context, and BaseEnvironment.scope (EnvironmentScope.SHARED, USER, or SESSION) scopes initialization locks accordingly. See the unit guide for more details. (1bd22e3, 691ecbe)run_live now runs every tool call in a background task, and BaseLlmConnection.send_context_update updates system instructions or tools mid-session on open Gemini 3.x Live connections without reconnecting. See the unit guide for more details. (e5dd820, 6ccd07b)VertexAiRagMemoryService and VertexAiRagRetrieval by reusing API clients per event loop, and start parallel fan-out branches concurrently in resumable Workflow runs by coalescing status checkpoints once per scheduler tick. (112491d, 6dbe5bb)adk web, adk run, and adk deploy. To create new agents, use a coding agent such as Antigravity with the Agents CLI skills, or start from adk create. The /dev/apps/{app_name}/builder* routes and google.adk.cli.built_in_agents are removed. (c890aa3, e2a21ac, fb08c78)McpInstructionProvider (security hardening): To avoid exposing unrelated session.state keys to external MCP servers, McpInstructionProvider no longer auto-fills prompt arguments from session.state. Pass McpInstructionProvider(..., arguments=...) (a mapping or a callable over ReadonlyContext) for any arguments the prompt expects. (889ddd3)run_live executes all tool calls in background tasks without blocking audio or interruptions; parallel calls emit separate FunctionResponse events as each finishes, and tool exceptions return an error response instead of ending the live run. (e5dd820)DYNAMIC_INSTRUCTION_ROUTING enabled by default: Dynamic instructions from load_artifacts and load_mcp_resource are placed in a user-role message before the current turn instead of appended to system_instruction so the static instruction prefix stays cacheable (set ADK_DISABLE_DYNAMIC_INSTRUCTION_ROUTING=1 to opt out). (c6586f1)EnvironmentScope and lock initialize per scope (691ecbe)__ agents (e2a21ac)This release graduates execution environments, A2A, evaluation, and core runtime modules from experimental, adds multi-run evaluation and semantic tool argument matching, adds Microsoft Teams and OpenAI Decisions integrations, and makes long multi-turn workflows faster.
BaseEnvironment, LocalEnvironment, EnvironmentToolset, DaytonaEnvironment, and E2BEnvironment are now stable. (c54b253, 799fc94)BaseEnvironment.read_file_stream streams files in chunks across LocalEnvironment, E2BEnvironment, and DaytonaEnvironment so ReadFileTool reads line ranges without loading the whole file into memory. See the unit guide for more details. (fd8d8c1)AgentEngineEnvironment reads and writes large files in chunks and reports commands over 570 seconds as timed out before the service deadline. See the unit guide and sample for more details. (4c88040, 5843c58, b13fa19, d3a199d)ContainerCodeExecutor supports input and output files, and RunSkillScriptTool runs skill scripts from validated paths and arguments instead of a shell command string. (effd641, ff61524)MultiRunConfig (adk eval --num_runs) and --parallelism run each eval case multiple times concurrently and combine scores or pass rates across runs. See the eval config and agent evaluator guides for more details. (7f3517e, e9e8f61)AgentEvaluator accepts a BaseNode or App built at runtime, and --eval_storage_uri stores eval files outside a read-only agents_dir. (ce92e92, ff66b1f)ToolArgsMatcher compares tool call arguments in evaluations and EnvironmentSimulation using exact, case-insensitive, numeric-tolerance, or LLM-backed semantic checks. See the unit guide for more details. (ed76f94, 08c289b)adk generate_agent_card builds an A2A agent card from the CLI. See the unit guide for more details. (95d4a56, 875e2ae)TeamsRunner connects an ADK agent to Microsoft Teams chats and channels. See the unit guide for more details. (c4376a6)OpenAIDecisionsClassifier classifies workflow and tool-gating questions with the OpenAI Decisions API. See the unit guide for more details. (aa98d18)MongoDbMemoryService adds vector search retrieval (retrieval_mode="vector" or "auto") and TTL expiration (memory_ttl_days). See the unit guide for more details. (1c84bb9)FunctionTool parameters annotated Enum, Optional[Enum], or list[Enum] now receive enum members instead of the raw strings the model sent (as FUNCTION_TOOL_ARG_VALIDATION already did). For a plain Enum, arg == "value", string-keyed dict lookups, match on strings, json.dumps, and string methods no longer work. A callable require_confirmation still receives the raw values (unless FUNCTION_TOOL_ARG_VALIDATION is on). For a (str, Enum), str() and, on Python 3.11+, f-strings now render Cls.MEMBER. Compare against members, use .value, or switch to StrEnum. Enum members a tool returns in its result are still sent to the model as their values. (82fe029, 58332a2)VertexAiSessionService.create_session accepts only session config options: extra keyword arguments are limited to display_name, ttl, expire_time, and labels (plus camelCase aliases). Other Sessions API config keys, such as http_options, session_state, sessionId, and wait_for_completion, now raise ValueError (HTTP 400 when sent as session options to adk api_server). Use state= and session_id= for state and IDs. (968cd86)RunSkillScriptTool no longer takes command in environment mode: with a SkillToolset environment, the model now passes args, short_options, and positional_args instead of a free-form shell command, scripts run from the skill directory instead of the environment working directory, and only .py, .sh, and .bash scripts are supported (others return UNSUPPORTED_SCRIPT_TYPE). Calls, eval sets, or prompts that pass command now return INVALID_ARGUMENTS. This closes a hole that let a prompt-injected model run arbitrary shell commands. (ff61524)/run_live now closes the socket with code 1007 on a malformed frame and 1000 when the run ends, instead of leaving it hanging; reconnect for each new live run instead of reusing an idle socket. (3b227d6)style and explode. (1d81896)DatabaseSessionService creates new PostgreSQL JSON columns as json instead of jsonb; existing jsonb tables are not migrated and keep working (the PostgreSQL sample README shows how to convert them). Queries outside ADK that rely on jsonb-only operators or GIN indexes will not work on new tables. (d487c53)gen_ai.invoke_workflow.duration, gen_ai.client.operation.duration, and gen_ai.client.token.usage histograms now use the semconv bucket bounds. (ba45671)output_schema, no tools of its own, and a transfer target now gets the set_model_response tool instead of JSON mode on models that cannot combine a response schema with function calling, which adds two events per response. (73b6790)token_threshold. (a72a8ed)wait_for_output node is re-triggered into a new waiting run no longer surfaces that node's earlier output. (cddc57f)teams and fsspec extras, and the e2b floor is raised to 2.29.5. (c4376a6, 6bf806a, 75fb788)FirestoreSessionService stores event payloads as JSON strings and wraps nested lists in app and user state. Existing sessions keep loading and accept new events, but sessions this version writes to cannot be read by 2.13.0 or earlier after a rollback. (0894c03)ADK_DISABLE_<FEATURE>, override_feature_enabled(<FEATURE>, False), and --disable_features no longer block them, with no error or warning. (799fc94)_run_impl and skip compaction on early close (facd7dd)This release stabilizes core features while introducing TypeSafe workflow classification, live audio interactions, MongoDB integrations, and execution performance improvements.
TypesafeClassifier and ClassifierNode. Jev returns calibrated probabilities in a single forward pass, much faster than an LLM. See the unit guide for more details. (ddf8c55, e8c4bac)MongoDbSessionService. Add long-term memory without an embedding model using MongoDbMemoryService, which recalls past turns by keyword match on any MongoDB deployment, with no vector index needed. Both are experimental. See the session service and memory service guides for more details. (0df43f5, e40e349)otel_semconv_1_44, removing call_llm); set ADK_TELEMETRY_SCHEMA_VERSION_OPT_IN=otel_semconv_1_36 to keep the legacy v1 schema. See the unit guide for more details. (7838488)call_llm span and OpenTelemetry 1.36 GenAI semconvThis release enhances execution performance in long sessions while introducing finer control over tool execution, workflow approvals, and deployment security.
after_tool_callback. (fdda17c)require_confirmation. (988fd1a)@node and FunctionNode (988fd1a)adk eval --print_detailed_results invocation details readable (69c58ea)This release adds graceful cancellation and tool confirmation to workflows, a tool for consulting another model mid-task, and a built-in SQLite memory service.
abort_signal to Runner, Workflow, and nodes to stop a run gracefully; /run_sse now cancels the run when the client disconnects. See the unit guide for more details. (ef5bbcf, 3d73603)RequestInput, the same way an LlmAgent does, instead of passing an error downstream. (ce132b9)sqlite:// memory service URI. (9625b06)@node (3e59f4d)