TrailblazeLogger

Functions

Link copied to clipboard
Link copied to clipboard
fun log(trailblazeLog: TrailblazeLog)
Link copied to clipboard
fun logLlmRequest(llmModelId: String, llmRequestId: String, agentTaskStatus: AgentTaskStatus, screenState: ScreenState, instructions: String, llmMessages: List<LlmMessage>, response: List<Message.Response>, startTime: Instant)
Link copied to clipboard
fun logScreenshot(screenshotBytes: ByteArray): String
Link copied to clipboard
fun overrideSessionId(sessionIdOverride: String): String

Note: This will truncate the session ID to 100 characters and replace any non-alphanumeric characters with underscores.

Link copied to clipboard
fun setLogListener(logListener: (TrailblazeLog) -> Unit)
Link copied to clipboard
fun setLogScreenshotListener(logScreenshotListener: (ByteArray) -> String)
Link copied to clipboard
fun startSession(sessionName: String): String