TrailblazeKoogLlmClientHelper

class TrailblazeKoogLlmClientHelper(var systemPromptTemplate: String, val userObjectiveTemplate: String, val userMessageTemplate: String, val llmModel: LLModel, val llmClient: LLMClient, val elementComparator: TrailblazeElementComparator)

Constructors

Link copied to clipboard
constructor(systemPromptTemplate: String, userObjectiveTemplate: String, userMessageTemplate: String, llmModel: LLModel, llmClient: LLMClient, elementComparator: TrailblazeElementComparator)

Properties

Link copied to clipboard
val llmClient: LLMClient
Link copied to clipboard
val llmModel: LLModel
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun callLlm(llmRequestData: KoogLlmRequestData): List<Message.Response>
Link copied to clipboard
fun createNextChatRequestKoog(screenState: ScreenState, step: TrailblazePromptStep, forceStepStatusUpdate: Boolean, limitedHistory: List<Message>): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
fun ToolRegistry.getTrailblazeToolFromToolRegistry(toolName: String, toolArgs: JsonObject): TrailblazeTool
Link copied to clipboard
fun handleLlmResponse(toolRegistry: ToolRegistry, llmMessage: String?, toolName: String, toolArgs: JsonObject, llmResponseId: String?, step: TrailblazePromptStep, screenStateForLlmRequest: ScreenState, agent: TrailblazeAgent)
Link copied to clipboard
fun handleTrailblazeToolForPrompt(trailblazeTool: TrailblazeTool, llmResponseId: String?, step: TrailblazePromptStep, screenStateForLlmRequest: ScreenState, agent: TrailblazeAgent): TrailblazeToolResult
Link copied to clipboard
Link copied to clipboard