ProcessOptions

data class ProcessOptions(val contextId: ContextId? = null, val identities: Identities = Identities(), val blackboard: Blackboard? = null, val verbosity: Verbosity = Verbosity(), val budget: Budget = Budget(), processControl: ProcessControl? = null, val prune: Boolean = false, val listeners: List<AgenticEventListener> = emptyList(), val outputChannel: OutputChannel = DevNullOutputChannel)

How to run an AgentProcess

Parameters

contextId

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.

budget

budget constraints for this process. Will be exposed to actions and tools and enforced by default ProcessControl.

processControl

custom ProcessControl if specified. If not specified, default will be based on Budget. If specified, this overrides the budget-based defaults and may not relate to the budget.

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, verbosity: Verbosity = Verbosity(), budget: Budget = Budget(), processControl: ProcessControl? = null, prune: Boolean = false, listeners: List<AgenticEventListener> = emptyList(), outputChannel: OutputChannel = DevNullOutputChannel)

Types

Link copied to clipboard
class Builder

Nested builder for ProcessOptions objects.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val blackboard: Blackboard? = null
Link copied to clipboard
Link copied to clipboard
val contextId: ContextId? = null
Link copied to clipboard

ProcessControl in effect for this process

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val prune: Boolean = false
Link copied to clipboard