Skip to content

Commit

Permalink
onboard letta client
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryPan2718 committed Jan 15, 2025
1 parent df4f55b commit a8822c5
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
docs/
assets/
assets/
*.md
11 changes: 11 additions & 0 deletions core/memgpt/memAgent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { LettaClient, LettaEnvironment } from "@letta-ai/letta-client";

// connect to a local server
export const localLettaClient = new LettaClient({
environment: LettaEnvironment.SelfHosted,
});

// connect to Letta Cloud
export const cloudLettaClient = new LettaClient({
token: "LETTA_API_KEY",
});
149 changes: 139 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,28 @@
"dependencies": {
"@anthropic-ai/sdk": "^0.10.0",
"@aws-sdk/client-bedrock-runtime": "^3.0.0",
"@google-ai/generativelanguage": "^1.1.0",
"@google-cloud/compute": "^3.0.0",
"@google-cloud/language": "^6.1.0",
"@google-cloud/run": "^1.0.0",
"@google-cloud/scheduler": "^3.0.0",
"@google-cloud/secret-manager": "^4.0.0",
"@google-cloud/storage": "^6.0.0",
"@google/generative-ai": "^0.1.0",
"@letta-ai/letta-client": "^0.1.9",
"@mistralai/mistralai": "^0.1.0",
"@types/node": "^latest_version",
"chalk": "^5.3.0",
"cli-table3": "^0.6.3",
"cohere-ai": "^7.0.0",
"commander": "^11.0.0",
"google-auth-library": "^9.0.0",
"lint": "^1.1.2",
"mongodb": "^6.3.0",
"ollama": "^0.1.0",
"openai": "^4.0.0",
"prettier": "^3.4.2",
"typescript": "^5.0.0",
"@google-ai/generativelanguage": "^1.1.0",
"google-auth-library": "^9.0.0",
"mongodb": "^6.3.0",
"@types/node": "^latest_version",
"@google-cloud/secret-manager": "^4.0.0",
"@google-cloud/scheduler": "^3.0.0",
"@google-cloud/storage": "^6.0.0",
"@google-cloud/run": "^1.0.0",
"@google-cloud/compute": "^3.0.0",
"commander": "^11.0.0",
"chalk": "^5.3.0",
"cli-table3": "^0.6.3"
"typescript": "^5.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
Expand Down

0 comments on commit a8822c5

Please sign in to comment.