generate

abstract fun generate(prompt: String, interaction: LlmInteraction, agentProcess: AgentProcess, action: Action?): String

Generate text in the context of an AgentProcess.

Parameters

prompt

Prompt to generate text from

interaction

Llm options and tool callbacks to use, plus unique identifier

agentProcess

Agent process we are running within

action

Action we are running within if we are running within an action