Skip to content

Commit 81046fd

Browse files
authored
chore: 0.8.5 release (#2688)
2 parents 08ef32a + e5ae25d commit 81046fd

File tree

67 files changed

+2907
-1622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2907
-1622
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"""Add callback error field to jobs
2+
3+
Revision ID: 90fd814d0cda
4+
Revises: c0ef3ff26306
5+
Create Date: 2025-06-16 13:04:53.496195
6+
7+
"""
8+
9+
from typing import Sequence, Union
10+
11+
import sqlalchemy as sa
12+
13+
from alembic import op
14+
15+
# revision identifiers, used by Alembic.
16+
revision: str = "90fd814d0cda"
17+
down_revision: Union[str, None] = "c0ef3ff26306"
18+
branch_labels: Union[str, Sequence[str], None] = None
19+
depends_on: Union[str, Sequence[str], None] = None
20+
21+
22+
def upgrade() -> None:
23+
# ### commands auto generated by Alembic - please adjust! ###
24+
op.add_column("jobs", sa.Column("callback_error", sa.String(), nullable=True))
25+
# ### end Alembic commands ###
26+
27+
28+
def downgrade() -> None:
29+
# ### commands auto generated by Alembic - please adjust! ###
30+
op.drop_column("jobs", "callback_error")
31+
# ### end Alembic commands ###
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"""add bedrock creds to byok
2+
3+
Revision ID: 9556081ce65b
4+
Revises: 90fd814d0cda
5+
Create Date: 2025-06-18 11:15:39.461916
6+
7+
"""
8+
9+
from typing import Sequence, Union
10+
11+
import sqlalchemy as sa
12+
13+
from alembic import op
14+
15+
# revision identifiers, used by Alembic.
16+
revision: str = "9556081ce65b"
17+
down_revision: Union[str, None] = "90fd814d0cda"
18+
branch_labels: Union[str, Sequence[str], None] = None
19+
depends_on: Union[str, Sequence[str], None] = None
20+
21+
22+
def upgrade() -> None:
23+
# ### commands auto generated by Alembic - please adjust! ###
24+
op.add_column("providers", sa.Column("access_key", sa.String(), nullable=True))
25+
op.add_column("providers", sa.Column("region", sa.String(), nullable=True))
26+
# ### end Alembic commands ###
27+
28+
29+
def downgrade() -> None:
30+
# ### commands auto generated by Alembic - please adjust! ###
31+
op.drop_column("providers", "region")
32+
op.drop_column("providers", "access_key")
33+
# ### end Alembic commands ###
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"""add_run_completion_and_duration_to_agents_table
2+
3+
Revision ID: 9758adf8fdd3
4+
Revises: 9556081ce65b
5+
Create Date: 2025-06-18 18:22:31.135685
6+
7+
"""
8+
9+
from typing import Sequence, Union
10+
11+
import sqlalchemy as sa
12+
13+
from alembic import op
14+
15+
# revision identifiers, used by Alembic.
16+
revision: str = "9758adf8fdd3"
17+
down_revision: Union[str, None] = "9556081ce65b"
18+
branch_labels: Union[str, Sequence[str], None] = None
19+
depends_on: Union[str, Sequence[str], None] = None
20+
21+
22+
def upgrade() -> None:
23+
# ### commands auto generated by Alembic - please adjust! ###
24+
op.add_column("agents", sa.Column("last_run_completion", sa.DateTime(timezone=True), nullable=True))
25+
op.add_column("agents", sa.Column("last_run_duration_ms", sa.Integer(), nullable=True))
26+
# ### end Alembic commands ###
27+
28+
29+
def downgrade() -> None:
30+
# ### commands auto generated by Alembic - please adjust! ###
31+
op.drop_column("agents", "last_run_duration_ms")
32+
op.drop_column("agents", "last_run_completion")
33+
# ### end Alembic commands ###

examples/docs/agent_advanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
model="openai/gpt-4o-mini",
3131
context_window_limit=8000,
3232
# embedding model & endpoint configuration (cannot be changed)
33-
embedding="openai/text-embedding-ada-002",
33+
embedding="openai/text-embedding-3-small",
3434
# system instructions for the agent (defaults to `memgpt_chat`)
3535
system=gpt_system.get_system_text("memgpt_chat"),
3636
# whether to include base letta tools (default: True)

examples/docs/agent_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
# set automatic defaults for LLM/embedding config
2121
model="openai/gpt-4o-mini",
22-
embedding="openai/text-embedding-ada-002",
22+
embedding="openai/text-embedding-3-small",
2323
)
2424
print(f"Created agent with name {agent_state.name} and unique ID {agent_state.id}")
2525

examples/docs/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
),
2323
],
2424
model="openai/gpt-4o-mini",
25-
embedding="openai/text-embedding-ada-002",
25+
embedding="openai/text-embedding-3-small",
2626
)
2727

2828
print(f"Created agent with name {agent.name}")
@@ -121,7 +121,7 @@ def secret_message():
121121

122122
agent_copy = client.agents.create(
123123
model="openai/gpt-4o-mini",
124-
embedding="openai/text-embedding-ada-002",
124+
embedding="openai/text-embedding-3-small",
125125
)
126126
block = client.agents.blocks.retrieve(agent.id, block_label="human")
127127
agent_copy = client.agents.blocks.attach(agent_copy.id, block.id)

examples/docs/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def roll_d20() -> str:
4646
],
4747
# set automatic defaults for LLM/embedding config
4848
model="openai/gpt-4o-mini",
49-
embedding="openai/text-embedding-ada-002",
49+
embedding="openai/text-embedding-3-small",
5050
# create the agent with an additional tool
5151
tool_ids=[tool.id],
5252
tool_rules=[
@@ -89,7 +89,7 @@ def roll_d20() -> str:
8989
),
9090
],
9191
model="openai/gpt-4o-mini",
92-
embedding="openai/text-embedding-ada-002",
92+
embedding="openai/text-embedding-3-small",
9393
include_base_tools=False,
9494
tool_ids=[tool.id, send_message_tool.id],
9595
)

examples/mcp_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
],
3939
model="openai/gpt-4o-mini",
40-
embedding="openai/text-embedding-ada-002",
40+
embedding="openai/text-embedding-3-small",
4141
tool_ids=[mcp_tool.id]
4242
)
4343
print(f"Created agent id {agent.id}")

examples/sleeptime/sleeptime_source_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
source = client.sources.create(
3131
name=source_name,
3232
description="Provides reference information for the employee handbook",
33-
embedding="openai/text-embedding-ada-002" # must match agent
33+
embedding="openai/text-embedding-3-small" # must match agent
3434
)
3535
# attach the source to the agent
3636
client.agents.sources.attach(

letta/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
__version__ = "0.8.4"
3+
__version__ = "0.8.5"
44

55
if os.environ.get("LETTA_VERSION"):
66
__version__ = os.environ["LETTA_VERSION"]

0 commit comments

Comments
 (0)