BaseInvocation

Defines the contract for invoking an agent without a specific return type.

Default instances are created with AgentInvocation.create; AgentInvocation.builder allows for customization of the invocation before creation. Once created, run or runAsync is used to run the agent.

Inheritors

Functions

Link copied to clipboard
open fun run(map: Map<String, Any>): AgentProcess

Runs the agent with a map of named inputs.

open fun run(obj: Any, vararg objs: Any): AgentProcess

Runs the agent with one or more arguments

Link copied to clipboard

Runs the agent asynchronously with a map of named inputs.

abstract fun runAsync(obj: Any, vararg objs: Any): CompletableFuture<AgentProcess>

Runs the agent asynchronously with one or more arguments

Link copied to clipboard
abstract fun withProcessOptions(options: ProcessOptions): THIS