Mercurial
view mrjunejune/conversation_api.h @ 273:e02e2036ef84 default tip
add Layer 2 JRPG component system
Add reusable content and window modals, an isolated component sandbox, shared cyberpunk scroll areas, production-safe cache freshness, and server-rendered JRPG panel state.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 08 Aug 2026 02:08:08 -0700 |
| parents | 04fee26ecce0 |
| children |
line wrap: on
line source
#ifndef MRJUNEJUNE_CONVERSATION_API_H #define MRJUNEJUNE_CONVERSATION_API_H #include "dowa/dowa.h" /* * Guest quota policy passed from the config loader into Conversation_API_Init. * All fields must be validated (positive integers within supported ranges) * before passing; Init returns FALSE if any field is out of range. * Set guest_inference_enabled = FALSE to block all guest inference; TRUE to * allow it subject to quota. * request_output_tokens: per-request reservation cap; must be <= daily_output_tokens. */ typedef struct { boolean guest_inference_enabled; int64 daily_turns; int64 daily_output_tokens; int64 request_output_tokens; } Conversation_API_Guest_Policy; boolean Conversation_API_Init( const char *database_path, const Conversation_API_Guest_Policy *p_policy); boolean Conversation_API_Enable_Inference( const char *sidecar_path, const char *copilot_cli_path); void Conversation_API_Register_Routes(void); void Conversation_API_Destroy(void); #endif