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 Summary
Modifier and TypeMethodDescriptiondefault AgentConditionThe condition under which this agent runs when it is invoked as a subagent, ornullwhen it always runs.agentId()default <T extends AgentInstance>
Tbooleanasync()default booleanleaf()name()default booleanoptional()parent()topology()Class<?> type()
-
Method Details
-
type
Class<?> type() -
plannerType
-
name
String name() -
agentId
String agentId() -
description
String description() -
outputType
Type outputType() -
outputKey
String outputKey() -
async
boolean async() -
optional
default boolean optional() -
activationCondition
The condition under which this agent runs when it is invoked as a subagent, ornullwhen it always runs. When the condition is false, the agent is skipped: it is not invoked, it writes nothing to theAgenticScopeand 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
AgenticSystemTopology topology() -
as
-