feat: add naming dialog when pinning agents (#279)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2025-12-17 19:08:30 -08:00
committed by GitHub
parent a4a5920574
commit a5b01e7126
4 changed files with 319 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import type {
AgentState,
AgentType,
} from "@letta-ai/letta-client/resources/agents/agents";
import { DEFAULT_AGENT_NAME } from "../constants";
import { getToolNames } from "../tools/manager";
import { getClient } from "./client";
import { getDefaultMemoryBlocks } from "./memory";
@@ -45,7 +46,7 @@ export interface CreateAgentResult {
}
export async function createAgent(
name = "letta-code-agent",
name = DEFAULT_AGENT_NAME,
model?: string,
embeddingModel = "openai/text-embedding-3-small",
updateArgs?: Record<string, unknown>,