Conversation
Covers initialization, chat management, message building, tool infrastructure (_collect_tools, _sync_tools, _execute_tool), documentation tools with @token_optimized output, prompt injection, streaming, agent loop, reset, @agent_tool decorator, and integration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Covers: tool name derivation (single/double/no underscore prefix), full docstring extraction (single-line, multi-paragraph, multiple consecutive blank lines, blank lines before Args), exclusion of Args/Returns/Raises/Example sections, whitespace collapsing, explicit description and parameters overrides, param schema types (str, int, float, bool, list, dict, nullable), param descriptions from docstring Args section (including parenthetical type format), required vs optional params, availability (static + callable with dynamic evaluation), _ToolMeta attachment and immutability, and a complex mixed-signature integration test. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
_execute_tool now keeps validated values from TypeAdapter.validate_python instead of discarding them. This means Pydantic model parameters arrive as actual model instances (with .field access, validators, defaults) rather than raw dicts. Adds 10 new tests: Pydantic model coercion from dict (with defaults, validation errors, missing fields), primitives still pass through, and 5 decorator schema tests for Pydantic model params (nested object schema, field types, field descriptions, required fields, docstring description). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates include:
errors,complaints, etc.)AbstractAgentbasic docs querying toolsSpecialistsuffixed naming conventionNext steps: