pub struct SummaryPlan {
pub messages: Option<Vec<Value>>,
pub enabled: Option<bool>,
pub timeout_seconds: Option<f64>,
}
Fields§
§messages: Option<Vec<Value>>
These are the messages used to generate the summary. @default: [ { \"role\": \"system\", \"content\": \"You are an expert note-taker. You will be given a transcript of a call. Summarize the call in 2-3 sentences. DO NOT return anything except the summary.\" }, { \"role\": \"user\", \"content\": \"Here is the transcript:\\n\\n{{transcript}}\\n\\n. Here is the ended reason of the call:\\n\\n{{endedReason}}\\n\\n\" } ]
You can customize by providing any messages you want. Here are the template variables available: - {{transcript}}: The transcript of the call from call.artifact.transcript
- {{systemPrompt}}: The system prompt of the call from assistant.model.messages[type=system].content
- {{endedReason}}: The ended reason of the call from call.endedReason
enabled: Option<bool>
This determines whether a summary is generated and stored in call.analysis.summary
. Defaults to true. Usage: - If you want to disable the summary, set this to false. @default true
timeout_seconds: Option<f64>
This is how long the request is tried before giving up. When request times out, call.analysis.summary
will be empty. Usage: - To guarantee the summary is generated, set this value high. Note, this will delay the end of call report in cases where model is slow to respond. @default 5 seconds
Implementations§
Source§impl SummaryPlan
impl SummaryPlan
pub fn new() -> SummaryPlan
Trait Implementations§
Source§impl Clone for SummaryPlan
impl Clone for SummaryPlan
Source§fn clone(&self) -> SummaryPlan
fn clone(&self) -> SummaryPlan
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more