接口 ObservableAgent

所有已知子接口:
Agent
所有已知实现类:
AgentBase, ReActAgent, StructuredOutputCapableAgent, UserAgent

public interface ObservableAgent
Interface for agents that can observe messages without generating replies.

This interface enables agents to receive and process messages from other agents or the environment without responding. It's commonly used in multi-agent collaboration scenarios where agents need to be aware of each other's actions.

Use cases include:

  • Passive monitoring of conversation flow
  • Building shared context in multi-agent systems
  • Implementing observer patterns in agent pipelines
  • 方法概要

    修饰符和类型
    方法
    说明
    reactor.core.publisher.Mono<Void>
    observe(Msg msg)
    Observe a single message without generating a reply.
    reactor.core.publisher.Mono<Void>
    observe(List<Msg> msgs)
    Observe multiple messages without generating a reply.
  • 方法详细资料

    • observe

      reactor.core.publisher.Mono<Void> observe(Msg msg)
      Observe a single message without generating a reply.
      参数:
      msg - The message to observe
      返回:
      Mono that completes when observation is done
    • observe

      reactor.core.publisher.Mono<Void> observe(List<Msg> msgs)
      Observe multiple messages without generating a reply.
      参数:
      msgs - The messages to observe
      返回:
      Mono that completes when all observations are done