pulsatrix 1.1.0
Loading...
Searching...
No Matches
message.hpp File Reference

The orchestrator's message format, shared by every LLM provider. More...

#include <cstdint>
#include <optional>
#include <string>
#include <vector>
#include "pulsatrix/json.hpp"
Include dependency graph for message.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pulsatrix::orch::ContentBlock
 One block of a message's content. More...
 
struct  pulsatrix::orch::Message
 One turn of a conversation. More...
 
struct  pulsatrix::orch::ToolSpec
 A tool the model may call. ToolRegistry::specs() makes these from its tools. More...
 
struct  pulsatrix::orch::Usage
 Tokens used by one request, or summed over a tool loop. More...
 
struct  pulsatrix::orch::ChatRequest
 A request to a provider. More...
 
struct  pulsatrix::orch::ChatResponse
 A provider's answer. More...
 

Namespaces

namespace  pulsatrix
 
namespace  pulsatrix::orch
 

Enumerations

enum class  pulsatrix::orch::StopReason {
  pulsatrix::orch::EndTurn , pulsatrix::orch::ToolUse , pulsatrix::orch::MaxTokens , pulsatrix::orch::StopSequence ,
  pulsatrix::orch::PauseTurn , pulsatrix::orch::Refusal , pulsatrix::orch::Other
}
 Why the model stopped. More...
 

Functions

bool pulsatrix::orch::IsValidToolName (const std::string &name)
 Whether name is a valid tool name (^[a-zA-Z0-9_-]{1,128}$).
 

Detailed Description

The orchestrator's message format, shared by every LLM provider.