[READ-ONLY] Mirror of https://github.com/just-cameron/files-demo.
0

Configure Feed

Select the types of activity you want to include in your feed.

2 1 0

Clone this repository

https://git.vm.fail/cameron.stream/files-demo https://git.vm.fail/did:plc:bnsjzdb2lwtro4ze2m4oigjr
ssh://git@knot1.tangled.sh:2222/cameron.stream/files-demo ssh://git@knot1.tangled.sh:2222/did:plc:bnsjzdb2lwtro4ze2m4oigjr

For self-hosted knots, clone URLs may differ based on your setup.


README.md

Letta Files and Streaming Demo#

This demo shows how to work with Letta's file upload and streaming capabilities.

Features#

  • Upload files from disk to a Letta data source
  • Create files from strings and upload them
  • Download and upload PDF files
  • Create an agent and attach data sources
  • Stream agent responses in real-time
  • Interactive chat with file-aware agent

Files#

  • main.py - Main demo script showing file upload and streaming
  • example-on-disk.txt - Sample text file for upload demonstration
  • memgpt.pdf - MemGPT paper (downloaded automatically)

Setup#

  1. Set your Letta API key: export LETTA_API_KEY=your_key_here
  2. Install dependencies: pip install letta-client requests rich
  3. Run the demo: python main.py

Usage#

The demo will:

  1. Create a data source called "Example Source"
  2. Upload the example text file and PDF
  3. Create an agent named "Clippy"
  4. Start an interactive chat session

Type 'quit' or 'exit' to end the conversation.