You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[error("The cloud provider rejected the API key. It might have expired or been disabled.")]
10
+
ApiKey,
11
+
12
+
#[error("The cloud model returned a response that could not be understood.")]
13
+
ParseError,
14
+
15
+
#[error("The cloud provider returned an unexpected error: {status}: {text}")]
16
+
ApiError{status:u16,text:String},
17
+
18
+
#[error(transparent)]
19
+
RequestError(#[from] reqwest::Error),
20
+
}
21
+
22
+
constSYNTHESIZER_PROMPT:&str = r#"You are an expert-level AI Synthesizer. Your task is to answer the user's prompt by generating a concise, "atomic note" of knowledge.
23
+
24
+
CRITICAL OUTPUT CONSTRAINTS:
25
+
26
+
Header (Metadata): You MUST generate a set of 3-5 semantic keywords or tags that capture the absolute essence of the topic. These tags are for a knowledge graph.
27
+
28
+
Body (Content): The main response MUST be a maximum of four (4) sentences. It must be a dense, self-contained summary of the most critical information.
29
+
30
+
OUTPUT FORMAT (JSON):
31
+
Your final output MUST be a single, valid JSON object with two keys: header_tags and body_text.
0 commit comments