Skip to content

Conversation

MuhammadHamidRaza
Copy link
Contributor

This Pull Request makes a small but important update to the "Core Concepts" section of the documentation.

The change is:

  • The existing documentation mentions Tracing as a built-in feature, but it is not included in the bulleted list of core primitives. This update adds Tracing to that list, making the overview of the SDK's fundamental components more accurate and complete.

The update is kept to a single line and maintains the overall conciseness of the page, in line with previous feedback. This change helps new users immediately recognize Tracing as a core part of the SDK's architecture for debugging and observability.

muhammadhamidrazasidtechno and others added 17 commits July 28, 2025 20:03
…l Behavior Definitions" documentation to provide clearer explanations and more robust examples for agent tool usage. Key improvements include: - Explicitly defining import paths for `StopAtTools` and `ToolsToFinalOutputFunction`. - Providing comprehensive and corrected code examples for all `tool_choice` and `tool_use_behavior` configurations, including `"stop_on_first_tool"`, `StopAtTools`, and the usage of `ToolsToFinalOutputFunction`. - Ensuring proper Markdown formatting for code blocks and notes to enhance readability and accuracy. This update aims to significantly reduce ambiguity and improve the developer experience by offering ready-to-use and well-explained code snippets.
This update significantly enhances the "Tool Behavior Definitions" documentation, directly addressing the common challenges and wasted time developers previously experienced. Without clear examples and explicit guidance on import paths and usage patterns, implementing advanced agent tool behaviors was often a source of confusion and trial-and-error.

**Key improvements in this update include:**

-   **Explicitly defining crucial import paths** for `StopAtTools` and `ToolsToFinalOutputFunction`, removing guesswork.
-   **Providing comprehensive and corrected code examples** for all `tool_choice` and `tool_use_behavior` configurations, including `"stop_on_first_tool"`, `StopAtTools`, and `ToolsToFinalOutputFunction`. These examples are now streamlined and use consistent, easy-to-understand tools like `get_weather`.
-   **Ensuring proper Markdown formatting** for code blocks and notes to enhance readability and accuracy.

My personal experience, including significant time spent troubleshooting these very behaviors due to lack of clear examples, fueled this contribution. This update aims to drastically reduce ambiguity and improve the developer experience by offering ready-to-use and well-explained code snippets, saving countless hours for others.
This update significantly enhances the "Tool Behavior Definitions" documentation, directly addressing the common challenges and wasted time developers previously experienced. Without clear examples and explicit guidance on import paths and usage patterns, implementing advanced agent tool behaviors was often a source of confusion and trial-and-error.

**Key improvements in this update include:**

-   **Explicitly defining crucial import paths** for `StopAtTools` and `ToolsToFinalOutputFunction`, removing guesswork.
-   **Providing comprehensive and corrected code examples** for all `tool_choice` and `tool_use_behavior` configurations, including `"stop_on_first_tool"`, `StopAtTools`, and `ToolsToFinalOutputFunction`. These examples are now streamlined and use consistent, easy-to-understand tools like `get_weather`.
-   **Ensuring proper Markdown formatting** for code blocks and notes to enhance readability and accuracy.

My personal experience, including significant time spent troubleshooting these very behaviors due to lack of clear examples, fueled this contribution. This update aims to drastically reduce ambiguity and improve the developer experience by offering ready-to-use and well-explained code snippets, saving countless hours for others.
@seratch seratch added the documentation Improvements or additions to documentation label Aug 1, 2025
@seratch
Copy link
Member

seratch commented Aug 1, 2025

Thanks for the suggestion, however the following paragraph mentions tracing. Thus, we don't need this document changes. Thanks again for sending this.

@seratch seratch closed this Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants