Skip to content

StructuredOutputCallToolHandler doesn't handle error based CallToolResult #538

@jc-hcl

Description

@jc-hcl

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;
}

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