Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
import type { AgentActionId } from './agentActionId';
import type { SessionIdentity } from './sessionIdentity';
import type { TurnEndedMetadataActor } from './turnEndedMetadataActor';
import type { TurnEndedMetadataAnnouncementMessageId } from './turnEndedMetadataAnnouncementMessageId';
/**
* The runtime answered a turn. Another prompt may follow at once; see
[`SessionSettledMetadata`] for "nothing left to do".
*/
export interface TurnEndedMetadata {
/** The action that opened the turn. */
action_id: AgentActionId;
actor?: TurnEndedMetadataActor;
/** The magic-chip message posted for this turn, when one was. */
announcement_message_id?: TurnEndedMetadataAnnouncementMessageId;
/** The session. */
identity: SessionIdentity;
/**
* Prompts still waiting behind this turn.
* @minimum 0
*/
queued_remaining: number;
/** The ACP stop reason, or `"error"` when the runtime refused the prompt. */
stop_reason: string;
/**
* Position in the session's log.
* @minimum 0
*/
turn: number;
}