接口 CallableAgent
- 所有已知子接口:
Agent
- 所有已知实现类:
AgentBase,ReActAgent,StructuredOutputCapableAgent,UserAgent
public interface CallableAgent
Interface for agents that can be called to process messages.
This interface defines the core call capability of agents, including:
- Basic message processing via
call(List) - Structured output generation via
call(List, Class)andcall(List, JsonNode)
Default implementations are provided for convenience methods that delegate
to the core call(List) method.
-
方法概要
修饰符和类型方法说明default reactor.core.publisher.Mono<Msg> call()Continue generation based on current state without adding new input.default reactor.core.publisher.Mono<Msg> call(com.fasterxml.jackson.databind.JsonNode schema) Continue generation with JSON schema based on current state.default reactor.core.publisher.Mono<Msg> Process a single input message and generate a response.default reactor.core.publisher.Mono<Msg> Process multiple input messages (varargs) and generate a response.default reactor.core.publisher.Mono<Msg> Process a single input message with JSON schema and generate a response.default reactor.core.publisher.Mono<Msg> Process a single input message with structured model and generate a response.default reactor.core.publisher.Mono<Msg> Continue generation with structured model based on current state.reactor.core.publisher.Mono<Msg> Process a list of input messages and generate a response.reactor.core.publisher.Mono<Msg> Process multiple input messages with JSON schema and generate a response.reactor.core.publisher.Mono<Msg> Process multiple input messages with structured model and generate a response.
-
方法详细资料
-
call
Continue generation based on current state without adding new input.- 返回:
- Response message
-
call
Continue generation with JSON schema based on current state.- 参数:
schema- JSON schema defining the structure- 返回:
- Response message with structured data in metadata
-
call
Continue generation with structured model based on current state.- 参数:
structuredModel- Class defining the structure- 返回:
- Response message with structured data in metadata
-
call
Process a single input message and generate a response.- 参数:
msg- Input message- 返回:
- Response message
-
call
Process a single input message with structured model and generate a response.- 参数:
msg- Input messagestructuredModel- Class defining the structure- 返回:
- Response message with structured data in metadata
-
call
default reactor.core.publisher.Mono<Msg> call(Msg msg, com.fasterxml.jackson.databind.JsonNode schema) Process a single input message with JSON schema and generate a response.- 参数:
msg- Input messageschema- JSON schema defining the structure- 返回:
- Response message with structured data in metadata
-
call
Process multiple input messages (varargs) and generate a response.- 参数:
msgs- Input messages (varargs)- 返回:
- Response message
-
call
Process a list of input messages and generate a response.- 参数:
msgs- Input messages- 返回:
- Response message
-
call
Process multiple input messages with structured model and generate a response.The structured model parameter defines the expected structure of output data. The structured data will be stored in the returned message's metadata field.
- 参数:
msgs- Input messagesstructuredModel- Class defining the structure- 返回:
- Response message with structured data in metadata
-
call
reactor.core.publisher.Mono<Msg> call(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode schema) Process multiple input messages with JSON schema and generate a response.The schema parameter defines the expected structure of output data. The structured data will be stored in the returned message's metadata field.
- 参数:
msgs- Input messagesschema- JSON schema defining the structure- 返回:
- Response message with structured data in metadata
-