feat: first pass, sharing agents

This commit is contained in:
Danny Avila 2024-09-04 15:29:14 -04:00
parent 0a73caf1d8
commit 1bc0689134
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364
8 changed files with 241 additions and 22 deletions

View file

@ -90,6 +90,7 @@ export const defaultAgentFormValues = {
model_parameters: {},
tools: [],
provider: {},
projectIds: [],
code_interpreter: false,
image_vision: false,
retrieval: false,

View file

@ -160,6 +160,7 @@ export type Agent = {
file_ids: string[];
instructions: string | null;
tools?: string[];
projectIds?: string[];
tool_kwargs?: Record<string, unknown>;
tool_resources?: ToolResources;
metadata?: Record<string, unknown>;
@ -192,8 +193,10 @@ export type AgentUpdateParams = {
tools?: Array<FunctionTool | string>;
tool_resources?: ToolResources;
provider?: AgentProvider;
model: string | null;
model_parameters: AgentModelParameters;
model?: string | null;
model_parameters?: AgentModelParameters;
projectIds?: string[];
removeProjectIds?: string[];
};
export type AgentListParams = {