Skip to content
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

add support for optional arguments on ai_callable functions #600

Merged
merged 7 commits into from
Aug 7, 2024

Conversation

theomonnom
Copy link
Member

Example:

    @llm.ai_callable(description="Update the user information")
    async def update_user_info(
        self,
        name: str | None = None
        email: str | None = None
    ):
        ...

Copy link

changeset-bot bot commented Aug 7, 2024

🦋 Changeset detected

Latest commit: 6c8c0a1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-agents Patch

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

@theomonnom theomonnom requested a review from a team August 7, 2024 15:08
@theomonnom theomonnom changed the title support optional argument on ai_callable functions add support for optional arguments on ai_callable functions Aug 7, 2024
@theomonnom theomonnom merged commit e69d25a into main Aug 7, 2024
3 of 4 checks passed
@theomonnom theomonnom deleted the theo/support-optional-args branch August 7, 2024 22:55
@github-actions github-actions bot mentioned this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants