DummyObjectCreatingLlmOperations

Fake LLM transformer that generates valid classes with random strings.

Constructors

Link copied to clipboard
constructor(stringsToUse: List<String>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun <O> createObject(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, agentProcess: AgentProcess, action: Action?): O

Create an output object, in the context of an AgentProcess.

Link copied to clipboard
open override fun <O> createObjectIfPossible(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, agentProcess: AgentProcess, action: Action?): <Error class: unknown class><O>

Try to create an output object in the context of an AgentProcess. Return a failure result if the LLM does not have enough information to create the object.

Link copied to clipboard
open override fun <O> createObjectIfPossibleWithThinking(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, agentProcess: AgentProcess, action: Action?): <Error class: unknown class><ThinkingResponse<O>>

Try to create an output object with thinking block extraction in the context of an AgentProcess. Return a failure result if the LLM does not have enough information to create the object.

Link copied to clipboard
open override fun <O> createObjectWithThinking(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, agentProcess: AgentProcess, action: Action?): ThinkingResponse<O>

Create an output object with thinking block extraction, in the context of an AgentProcess.

Link copied to clipboard
open fun <O> doTransform(prompt: String, interaction: LlmInteraction, outputClass: Class<O>, llmRequestEvent: LlmRequestEvent<O>?): O

Low level transform, not necessarily aware of platform This is a convenience overload that creates a UserMessage from a String prompt

open override fun <O> doTransform(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, llmRequestEvent: LlmRequestEvent<O>?): O

Low level transform, not necessarily aware of platform

Link copied to clipboard
open override fun <O> doTransformWithThinking(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, llmRequestEvent: LlmRequestEvent<O>?): ThinkingResponse<O>

Low level transform with thinking block extraction, not necessarily aware of platform.

Link copied to clipboard
open override fun <O> doTransformWithThinkingIfPossible(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, llmRequestEvent: LlmRequestEvent<O>?): <Error class: unknown class><ThinkingResponse<O>>

Low level transform with thinking block extraction and MaybeReturn semantics, not necessarily aware of platform. Returns a failure result if the LLM indicates it cannot create the object.

Link copied to clipboard
open fun generate(prompt: String, interaction: LlmInteraction, agentProcess: AgentProcess, action: Action?): String

Generate text in the context of an AgentProcess.