Interface AgentInstance

All Known Subinterfaces:
A2AClientInstance, AgentInvoker, ConditionalAgentInstance, InternalAgent, LoopAgentInstance, McpClientInstance
All Known Implementing Classes:
A2AClientAgentInvoker, AbstractAgentInvoker, AgentExecutor, AgentInvocationHandler, DecisionAgentInvocationHandler, DefaultA2AClientBuilder, DefaultConditionalAgentInstance, DefaultLoopAgentInstance, DefaultMcpClientBuilder, MapperAgentInvoker, McpClientAgentInvoker, MethodAgentInvoker, NonAiAgentInstance, PlannerBasedInvocationHandler, UntypedAgentInvoker

public interface AgentInstance
  • Method Details

    • type

      Class<?> type()
    • plannerType

      Class<? extends Planner> plannerType()
    • name

      String name()
    • agentId

      String agentId()
    • description

      String description()
    • outputType

      Type outputType()
    • outputKey

      String outputKey()
    • async

      boolean async()
    • optional

      default boolean optional()
    • activationCondition

      default AgentCondition activationCondition()
      The condition under which this agent runs when it is invoked as a subagent, or null when it always runs. When the condition is false, the agent is skipped: it is not invoked, it writes nothing to the AgenticScope and its parent's planner is notified of the skip. The condition is ignored when the agent is invoked directly, as the root of an agentic system.

      The condition can be evaluated more than once for a single invocation, by the planner of the parent while selecting its next agents and again when the agent is invoked, so it must be cheap and free of side effects.

    • arguments

      List<AgentArgument> arguments()
    • parent

      AgentInstance parent()
    • subagents

      List<AgentInstance> subagents()
    • leaf

      default boolean leaf()
    • topology

    • as

      default <T extends AgentInstance> T as(Class<T> agentInstanceClass)