接口 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:

Default implementations are provided for convenience methods that delegate to the core call(List) method.

  • 方法概要

    修饰符和类型
    方法
    说明
    default reactor.core.publisher.Mono<Msg>
    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>
    call(Msg msg)
    Process a single input message and generate a response.
    default reactor.core.publisher.Mono<Msg>
    call(Msg... msgs)
    Process multiple input messages (varargs) and generate a response.
    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.
    default reactor.core.publisher.Mono<Msg>
    call(Msg msg, Class<?> structuredModel)
    Process a single input message with structured model and generate a response.
    default reactor.core.publisher.Mono<Msg>
    call(Class<?> structuredModel)
    Continue generation with structured model based on current state.
    reactor.core.publisher.Mono<Msg>
    call(List<Msg> msgs)
    Process a list of input messages and generate a response.
    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.
    reactor.core.publisher.Mono<Msg>
    call(List<Msg> msgs, Class<?> structuredModel)
    Process multiple input messages with structured model and generate a response.
  • 方法详细资料

    • call

      default reactor.core.publisher.Mono<Msg> call()
      Continue generation based on current state without adding new input.
      返回:
      Response message
    • call

      default reactor.core.publisher.Mono<Msg> call(com.fasterxml.jackson.databind.JsonNode schema)
      Continue generation with JSON schema based on current state.
      参数:
      schema - JSON schema defining the structure
      返回:
      Response message with structured data in metadata
    • call

      default reactor.core.publisher.Mono<Msg> call(Class<?> structuredModel)
      Continue generation with structured model based on current state.
      参数:
      structuredModel - Class defining the structure
      返回:
      Response message with structured data in metadata
    • call

      default reactor.core.publisher.Mono<Msg> call(Msg msg)
      Process a single input message and generate a response.
      参数:
      msg - Input message
      返回:
      Response message
    • call

      default reactor.core.publisher.Mono<Msg> call(Msg msg, Class<?> structuredModel)
      Process a single input message with structured model and generate a response.
      参数:
      msg - Input message
      structuredModel - 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 message
      schema - JSON schema defining the structure
      返回:
      Response message with structured data in metadata
    • call

      default reactor.core.publisher.Mono<Msg> call(Msg... msgs)
      Process multiple input messages (varargs) and generate a response.
      参数:
      msgs - Input messages (varargs)
      返回:
      Response message
    • call

      reactor.core.publisher.Mono<Msg> call(List<Msg> msgs)
      Process a list of input messages and generate a response.
      参数:
      msgs - Input messages
      返回:
      Response message
    • call

      reactor.core.publisher.Mono<Msg> call(List<Msg> msgs, Class<?> structuredModel)
      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 messages
      structuredModel - 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 messages
      schema - JSON schema defining the structure
      返回:
      Response message with structured data in metadata