Skip to content

FunctionDeclaration created from Method does not set responseJsonSchema #519

@priyanahata

Description

@priyanahata

When creating a FunctionDeclaration from a method, the type of the returned object does not get set in

FunctionDeclaration.responseJsonSchema

Seems a bit ambigous that a function can return a byte[] but this same type (byte array) cannot be used as function arguments (parameters)

Telling the model the type of the function response, should only help the model plan tool calls better and avoids having to clutter the function description with the returned object type

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions