MCPcopy
hub / github.com/dataelement/Clawith / Agent

Interface Agent

frontend/src/types/index.ts:19–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19export interface Agent {
20 id: string;
21 name: string;
22 avatar_url?: string;
23 role_description: string;
24 bio?: string;
25 status: 'creating' | 'running' | 'idle' | 'stopped' | 'error';
26 creator_id: string;
27 primary_model_id?: string;
28 fallback_model_id?: string;
29 autonomy_policy: Record<string, string>;
30 tokens_used_today: number;
31 tokens_used_month: number;
32 tokens_used_total?: number;
33 cache_read_tokens_today?: number;
34 cache_read_tokens_month?: number;
35 cache_read_tokens_total?: number;
36 cache_creation_tokens_today?: number;
37 cache_creation_tokens_month?: number;
38 cache_creation_tokens_total?: number;
39 max_tokens_per_day?: number;
40 max_tokens_per_month?: number;
41 heartbeat_enabled: boolean;
42 heartbeat_interval_minutes: number;
43 heartbeat_active_hours: string;
44 last_heartbeat_at?: string;
45 timezone?: string;
46 context_window_size?: number;
47 agent_type?: 'native' | 'openclaw';
48 openclaw_last_seen?: string;
49 access_mode?: 'company' | 'private' | 'custom';
50 company_access_level?: 'use' | 'manage';
51 unread_count?: number;
52 // True when the viewing user has already been onboarded to this agent.
53 // Defaults to true on list endpoints that don't compute per-viewer state.
54 onboarded_for_me?: boolean;
55 created_at: string;
56 last_active_at?: string;
57}
58
59export interface Task {
60 id: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected