Skip to content

Conversation

@adk-bot
Copy link
Collaborator

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

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`.

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.

2 participants