prompt Runner
open fun promptRunner(llm: <Error class: unknown class> = LlmOptions(), toolGroups: Set<ToolGroupRequirement> = emptySet(), toolObjects: List<ToolObject> = emptyList(), promptContributors: List<<Error class: unknown class>> = emptyList(), contextualPromptContributors: List<ContextualPromptElement> = emptyList(), generateExamples: Boolean = false): PromptRunner
Create a prompt runner for this context. Application code should always go through this method to run LLM operations.
Parameters
llm
the LLM options to use
tool Groups
extra local tool groups to use, in addition to those declared on the action if we're in an action
prompt Contributors
extra prompt contributors to use, in addition to those declared on the action if we're in an action, or at agent level
Create a prompt runner for this context that can be customized later. Principally for use from Java.