Options
All
  • Public
  • Public/Protected
  • All
Menu

An Art Assistant turn ends without an answer for the user. outcome tells the failures apart: the stream broke (stream_error), it broke after the answer had already been shown (trailing_stream_error), it went quiet for too long (idle_timeout), it closed with no answer (ended_without_answer), the agent gave up (stopped_without_answer), or the user had no valid session (unauthenticated).

error_status is the HTTP status behind the failure when there was one — 401 and 429 separate expired sessions and rate limiting from genuine breakage.

This schema describes events sent to Segment from [[artAssistantTurnFailed]]

example
 {
   action: "artAssistantTurnFailed",
   context_module: "artAssistant",
   context_screen_owner_type: "artAssistant",
   conversation_id: "6f1b8b0e-1f27-4a0e-9d6f-2c2f2a3d1f45",
   duration_ms: 60012,
   message_id: "b34d1f88-0c53-4f8a-9c2e-7b1f4a6d5e23",
   outcome: "idle_timeout",
   prompt_message_id: "a12c9d3e-6a41-4a59-8c0b-5f9b0a1d2e77"
 }

Hierarchy

  • ArtAssistantTurnFailed

Index

Properties

action

action: artAssistantTurnFailed

context_module

context_module: artAssistant

context_screen_owner_type

context_screen_owner_type: artAssistant

conversation_id

conversation_id: string

Client-generated id shared by every message in the same chat

duration_ms

duration_ms: number

Milliseconds from sending the message to the failure

Optional error_status

error_status: undefined | number

HTTP status behind the failure, when it came with one

message_id

message_id: string

Client-generated id of the assistant message that failed

outcome

outcome: "ended_without_answer" | "idle_timeout" | "stopped_without_answer" | "stream_error" | "trailing_stream_error" | "unauthenticated"

What went wrong

prompt_message_id

prompt_message_id: string

message_id of the [[sentArtAssistantMessage]] that was being answered

Optional stop_reason

stop_reason: undefined | string

Why the agent ended the turn, when the server reported a stop reason

Generated using TypeDoc