Interface ToolResponseEncoder<TYPE>

Type Parameters:
TYPE -
All Superinterfaces:
Encoder<TYPE,ToolResponse>

public interface ToolResponseEncoder<TYPE> extends Encoder<TYPE,ToolResponse>
Encodes an object as ToolResponse.

If a tool response encoder exists and matches a specific return type then it always takes precedence over matching ContentEncoder.

Implementation classes must be CDI beans. Qualifiers are ignored. Dependent beans are reused during encoding.

Encoders may define the priority with jakarta.annotation.Priority. An encoder with higher priority takes precedence.

See Also: