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.

3.7 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * agent_harness_service
 * OpenAPI spec version: 0.1.0
 */
import type { AgentSessionResponseAcpSessionId } from './agentSessionResponseAcpSessionId';
import type { AgentSessionResponseArchivedAt } from './agentSessionResponseArchivedAt';
import type { AgentSessionResponseArchivedBy } from './agentSessionResponseArchivedBy';
import type { AgentSessionResponseExternal } from './agentSessionResponseExternal';
import type { AgentSessionResponseInstructions } from './agentSessionResponseInstructions';
import type { AgentSessionResponseOriginatingMessageId } from './agentSessionResponseOriginatingMessageId';
import type { AgentSessionResponsePullRequestUrl } from './agentSessionResponsePullRequestUrl';
import type { AgentSessionResponseRepoUrl } from './agentSessionResponseRepoUrl';
import type { AgentSessionResponseTaskId } from './agentSessionResponseTaskId';
import type { AgentSessionResponseThreadChannelId } from './agentSessionResponseThreadChannelId';
import type { AgentSessionResponseThreadId } from './agentSessionResponseThreadId';
import type { AgentSessionResponseThreadParent } from './agentSessionResponseThreadParent';
import type { SandboxSize } from './sandboxSize';
import type { SessionStatusDto } from './sessionStatusDto';
import type { TriggerOrigin } from './triggerOrigin';

/**
 * Response body describing an agent session.

Clients deserialize this, so both derives are used.
 */
export interface AgentSessionResponse {
  /** The ACP session id, if one exists. */
  acpSessionId?: AgentSessionResponseAcpSessionId;
  /** When the session was archived, or `None` while it is active. */
  archivedAt?: AgentSessionResponseArchivedAt;
  archivedBy?: AgentSessionResponseArchivedBy;
  /** The bot running the agent. */
  botId: string;
  /** Whether the caller may drive the session - prompt it, answer its
questions, stop it - rather than only watch. Edit access; the
creator owns the session, so a create response always says so. */
  canEdit: boolean;
  /** When the session was created. */
  createdAt: string;
  external?: AgentSessionResponseExternal;
  /** Harness slug. */
  harness: string;
  /** The session id. */
  id: string;
  /** Instructions the session's runtime works under, when any were stated
at creation. Absent otherwise, so existing payloads are unchanged. */
  instructions?: AgentSessionResponseInstructions;
  /** Model slug. */
  model: string;
  /** When the session was last modified. */
  modifiedAt: string;
  /** User-facing session name. */
  name: string;
  /** What opened the session: who or what started it, and what it is about.
`unknown` when nothing recorded it. */
  origin?: TriggerOrigin;
  /** The exact message that invoked the bot, if any. */
  originatingMessageId?: AgentSessionResponseOriginatingMessageId;
  /** The user who created and owns the session. */
  ownerId: string;
  /** The session's linked pull request. */
  pullRequestUrl?: AgentSessionResponsePullRequestUrl;
  /** The repository the session works with, when one was stated. */
  repoUrl?: AgentSessionResponseRepoUrl;
  /** Compute tier of the managed sandbox. */
  sandboxSize: SandboxSize;
  /** The session's status. */
  status: SessionStatusDto;
  /** The Macro task the session was linked to. */
  taskId?: AgentSessionResponseTaskId;
  /** The channel `thread_id` lives in, when the session was spawned from a
channel thread. Derived from `thread_parent`. */
  threadChannelId?: AgentSessionResponseThreadChannelId;
  /** The root message of the thread the session was created from, if any. */
  threadId?: AgentSessionResponseThreadId;
  threadParent?: AgentSessionResponseThreadParent;
  /** The directory the session's harness runs in on its runtime. */
  workspace: string;
}