Actor
open class Actor<T : PromptContributor> constructor(val persona: T, val llm: LlmOptions, val toolGroups: Set<String> = emptySet()) : PromptContributor
Core abstraction for an LLM with tools and a persona. 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
Functions
Link copied to clipboard
Return the string content of the contribution.
Link copied to clipboard
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.