Add 'apps/core/' from commit 'ea2a7395f4023f5b9fab03e6273db3b64a1181d5'

git-subtree-dir: apps/core
git-subtree-mainline: a8963e11e7a5a0059acbc849ce768e1eee80df61
git-subtree-split: ea2a7395f4023f5b9fab03e6273db3b64a1181d5
This commit is contained in:
Shubham Naik
2024-12-22 20:31:22 -08:00
commit 5a743d1dc4
478 changed files with 65642 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import json
from letta.agent import Agent
def dump_json(self: Agent, input: str) -> str:
"""
Dumps the content to JSON.
Args:
input (dict): dictionary object to convert to a string
Returns:
str: returns string version of the input
"""
return json.dumps(input)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,20 @@
{
"name": "agent_test",
"persona": "sam_pov",
"human": "basic",
"preset": "memgpt_chat",
"context_window": 8192,
"model": "gpt-4",
"model_endpoint_type": "openai",
"model_endpoint": "https://api.openai.com/v1",
"model_wrapper": null,
"embedding_endpoint_type": "openai",
"embedding_endpoint": "https://api.openai.com/v1",
"embedding_model": "text-embedding-ada-002",
"embedding_dim": 1536,
"embedding_chunk_size": 300,
"data_sources": [],
"create_time": "2024-01-11 12:42:25 PM",
"letta_version": "0.2.11",
"agent_config_path": "/Users/sarahwooders/.letta/agents/agent_test/config.json"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,22 @@
{
"name": "agent_test_attach",
"persona": "sam_pov",
"human": "basic",
"preset": "memgpt_chat",
"context_window": 8192,
"model": "gpt-4",
"model_endpoint_type": "openai",
"model_endpoint": "https://api.openai.com/v1",
"model_wrapper": null,
"embedding_endpoint_type": "openai",
"embedding_endpoint": "https://api.openai.com/v1",
"embedding_model": "text-embedding-ada-002",
"embedding_dim": 1536,
"embedding_chunk_size": 300,
"data_sources": [
"test"
],
"create_time": "2024-01-11 12:41:37 PM",
"letta_version": "0.2.11",
"agent_config_path": "/Users/sarahwooders/.letta/agents/agent_test_attach/config.json"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,20 @@
{
"name": "agent_test_empty_archival",
"persona": "sam_pov",
"human": "basic",
"preset": "memgpt_chat",
"context_window": 8192,
"model": "gpt-4",
"model_endpoint_type": "openai",
"model_endpoint": "https://api.openai.com/v1",
"model_wrapper": null,
"embedding_endpoint_type": "openai",
"embedding_endpoint": "https://api.openai.com/v1",
"embedding_model": "text-embedding-ada-002",
"embedding_dim": 1536,
"embedding_chunk_size": 300,
"data_sources": [],
"create_time": "2024-01-11 12:44:07 PM",
"letta_version": "0.2.11",
"agent_config_path": "/Users/sarahwooders/.letta/agents/agent_test_empty_archival/config.json"
}

Binary file not shown.

View File

@@ -0,0 +1,36 @@
[defaults]
preset = memgpt_chat
persona = sam_pov
human = basic
[model]
model = gpt-4
model_endpoint = https://api.openai.com/v1
model_endpoint_type = openai
context_window = 8192
[embedding]
embedding_endpoint_type = openai
embedding_endpoint = https://api.openai.com/v1
embedding_model = text-embedding-ada-002
embedding_dim = 1536
embedding_chunk_size = 300
[archival_storage]
type = chroma
path = /Users/sarahwooders/.letta/chroma
[recall_storage]
type = sqlite
path = /Users/sarahwooders/.letta
[metadata_storage]
type = sqlite
path = /Users/sarahwooders/.letta
[version]
letta_version = 0.2.12
[client]
anon_clientid = 00000000000000000000d67f40108c5c

Binary file not shown.

BIN
tests/data/memgpt_paper.pdf Normal file

Binary file not shown.

1
tests/data/test.txt Normal file
View File

@@ -0,0 +1 @@
test