Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

StructuredOutputCallToolHandler doesn't handle error based CallToolResult #538

Copy link
Copy link
@jc-hcl

Description

@jc-hcl
Issue body actions

return this.delegateCallToolResult.apply(exchange, request).map(result -> {
if (outputSchema == null) {

The method is checking for various combinations of content compared to the declared output schema, but if the result is an error then this should be just returned irrespective of the schema and structuredContent values i.e.

if (Boolean.TRUE.equals(result.isError())) {
    return result;
}
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.