Process Options
data class ProcessOptions(val contextId: ContextId? = null, val identities: Identities = Identities(), val blackboard: Blackboard? = null, val test: Boolean = false, val verbosity: Verbosity = Verbosity(), val allowGoalChange: Boolean = true, val budget: Budget = Budget(), val control: ProcessControl = ProcessControl(
toolDelay = Delay.NONE,
operationDelay = Delay.NONE,
earlyTerminationPolicy = budget.earlyTerminationPolicy(),
), val prune: Boolean = false, val listeners: List<AgenticEventListener> = emptyList())
How to run an AgentProcess
Parameters
context Id
context id to use for this process. Can be null. If set it can enable connection to external resources and persistence from previous runs.
identities
identities associated with this process.
blackboard
an existing blackboard to use for this process. By default, it will be modified as the process runs. Whether this is an independent copy is up to the caller, who can call spawn() before passing this argument.
test
whether to run in test mode. In test mode, the agent platform will not use any external resources such as LLMs, and will not persist any state.
verbosity
detailed verbosity settings for logging etc.
prune
whether to prune the agent to only relevant actions
listeners
additional listeners (beyond platform event listeners) to receive events from this process.
Constructors
Link copied to clipboard
constructor(contextId: ContextId? = null, identities: Identities = Identities(), blackboard: Blackboard? = null, test: Boolean = false, verbosity: Verbosity = Verbosity(), allowGoalChange: Boolean = true, budget: Budget = Budget(), control: ProcessControl = ProcessControl(
toolDelay = Delay.NONE,
operationDelay = Delay.NONE,
earlyTerminationPolicy = budget.earlyTerminationPolicy(),
), prune: Boolean = false, listeners: List<AgenticEventListener> = emptyList())