Closed jayeshp19 closed 3 days ago
Do you think there is a way we reuse https://github.com/livekit/agents/blob/main/livekit-agents/livekit/agents/llm/_oai_api.py when running/checking function calls. The good think about it is that it verify the types are correct before running any code
@theomonnom I think we could reuse create_ai_function_info
from _oai_api.py
, but build_oai_function_description
wouldn't be compatible, since Vertex AI doesn’t accept the same function description format as OpenAI.
@theomonnom I've updated code to utilize create_ai_function_info
from_oai_api.py
Closing this as this feature is already implemented https://github.com/livekit/agents/pull/1084
🦋 Changeset detected
Latest commit: 877b7d514a840c731666cea6b7973291924e4d73
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type | | ---------------------- | ----- | | livekit-plugins-google | Minor |Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR