fix: update gh templates (#3155)
This commit is contained in:
39
README.md
39
README.md
@@ -8,21 +8,26 @@
|
||||
|
||||
# Letta (formerly MemGPT)
|
||||
|
||||
Letta is the platform for building stateful agents: open AI with advanced memory that can learn and self-improve over time.
|
||||
Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
|
||||
|
||||
* [**Quickstart**](https://docs.letta.com/quickstart): Build your first stateful agent in 5 minutes using Python or TypeScript
|
||||
* [**Understanding agent memory**](https://docs.letta.com/core-concepts): Learn about memory blocks, tools, and how Letta agents maintain state
|
||||
* [**Examples and tutorials**](https://docs.letta.com/tutorials/): Working code examples for common use cases and agent patterns
|
||||
* [**API reference**](https://docs.letta.com/api): Complete REST API and SDK documentation for Python and TypeScript
|
||||
* [Letta Code](https://docs.letta.com/letta-code): run agents locally in your terminal
|
||||
* [Letta API](https://docs.letta.com/quickstart/): build agents into your applications
|
||||
|
||||
> [!TIP]
|
||||
> **Letta Code** is a memory-first coding harness, built on top of the Letta API. Instead of working in independent sessions, you work with a persisted agent that learns over time and is portable across models. You can use Letta Code to interact with any Letta agent via the CLI.
|
||||
>
|
||||
> Read more about how to use Letta Code on the [official docs page](https://docs.letta.com/letta-code), or on the [GitHub repo](https://github.com/letta-ai/letta-code).
|
||||
## Get started in the CLI
|
||||
|
||||
Requires [Node.js 18+](https://nodejs.org/en/download)
|
||||
|
||||
1. Install the [Letta Code](https://github.com/letta-ai/letta-code) CLI tool: `npm install -g @letta-ai/letta-code`
|
||||
2. Run `letta` in your terminal to launch an agent with memory running on your local computer
|
||||
|
||||
When running the CLI tool, your agent help you code and do any task you can do on your computer.
|
||||
|
||||
Letta Code supports [skills](https://docs.letta.com/letta-code/skills) and [subagents](https://docs.letta.com/letta-code/subagents), and bundles pre-built skills/subagents for advanced memory and continual learning. Letta is fully model-agnostic, though we recommend Opus 4.5 and GPT-5.2 for best performance (see our [model leaderboard](https://leaderboard.letta.com/) for our rankings).
|
||||
|
||||
## Get started with the Letta API
|
||||
|
||||
Use the Letta API to build stateful agents that remember, learn, and improve over time. Letta allows you to build agents on any model provider, including OpenAI, Anthropic, Google Gemini, and more.
|
||||
Use the Letta API to integrate stateful agents into your own applications.
|
||||
Letta has a full-featured agents API, and a Python and Typescript SDK (view our [API reference](https://docs.letta.com/api)).
|
||||
|
||||
### Installation
|
||||
|
||||
@@ -38,11 +43,9 @@ pip install letta-client
|
||||
|
||||
### Hello World example
|
||||
|
||||
Below is a quick example of creating a stateful agent and sending it a message.
|
||||
Below is a quick example of creating a stateful agent and sending it a message (requires a [Letta API key](https://app.letta.com)).
|
||||
See the full [quickstart guide](https://docs.letta.com/quickstart) for complete documentation.
|
||||
|
||||
Running the examples require a [Letta Developer Platform](https://app.letta.com) account, or a [self-hosted Letta server](https://docs.letta.com/guides/selfhosting/).
|
||||
|
||||
TypeScript:
|
||||
```typescript
|
||||
import Letta from "@letta-ai/letta-client";
|
||||
@@ -51,8 +54,7 @@ const client = new Letta({ apiKey: process.env.LETTA_API_KEY });
|
||||
|
||||
// Create your agent
|
||||
const agentState = await client.agents.create({
|
||||
model: "openai/gpt-4.1",
|
||||
embedding: "openai/text-embedding-3-small",
|
||||
model: "openai/gpt-5.2",
|
||||
memory_blocks: [
|
||||
{
|
||||
label: "human",
|
||||
@@ -65,7 +67,7 @@ const agentState = await client.agents.create({
|
||||
"I am a self-improving superintelligence. Timber is my best friend and collaborator.",
|
||||
},
|
||||
],
|
||||
tools: ["web_search", "run_code"],
|
||||
tools: ["web_search", "fetch_webpage"],
|
||||
});
|
||||
|
||||
console.log("Agent created with ID:", agentState.id);
|
||||
@@ -89,8 +91,7 @@ client = Letta(api_key=os.getenv("LETTA_API_KEY"))
|
||||
|
||||
# Create your agent
|
||||
agent_state = client.agents.create(
|
||||
model="openai/gpt-4.1",
|
||||
embedding="openai/text-embedding-3-small",
|
||||
model="openai/gpt-5.2",
|
||||
memory_blocks=[
|
||||
{
|
||||
"label": "human",
|
||||
@@ -101,7 +102,7 @@ agent_state = client.agents.create(
|
||||
"value": "I am a self-improving superintelligence. Timber is my best friend and collaborator."
|
||||
}
|
||||
],
|
||||
tools=["web_search", "run_code"]
|
||||
tools=["web_search", "fetch_webpage"]
|
||||
)
|
||||
|
||||
print(f"Agent created with ID: {agent_state.id}")
|
||||
|
||||
Reference in New Issue
Block a user