Skip to content

Update ADK doc according to issue #1048 - 8 - simplified tool declaration - #1058

Closed
adk-bot wants to merge 2 commits into
mainfrom
agent-changes-20251212-012338
Closed

Update ADK doc according to issue #1048 - 8 - simplified tool declaration#1058
adk-bot wants to merge 2 commits into
mainfrom
agent-changes-20251212-012338

Conversation

@adk-bot

@adk-bot adk-bot commented Dec 12, 2025

Copy link
Copy Markdown
Collaborator

In docs/tools-custom/function-tools.md, add a new section.

Current state:
The documentation explains how to define function signatures.

Proposed Change:
Add a new section about the JSON schema-based function declaration.

## Simplified Tool Declaration with JSON Schema (Experimental)

ADK now offers a simplified way to declare function tools by generating a JSON schema from your function's signature using Pydantic. This feature can be enabled via a feature flag.

When enabled, `build_function_declaration` will automatically generate a JSON schema for your function's parameters, which simplifies the declaration process and provides more accurate type information to the LLM.

This feature is currently experimental and can be enabled by setting the `ADK_ENABLE_JSON_SCHEMA_FOR_FUNC_DECL` environment variable to `true`.

@joefernandez joefernandez changed the title Update ADK doc according to issue #1048 - 8 Update ADK doc according to issue #1048 - 8 - simplified tool declaration Jan 30, 2026
@jcwriter74

Copy link
Copy Markdown
Contributor

@jcwriter74

Copy link
Copy Markdown
Contributor

@zyantw zyantw reopened this Aug 28, 2026
@zyantw zyantw self-assigned this Aug 28, 2026
@zyantw

zyantw commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Closing with #2182

@zyantw zyantw closed this Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants