AfterLLMCallContext

data class AfterLLMCallContext(val runId: String, val prompt: Prompt, val model: LLModel, val tools: List<ToolDescriptor>, val responses: List<Message.Response>, val moderationResponse: ModerationResult?) : LLMEventHandlerContext(source)

Represents the context for handling an after LLM call event.

Constructors

Link copied to clipboard
constructor(runId: String, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>, responses: List<Message.Response>, moderationResponse: ModerationResult?)

Properties

Link copied to clipboard

The language model instance that was used.

Link copied to clipboard
Link copied to clipboard

The prompt that was sent to the language model.

Link copied to clipboard

The response messages received from the language model.

Link copied to clipboard
Link copied to clipboard

The list of tool descriptors that were available for the LLM call.