aboutsummaryrefslogtreecommitdiffstats
path: root/test/scripts/git@git.sinitax.com:sinitax
diff options
context:
space:
mode:
authorClaude <claude@anthropic.com>2026-03-01 17:57:15 +0000
committerClaude <claude@anthropic.com>2026-03-04 19:14:55 +0100
commitbfce4e949866e4edb22b507c9676a019b729955a (patch)
tree704f6707349aeb3bfcbec825d204453976b4679b /test/scripts/git@git.sinitax.com:sinitax
parent46bbb45ae26924588d1106a57f2f79991378f0a0 (diff)
downloadgemini-py-bfce4e949866e4edb22b507c9676a019b729955a.tar.gz
gemini-py-bfce4e949866e4edb22b507c9676a019b729955a.zip
Add tool/function-calling support
- FunctionDeclaration and ToolCall types in types.py - tools field on GeminiOptions; included as functionDeclarations in request - tool_calls property on GenerateContentResponse and StreamChunk - Refactored send_message/send_message_stream into _execute/_execute_stream - send_tool_result/send_tool_results (bundles multiple responses in one turn) - send_tool_result_stream/send_tool_results_stream variants - 429 retry logic added to _execute_stream (matching non-streaming behavior) - test/scripts/tool_test.py demonstrating both streaming and non-streaming tool use Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'test/scripts/git@git.sinitax.com:sinitax')
0 files changed, 0 insertions, 0 deletions