autogenhub / autogen

A programming framework for agentic AI. Discord: https://discord.gg/pAbnFJrkgZ
https://autogenhub.github.io/autogen/
Apache License 2.0
119 stars 22 forks source link

Support for Gemini tool calling (plus general fixes and updates) #67

Open marklysze opened 1 month ago

marklysze commented 1 month ago

Why are these changes needed?

The Gemini class doesn't currently support tool calling.

This PR adds tool calling.

Additional updates:

NOTE: This hasn't been tested with Vertex AI authentication, if someone can test it that would be good. Please try the client test files in my repo.

No documentation added, yet. TODO

Related issue number

Noted in Discord issue

Checks

codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 206 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
autogen/oai/gemini.py 0.00% 206 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Flag Coverage Δ
unittests 31.22% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
setup.py 0.00% <ø> (ø)
autogen/oai/gemini.py 0.00% <0.00%> (ø)
marklysze commented 1 month ago

Hey @yiranwu0, would you be able to assist in identifying why the ContribGraphRagTests test is failing?

yiranwu0 commented 1 month ago

I am not familiar with this PR, mayber @randombet can help?

marklysze commented 1 month ago

I am not familiar with this PR, mayber @randombet can help?

I've found out that for graphrag_sdk they've changed some terminology since moving to V2, Schema is now called Ontology. I've updated the test.