-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support parallel tool calls in KurtVertexAI
with generateWithOptionalTools
#37
Conversation
…non-empty arrays See discussion here for motivation: #37 (comment)
@InfraK - I've added a new commit refactoring to type-guarded array destructuring as discussed in your feedback (applied for both |
* Return true if this array has at least one element, also refining the | ||
* Typescript type to indicate that the first element won't be undefined. | ||
*/ | ||
function isNonEmptyArray<T>(array: T[]): array is [T, ...T[]] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would make sense to export this from a utils package at some point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's something I'd love to avoid if we can 🙃
🎉 This PR is included in version @formula-monks/kurt-vertex-ai-v1.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @formula-monks/kurt-open-ai-v1.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This commit updates the
KurtVertexAI
adapter to handle the case of multiple parallel tool calls from the LLM, when being used with thegenerateWithOptionalTools
method ofKurt
.Similar to PR #35, this PR resolves part of issue #33