feat(agents): 新增云端智能体入口与草稿编辑
This commit is contained in:
28
shared/cloud-agents.ts
Normal file
28
shared/cloud-agents.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
export const CLOUD_AGENTS_PATH = '/api/cloud-agents';
|
||||
|
||||
export interface CloudAgentDraft {
|
||||
slug: string;
|
||||
name: string;
|
||||
purpose: string;
|
||||
system_prompt: string;
|
||||
draft_revision: number;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface CloudAgentPage {
|
||||
agents: CloudAgentDraft[];
|
||||
next_cursor: string | null;
|
||||
}
|
||||
|
||||
export interface CreateCloudAgent {
|
||||
operation_id: string;
|
||||
name: string;
|
||||
purpose: string;
|
||||
}
|
||||
|
||||
export interface SaveCloudAgentDraft {
|
||||
expected_revision: number;
|
||||
name: string;
|
||||
purpose: string;
|
||||
system_prompt: string;
|
||||
}
|
||||
Reference in New Issue
Block a user