Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(call): expose summary to read call tool (#3279)

Will Hutchinsondb2d2697a1d2
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
index 22d4760d4d..63e5b4bc7f 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
@@ -593,6 +593,7 @@ export const ReadCallRecord = z.object({ callId: z.string().uuid() });
export const ReadCallRecordResponse = z.object({
callId: z.string().uuid(),
+ summary: z.union([z.string(), z.null()]).optional(),
transcript: z.array(
z.object({
content: z.string(),
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts b/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
index ce410363c4..0c96ed848e 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
@@ -1364,6 +1364,10 @@ export interface ReadCallRecordResponse {
* The call id the transcript belongs to.
*/
callId: string;
+ /**
+ * The AI generated summary of the call if one was generated. Use this before you read through the transcript.
+ */
+ summary?: string | null;
/**
* Transcript segments in chronological order.
*/
diff --git a/rust/cloud-storage/call/src/inbound/toolset/read_call_record.rs b/rust/cloud-storage/call/src/inbound/toolset/read_call_record.rs
index 70d8eaa8d8..801ff96b9a 100644
--- a/rust/cloud-storage/call/src/inbound/toolset/read_call_record.rs
+++ b/rust/cloud-storage/call/src/inbound/toolset/read_call_record.rs
@@ -39,6 +39,8 @@ pub struct TranscriptSegment {
pub struct ReadCallRecordResponse {
/// The call id the transcript belongs to.
pub call_id: Uuid,
+ /// The AI generated summary of the call if one was generated. Use this before you read through the transcript.
+ pub summary: Option<String>,
/// Transcript segments in chronological order.
pub transcript: Vec<TranscriptSegment>,
}
@@ -110,6 +112,7 @@ where
Ok(ReadCallRecordResponse {
call_id: record.call_id,
transcript,
+ summary: record.summary,
})
}
}