|
| static bool | entropic::generation_cancelled (const GenerationEvents &events) |
| | Whether the generation in progress must stop (gh#158).
|
| |
| static void | entropic::log_system_message (size_t i, const Message &msg, const std::string &tier) |
| | Log the system message, in full only when it has changed.
|
| |
| static void | entropic::log_other_message (size_t i, const Message &msg, entropic::PromptLogDedup &dedup) |
| | Log one non-system message, in full the first time only.
|
| |
| static void | entropic::log_prompt (const std::vector< Message > &messages, const std::string &tier) |
| | Log the assembled prompt, each distinct body in full exactly once.
|
| |
| static void | entropic::stream_token_callback (const char *token, size_t len, void *user_data) |
| | Token callback for streaming generation.
|
| |
| static std::string | entropic::resolve_stream_finish_reason (int rc, size_t content_size) |
| | Resolve a stream's finish_reason from rc + content size.
|
| |
| static bool | entropic::flag_raised (const std::atomic< bool > *flag) |
| | Whether a nullable stop flag is set (gh#158).
|
| |
| static bool | entropic::apply_terminal_batch_rc (int rc, const char *result_json, GenerateResult &result) |
| | Map a TERMINAL batch return code onto the result, if it is one.
|
| |
| static void | entropic::json_escape_into (const std::string &s, std::string &out) |
| | Serialize messages to JSON for inference interface.
|
| |
| static void | entropic::serialize_content_parts (const std::vector< ContentPart > &parts, std::string &out) |
| | Serialize a single multimodal content_parts array (gh#37, v2.1.8).
|
| |
Response generation implementation.
- Version
- 1.8.4
Definition in file response_generator.cpp.