DefaultAgentPlatform

open class DefaultAgentPlatform(val name: String, val description: String, val processType: AgentPlatformProperties.ProcessType, llmOperations: LlmOperations, val toolGroupResolver: ToolGroupResolver, eventListener: AgenticEventListener, agentProcessIdGenerator: AgentProcessIdGenerator = AgentProcessIdGenerator.RANDOM, contextRepository: ContextRepository = InMemoryContextRepository(), agentProcessRepository: AgentProcessRepository = InMemoryAgentProcessRepository(), operationScheduler: OperationScheduler = OperationScheduler.PRONTO, asyncer: Asyncer, objectMapper: <Error class: unknown class>, outputChannel: OutputChannel, templateRenderer: <Error class: unknown class>, applicationContext: <Error class: unknown class>? = null) : AgentPlatform

Constructors

Link copied to clipboard
constructor(name: String, description: String, processType: AgentPlatformProperties.ProcessType, llmOperations: LlmOperations, toolGroupResolver: ToolGroupResolver, eventListener: AgenticEventListener, agentProcessIdGenerator: AgentProcessIdGenerator = AgentProcessIdGenerator.RANDOM, contextRepository: ContextRepository = InMemoryContextRepository(), agentProcessRepository: AgentProcessRepository = InMemoryAgentProcessRepository(), operationScheduler: OperationScheduler = OperationScheduler.PRONTO, asyncer: Asyncer, objectMapper: <Error class: unknown class>, outputChannel: OutputChannel, templateRenderer: <Error class: unknown class>, applicationContext: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
open override val actions: List<Action>
Link copied to clipboard
open override val conditions: Set<Condition>
Link copied to clipboard
Link copied to clipboard
open override val domainTypes: Collection<DomainType>

All known types referenced by this component. These may or may not be backed by JVM objects.

Link copied to clipboard
Link copied to clipboard
open override val goals: Set<Goal>
Link copied to clipboard
Link copied to clipboard
open val name: String
Link copied to clipboard
open override val opaque: Boolean = false

Whether to hide the agent's actions and conditions from the outside world, defaults to false.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun agents(): List<Agent>
Link copied to clipboard

Get all relationships between domain types in this dictionary. A relationship is a property that references another DomainType (not a simple property).

Link copied to clipboard
open fun createAgent(name: String, provider: String, description: String): Agent

Create a new agent from the given scope

Link copied to clipboard
open override fun createAgentProcess(agent: Agent, processOptions: ProcessOptions, bindings: Map<String, Any>): AgentProcess

Create an agent process with the given options and bindings. The process will not be started automatically, so this will return quickly, unlike the run method on the created process. AgentProcess status will be NOT_STARTED.

Link copied to clipboard
open fun createAgentProcessFrom(agent: Agent, processOptions: ProcessOptions, vararg objectsToAdd: Any): AgentProcess

Create an agent process with the given options and bind all arguments.

Link copied to clipboard
open override fun createChildProcess(agent: Agent, parentAgentProcess: AgentProcess): AgentProcess
Link copied to clipboard
open fun deploy(agentScope: AgentScope): AgentPlatform
open override fun deploy(agent: Agent): DefaultAgentPlatform
Link copied to clipboard
fun AgentPlatform.deployAnnotatedInstances(agentMetadataReader: AgentMetadataReader, vararg instances: Any)

Convenient method to deploy instances to an agent platform

Link copied to clipboard

The domain type matching these labels, if we have one

Link copied to clipboard
open override fun getAgentProcess(id: String): AgentProcess?

Find an agent process by id. Implementations are only obliged to resolve running processes, although they may choose to return older processes.

Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String
Link copied to clipboard
open override fun killAgentProcess(id: String): AgentProcess?

Kill an agent process by id. Return the killed process, or null if no such process was found.

Link copied to clipboard
open fun resolveType(name: String): DomainType
Link copied to clipboard
open override fun runAgentFrom(agent: Agent, processOptions: ProcessOptions, bindings: Map<String, Any>): AgentProcess

Run the agent from the given ProcessOptions. We might create a new blackboard or have one

Link copied to clipboard

Run the given agent process in the background