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

#include <types.hpp>

Public Attributes

std::string chat_uid
 
std::string message_id
 Message ID of this round. More...
 
ConversationStatus status
 Final run status. More...
 
std::string answer
 Final answer text; valid when status is ConversationStatus::Succeeded. More...
 
std::vector< Referencereferences
 Sources referenced by the answer. More...
 
double elapsed_time
 Run duration in seconds. More...
 
std::optional< Interruptinterrupt
 Present only when status is ConversationStatus::Interrupted. More...
 
std::optional< AgentErrorerror
 Present only when the run failed. More...
 

Detailed Description

Response for AgentContext::conversation, AgentContext::continue_conversation, and the final result of the streamed counterparts.

Member Data Documentation

◆ answer

std::string longbridge::agent::ConversationResponse::answer

Final answer text; valid when status is ConversationStatus::Succeeded.

◆ chat_uid

std::string longbridge::agent::ConversationResponse::chat_uid

Conversation identifier, used for follow-up questions and troubleshooting

◆ elapsed_time

double longbridge::agent::ConversationResponse::elapsed_time

Run duration in seconds.

◆ error

std::optional<AgentError> longbridge::agent::ConversationResponse::error

Present only when the run failed.

◆ interrupt

std::optional<Interrupt> longbridge::agent::ConversationResponse::interrupt

Present only when status is ConversationStatus::Interrupted.

◆ message_id

std::string longbridge::agent::ConversationResponse::message_id

Message ID of this round.

◆ references

std::vector<Reference> longbridge::agent::ConversationResponse::references

Sources referenced by the answer.

◆ status

ConversationStatus longbridge::agent::ConversationResponse::status

Final run status.


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