mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Add per-agent MCP toolset configuration to agent setup (#279)
This commit is contained in:
@@ -240,6 +240,7 @@ export type RawManagedAgent = {
|
||||
parallelism: number;
|
||||
system_prompt: string | null;
|
||||
model: string | null;
|
||||
mcp_toolsets: string | null;
|
||||
has_api_token: boolean;
|
||||
status: ManagedAgent["status"];
|
||||
pid: number | null;
|
||||
@@ -831,6 +832,7 @@ export function fromRawManagedAgent(agent: RawManagedAgent): ManagedAgent {
|
||||
parallelism: agent.parallelism,
|
||||
systemPrompt: agent.system_prompt,
|
||||
model: agent.model,
|
||||
mcpToolsets: agent.mcp_toolsets,
|
||||
hasApiToken: agent.has_api_token,
|
||||
status: agent.status,
|
||||
pid: agent.pid,
|
||||
@@ -927,6 +929,7 @@ export async function createManagedAgent(input: CreateManagedAgentInput) {
|
||||
agentCommand: input.agentCommand,
|
||||
agentArgs: input.agentArgs,
|
||||
mcpCommand: input.mcpCommand,
|
||||
mcpToolsets: input.mcpToolsets,
|
||||
turnTimeoutSeconds: input.turnTimeoutSeconds,
|
||||
idleTimeoutSeconds: input.idleTimeoutSeconds,
|
||||
maxTurnDurationSeconds: input.maxTurnDurationSeconds,
|
||||
|
||||
@@ -294,6 +294,7 @@ export type ManagedAgent = {
|
||||
parallelism: number;
|
||||
systemPrompt: string | null;
|
||||
model: string | null;
|
||||
mcpToolsets: string | null;
|
||||
hasApiToken: boolean;
|
||||
status: "running" | "stopped" | "deployed" | "not_deployed";
|
||||
pid: number | null;
|
||||
@@ -337,6 +338,7 @@ export type CreateManagedAgentInput = {
|
||||
systemPrompt?: string;
|
||||
avatarUrl?: string;
|
||||
model?: string;
|
||||
mcpToolsets?: string;
|
||||
mintToken?: boolean;
|
||||
tokenScopes?: TokenScope[];
|
||||
tokenName?: string;
|
||||
@@ -407,6 +409,7 @@ export type UpdateManagedAgentInput = {
|
||||
name?: string;
|
||||
model?: string | null;
|
||||
systemPrompt?: string | null;
|
||||
mcpToolsets?: string | null;
|
||||
};
|
||||
export type AgentPersona = {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user