autogen/test/oai
Zoltan Lux 32022b2df6
Function Calling Support for Gemini - Part 2 (#3726)
* Added function calling support to GeminiClient

* Appending a continue message from model to alternate between user and model

* Fixed cost calculation to include <128K costing and new 1.5-flash model. Added test case for function_call.

* Add notebook with samples for Gemini

* Updated test case

* Fix to handle not dict response in function call

* Handle non dict function results and append dummy model message between function response and user message

* Fixing message order in gemini

* Append text as multiple parts instead of test concatenation

* Raising error for Union data types in function parameter

* Delete default key

* Update gemini.py for multiple tool calls + pre-commit formatting

* no function role

* start adding function calling config

* do not serialize tool_config

* improve tool config parsing

* add hint

* improve function calling config

* removunnecessary comments

* try removing allowed function names in tool config conversion

* fix tool config parsing with empty tools list

* improve logging and case handling with vertexai tool config parsing

* reset file

* check if text is in part

* fix empty part checking case

* fix bug with attribute handling

* skip test if gemini deps are not installed

---------

Co-authored-by: Arjun G <arjun@arjun-g.com>
Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-10-10 13:26:05 -07:00
..
_test_completion.py Disable Azure tests and fix open ai tests (#3587) 2024-10-01 21:53:25 +00:00
test_anthropic.py Added anthropic bedrock (#3103) 2024-07-19 19:43:09 +00:00
test_bedrock.py Amazon Bedrock Client for AutoGen (#3232) 2024-08-26 07:28:53 +00:00
test_cerebras.py Add Cerebras Integration (#3585) 2024-09-30 21:14:55 +00:00
test_client.py Disable Azure tests and fix open ai tests (#3587) 2024-10-01 21:53:25 +00:00
test_client_stream.py Disable Azure tests and fix open ai tests (#3587) 2024-10-01 21:53:25 +00:00
test_client_utils.py should_hide_tools function added to client_utils (#2966) 2024-06-19 05:22:15 +00:00
test_cohere.py Cohere Client (#3004) 2024-07-03 14:33:03 +00:00
test_custom_client.py Add isort (#2265) 2024-04-05 02:26:06 +00:00
test_gemini.py Function Calling Support for Gemini - Part 2 (#3726) 2024-10-10 13:26:05 -07:00
test_groq.py Groq Client (#3003) 2024-06-28 05:58:42 +00:00
test_mistral.py Update Mistral client class to support new Mistral v1.0.1 package (#3356) 2024-08-16 20:55:36 +00:00
test_ollama.py Updated to v0.3.3 with changes to options handling (#3593) 2024-10-01 23:55:17 +00:00
test_rate_limiters.py Throttle API Calls (#2283) 2024-09-25 15:46:17 +00:00
test_together.py Together AI Client (#2919) 2024-06-21 17:14:44 +00:00
test_utils.py Remove api key validation (#3569) 2024-09-25 16:48:06 +00:00