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