fix: update gh templates (#3155)
This commit is contained in:
9
.github/ISSUE_TEMPLATE/bug_report.md
vendored
9
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -7,6 +7,15 @@ assignees: ''
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> **🚨 Reporting a bug with Letta Code?**
|
||||||
|
>
|
||||||
|
> Please file your issue at **[letta-ai/letta-code](https://github.com/letta-ai/letta-code/issues)** instead!
|
||||||
|
>
|
||||||
|
> This repository is for the core Letta Docker server only. Issues related to the Letta Code CLI tool or agentic coding features should be reported in the Letta Code repository.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
**Describe the bug**
|
**Describe the bug**
|
||||||
A clear and concise description of what the bug is.
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
|||||||
9
.github/ISSUE_TEMPLATE/feature_request.md
vendored
9
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -7,6 +7,15 @@ assignees: ''
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> **🚨 Reporting a bug with Letta Code?**
|
||||||
|
>
|
||||||
|
> Please file your issue at **[letta-ai/letta-code](https://github.com/letta-ai/letta-code/issues)** instead!
|
||||||
|
>
|
||||||
|
> This repository is for the core Letta Docker server only. Issues related to the Letta Code CLI tool or agentic coding features should be reported in the Letta Code repository.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
**Is your feature request related to a problem? Please describe.**
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
|
||||||
|
|||||||
39
README.md
39
README.md
@@ -8,21 +8,26 @@
|
|||||||
|
|
||||||
# Letta (formerly MemGPT)
|
# 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
|
* [Letta Code](https://docs.letta.com/letta-code): run agents locally in your terminal
|
||||||
* [**Understanding agent memory**](https://docs.letta.com/core-concepts): Learn about memory blocks, tools, and how Letta agents maintain state
|
* [Letta API](https://docs.letta.com/quickstart/): build agents into your applications
|
||||||
* [**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
|
|
||||||
|
|
||||||
> [!TIP]
|
## Get started in the CLI
|
||||||
> **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.
|
|
||||||
>
|
Requires [Node.js 18+](https://nodejs.org/en/download)
|
||||||
> 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).
|
|
||||||
|
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
|
## 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
|
### Installation
|
||||||
|
|
||||||
@@ -38,11 +43,9 @@ pip install letta-client
|
|||||||
|
|
||||||
### Hello World example
|
### 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.
|
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:
|
||||||
```typescript
|
```typescript
|
||||||
import Letta from "@letta-ai/letta-client";
|
import Letta from "@letta-ai/letta-client";
|
||||||
@@ -51,8 +54,7 @@ const client = new Letta({ apiKey: process.env.LETTA_API_KEY });
|
|||||||
|
|
||||||
// Create your agent
|
// Create your agent
|
||||||
const agentState = await client.agents.create({
|
const agentState = await client.agents.create({
|
||||||
model: "openai/gpt-4.1",
|
model: "openai/gpt-5.2",
|
||||||
embedding: "openai/text-embedding-3-small",
|
|
||||||
memory_blocks: [
|
memory_blocks: [
|
||||||
{
|
{
|
||||||
label: "human",
|
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.",
|
"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);
|
console.log("Agent created with ID:", agentState.id);
|
||||||
@@ -89,8 +91,7 @@ client = Letta(api_key=os.getenv("LETTA_API_KEY"))
|
|||||||
|
|
||||||
# Create your agent
|
# Create your agent
|
||||||
agent_state = client.agents.create(
|
agent_state = client.agents.create(
|
||||||
model="openai/gpt-4.1",
|
model="openai/gpt-5.2",
|
||||||
embedding="openai/text-embedding-3-small",
|
|
||||||
memory_blocks=[
|
memory_blocks=[
|
||||||
{
|
{
|
||||||
"label": "human",
|
"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."
|
"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}")
|
print(f"Agent created with ID: {agent_state.id}")
|
||||||
|
|||||||
Reference in New Issue
Block a user