Longbridge OpenAPI C++ SDK
Public Attributes | List of all members
longbridge::agent::MessagePayload Struct Reference

#include <types.hpp>

Public Attributes

std::string text
 Incremental text fragment. More...
 
std::string message_type
 
std::string key
 
int64_t started_at
 Time this segment started, Unix timestamp in seconds. More...
 
std::string stage
 Stage identifier; only present when message_type is "process". More...
 
std::string stage_title
 
std::string stage_finished_title
 
std::string outputs_json
 

Detailed Description

Payload of a Message conversation stream event — an incremental text chunk. This is the highest-frequency event; concatenate text fragments in arrival order.

Member Data Documentation

◆ key

std::string longbridge::agent::MessagePayload::key

Identifier of the stream segment this fragment belongs to. Fragments with the same key form one continuous block — group by key when rendering

◆ message_type

std::string longbridge::agent::MessagePayload::message_type

answer — final answer text; think — reasoning process; process — stage progress description

◆ outputs_json

std::string longbridge::agent::MessagePayload::outputs_json

Extra payload attached to the fragment, as a JSON string; empty when absent

◆ stage

std::string longbridge::agent::MessagePayload::stage

Stage identifier; only present when message_type is "process".

◆ stage_finished_title

std::string longbridge::agent::MessagePayload::stage_finished_title

Stage title after it finishes; only present when message_type is "process"

◆ stage_title

std::string longbridge::agent::MessagePayload::stage_title

Stage title while running; only present when message_type is "process"

◆ started_at

int64_t longbridge::agent::MessagePayload::started_at

Time this segment started, Unix timestamp in seconds.

◆ text

std::string longbridge::agent::MessagePayload::text

Incremental text fragment.


The documentation for this struct was generated from the following file: