mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-08 08:45:41 +00:00
43 lines
804 B
TypeScript
43 lines
804 B
TypeScript
export type GatewayAgentIdentity = {
|
|
name?: string;
|
|
theme?: string;
|
|
emoji?: string;
|
|
avatar?: string;
|
|
avatarUrl?: string;
|
|
};
|
|
|
|
export type GatewayAgentModel = {
|
|
primary?: string;
|
|
fallbacks?: string[];
|
|
};
|
|
|
|
export type GatewayAgentRuntime = {
|
|
id: string;
|
|
fallback?: "pi" | "none";
|
|
source: "env" | "agent" | "defaults" | "implicit";
|
|
};
|
|
|
|
export type GatewayAgentRow = {
|
|
id: string;
|
|
name?: string;
|
|
identity?: GatewayAgentIdentity;
|
|
workspace?: string;
|
|
model?: GatewayAgentModel;
|
|
agentRuntime?: GatewayAgentRuntime;
|
|
};
|
|
|
|
export type SessionsListResultBase<TDefaults, TRow> = {
|
|
ts: number;
|
|
path: string;
|
|
count: number;
|
|
defaults: TDefaults;
|
|
sessions: TRow[];
|
|
};
|
|
|
|
export type SessionsPatchResultBase<TEntry> = {
|
|
ok: true;
|
|
path: string;
|
|
key: string;
|
|
entry: TEntry;
|
|
};
|