Skip to content
  • Auto
  • Light
  • Dark
DiscordForumGitHubSign up
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

Attach Archive To Agent

agents.archives.attach(strarchive_id, ArchiveAttachParams**kwargs) -> object
patch/v1/agents/{agent_id}/archives/attach/{archive_id}

Attach an archive to an agent.

ParametersExpand Collapse
agent_id: str

The ID of the agent in the format 'agent-'

minLength42
maxLength42
archive_id: str
ReturnsExpand Collapse
object
Attach Archive To Agent
from letta_client import Letta

client = Letta(
    api_key="My API Key",
)
response = client.agents.archives.attach(
    archive_id="archive_id",
    agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
)
print(response)
{}
Returns Examples
{}