Actor

open class Actor<T> constructor(val persona: T, val llm: <Error class: unknown class>, val toolGroups: Set<String> = emptySet())

An Actor plays a role: Convenient way to combine a PromptContributor with an LLM and tools. Open to allow subclasses to add tools via @Tool methods

Constructors

Link copied to clipboard
constructor(persona: T, llm: <Error class: unknown class>, toolGroups: Set<String> = emptySet())

Properties

Link copied to clipboard
val llm: <Error class: unknown class>
Link copied to clipboard
val persona: T
Link copied to clipboard

Functions

Link copied to clipboard

Return a PromptRunner configured with this Actor's persona, LLM, and tools. The caller can continue to customize this PromptRunner before using it to create objects or generate text.

Link copied to clipboard
open override fun toString(): String