Package akka.javasdk.agent.autonomous
Interface AgentSetup
public interface AgentSetup
Per-instance configuration applied on top of an agent's static
AgentDefinition. Use this
to dynamically configure an agent instance at runtime, the instructions override the static
instructions, and capabilities extend the static capabilities.
The agent's @Component description is
bound to the component class and cannot be overridden per instance.
Each fluent method returns a new immutable instance.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncapability(AgentCapability capability) Add a capability for this instance, extending the static capabilities.static AgentSetupcreate()Create an empty agent setup.instructions(String instructions) Override the agent's instructions for this instance.
-
Method Details
-
create
Create an empty agent setup. -
instructions
Override the agent's instructions for this instance. If not set, the static instructions fromAgentDefinitionare used. -
capability
Add a capability for this instance, extending the static capabilities.
-