feat: add agent description and show in /resume (#192)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2025-12-12 14:54:16 -08:00
committed by GitHub
parent a58dddaf3d
commit ba7cda4bee
2 changed files with 10 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ export interface CreateAgentResult {
}
export async function createAgent(
name = "letta-cli-agent",
name = "letta-code-agent",
model?: string,
embeddingModel = "openai/text-embedding-3-small",
updateArgs?: Record<string, unknown>,
@@ -342,6 +342,7 @@ export async function createAgent(
agent_type: "letta_v1_agent" as AgentType,
system: systemPrompt,
name,
description: `Letta Code agent created in ${process.cwd()}`,
embedding: embeddingModel,
model: modelHandle,
context_window_limit: contextWindow,

View File

@@ -11,7 +11,7 @@ interface ResumeSelectorProps {
onCancel: () => void;
}
const PAGE_SIZE = 10;
const PAGE_SIZE = 5;
/**
* Format a relative time string from a date
@@ -274,7 +274,13 @@ export function ResumeSelector({
<Text color={colors.selector.itemCurrent}> (current)</Text>
)}
</Box>
{/* Row 2: Metadata (dimmed) */}
{/* Row 2: Description */}
<Box flexDirection="row" marginLeft={2}>
<Text dimColor italic>
{agent.description || "No description"}
</Text>
</Box>
{/* Row 3: Metadata (dimmed) */}
<Box flexDirection="row" marginLeft={2}>
<Text dimColor>
{relativeTime} · {blockCount} memory block