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

fix: MissingFieldException: Fields [name, arguments] in ToolCallStep$FunctionTool #271

Merged
merged 3 commits into from
Nov 25, 2023
Merged

Conversation

voqaldev
Copy link
Contributor

Q A
Bug fix? yes

Describe your change

Fixes:

Caused by: kotlinx.serialization.MissingFieldException: Fields [name, arguments] are required for type with serial name 'function', but they were missing
		at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
		at com.aallam.openai.api.run.ToolCallStep$FunctionTool.<init>(RunStepDetails.kt:87)
		at com.aallam.openai.api.run.ToolCallStep$FunctionTool$$serializer.deserialize(RunStepDetails.kt:87)
		at com.aallam.openai.api.run.ToolCallStep$FunctionTool$$serializer.deserialize(RunStepDetails.kt:87)

Copy link
Owner

@aallam aallam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice finding! thanks a lot for your contribution!

@voqaldev voqaldev requested a review from aallam November 25, 2023 18:16
Copy link
Owner

@aallam aallam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! thanks a lot for your contribution 🙌

@aallam aallam merged commit e2d7ca9 into aallam:main Nov 25, 2023
2 of 15 checks passed
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