@@ -20,7 +20,6 @@ if settings.letta_pg_uri_no_default:
|
||||
else:
|
||||
config.set_main_option("sqlalchemy.url", "sqlite:///" + os.path.join(letta_config.recall_storage_path, "sqlite.db"))
|
||||
|
||||
print(f"Using database: ", settings.letta_pg_uri, settings.letta_pg_uri_no_default)
|
||||
# Interpret the config file for Python logging.
|
||||
# This line sets up loggers basically.
|
||||
if config.config_file_name is not None:
|
||||
|
||||
@@ -3,7 +3,7 @@ __version__ = "0.6.7"
|
||||
# import clients
|
||||
from letta.client.client import LocalClient, RESTClient, create_client
|
||||
|
||||
# imports for easier access
|
||||
# # imports for easier access
|
||||
from letta.schemas.agent import AgentState
|
||||
from letta.schemas.block import Block
|
||||
from letta.schemas.embedding_config import EmbeddingConfig
|
||||
|
||||
@@ -35,7 +35,6 @@ from letta.schemas.source import Source, SourceCreate, SourceUpdate
|
||||
from letta.schemas.tool import Tool, ToolCreate, ToolUpdate
|
||||
from letta.schemas.tool_rule import BaseToolRule
|
||||
from letta.server.rest_api.interface import QueuingInterface
|
||||
from letta.server.server import SyncServer
|
||||
from letta.utils import get_human_text, get_persona_text
|
||||
|
||||
|
||||
@@ -2010,6 +2009,8 @@ class LocalClient(AbstractClient):
|
||||
debug (bool): Whether to print debug information.
|
||||
"""
|
||||
|
||||
from letta.server.server import SyncServer
|
||||
|
||||
# set logging levels
|
||||
letta.utils.DEBUG = debug
|
||||
logging.getLogger().setLevel(logging.CRITICAL)
|
||||
|
||||
@@ -3,7 +3,6 @@ from typing import Any, Dict, List, Optional, Type, Union, get_args, get_origin
|
||||
|
||||
from docstring_parser import parse
|
||||
from pydantic import BaseModel
|
||||
from pydantic.v1 import BaseModel as V1BaseModel
|
||||
|
||||
|
||||
def is_optional(annotation):
|
||||
|
||||
@@ -180,6 +180,7 @@ def db_error_handler():
|
||||
exit(1)
|
||||
|
||||
|
||||
print("Creating engine", settings.letta_pg_uri)
|
||||
if settings.letta_pg_uri_no_default:
|
||||
config.recall_storage_type = "postgres"
|
||||
config.recall_storage_uri = settings.letta_pg_uri_no_default
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
|
||||
|
||||
<script>
|
||||
if (localStorage.theme === 'dark') {
|
||||
if (document && document.documentElement) {
|
||||
@@ -34,6 +34,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="h-full w-full" id="root"></div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
1381
poetry.lock
generated
1381
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,7 @@
|
||||
name = "letta"
|
||||
version = "0.6.7"
|
||||
packages = [
|
||||
{include = "letta"}
|
||||
{include = "letta"},
|
||||
]
|
||||
description = "Create LLM agents with long-term memory and custom tools"
|
||||
authors = [
|
||||
@@ -15,7 +15,7 @@ readme = "README.md"
|
||||
letta = "letta.main:app"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "<4.0,>=3.10"
|
||||
python = "<3.14,>=3.10"
|
||||
typer = {extras = ["all"], version = "^0.9.0"}
|
||||
questionary = "^2.0.1"
|
||||
pytz = "^2023.3.post1"
|
||||
|
||||
Reference in New Issue
Block a user