Skip to content

[Vertex AI] Refactor function calling APIs - #13873

Merged
andrewheard merged 3 commits into
mainfrom
ah/vertex-func-call-refactor
Oct 11, 2024
Merged

[Vertex AI] Refactor function calling APIs#13873
andrewheard merged 3 commits into
mainfrom
ah/vertex-func-call-refactor

Conversation

@andrewheard

Copy link
Copy Markdown
Contributor

Refactored the function calling APIs to align with the other platforms. Specifically:

  • Made the Tool initializer internal in favour of a new new type method functionDeclarations(_:).
  • Made the FunctionCallingConfig initializer and FunctionCallingConfig.Mode enum internal in favour of type methods auto(), any(allowedFunctionNames:) and none() that return a FunctionCallingConfig.

Comment thread FirebaseVertexAI/Sources/FunctionCalling.swift Outdated
@andrewheard
andrewheard merged commit 3eaa04d into main Oct 11, 2024
@andrewheard
andrewheard deleted the ah/vertex-func-call-refactor branch October 11, 2024 00:02
MojtabaHs pushed a commit to MojtabaHs/firebase-ios-sdk that referenced this pull request Oct 17, 2024
@firebase firebase locked and limited conversation to collaborators Nov 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants