|
Longbridge OpenAPI C++ SDK
|
Typedefs | |
| using | AnswersByToolCall = std::map< std::string, std::map< std::string, std::string > > |
Enumerations | |
| enum class | ConversationStatus { Succeeded , Interrupted , Failed , Stopped } |
| Final run status of a conversation. More... | |
| enum class | ConversationStreamEventKind { ChatStarted , WorkflowStarted , Message , Ping , ThinkingStarted , ThinkingFinished , NodeToolUseStarted , NodeToolUseFinished , SubagentStarted , SubagentProgress , SubagentFinished , AgentToolStarted , AgentToolProgress , AgentToolFinished , HumanInteractionRequired , QueryMasked , PlanChanged , ContextCompressStarted , ContextCompressFinished , ChatFinished , WorkflowFinished , ChatTitleUpdated , Other } |
| using longbridge::agent::AnswersByToolCall = typedef std::map<std::string, std::map<std::string, std::string> > |
Answers keyed by tool_call_id, then by question text — mirrors the Rust core's HashMap<String, HashMap<String, String>> (see the C layer's lb_answers_by_tool_call_entry_t/lb_answer_question_t, which flatten this nested map into arrays since C has no native map type).
|
strong |
Final run status of a conversation.
| Enumerator | |
|---|---|
| Succeeded | The run completed successfully. |
| Interrupted | The run is paused, waiting for AgentContext::continue_conversation. |
| Failed | The run failed. |
| Stopped | The run was stopped. |
|
strong |
Kind of a ConversationStreamEvent. Only the field matching this kind is populated, the others are std::nullopt.
| Enumerator | |
|---|---|
| ChatStarted | The run has started; |
| WorkflowStarted | Observed right after |
| Message | An incremental piece of the answer; |
| Ping | A heartbeat with no payload, observed at arbitrary points in the stream (including in between |
| ThinkingStarted | The Agent has entered the reasoning phase; |
| ThinkingFinished | The reasoning phase is over; |
| NodeToolUseStarted | An ordinary tool call has started; |
| NodeToolUseFinished | An ordinary tool call has ended; |
| SubagentStarted | The Agent has spawned a subagent to work on a sub-task; |
| SubagentProgress | The subagent has called one of its own tools; |
| SubagentFinished | The subagent has finished its sub-task; |
| AgentToolStarted | The Agent has delegated to another Agent as a tool; |
| AgentToolProgress | The delegated Agent has called one of its own tools; |
| AgentToolFinished | The delegated Agent's run has finished; |
| HumanInteractionRequired | The run is paused: the Agent needs more information or confirmation from you; |
| QueryMasked | Sensitive content in the user query was masked before processing; |
| PlanChanged | The Agent created or updated its task plan; |
| ContextCompressStarted | A context-compression pass has started; |
| ContextCompressFinished | The context-compression pass has finished; |
| ChatFinished | Observed once all |
| WorkflowFinished | The run finished successfully, with a failure, or stopped by the user; |
| ChatTitleUpdated | The server auto-generating a short title for the conversation; |
| Other | An event type not recognized by this SDK version; |