Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update envstate #46

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions poetry.lock

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

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "taskara"
version = "0.1.152"
version = "0.1.153"
description = "Task management for AI agents"
authors = ["Patrick Barker <patrickbarkerco@gmail.com>"]
license = "MIT"
Expand All @@ -21,7 +21,7 @@ tabulate = {version = "^0.9.0", optional = true}
shortuuid = "^1.0.13"
tqdm = "^4.66.4"
cryptography = "^43.0.1"
skillpacks = "^0.1.60"
skillpacks = "^0.1.64"

[tool.poetry.group.dev.dependencies]
pytest = "^8.1.1"
Expand Down
1 change: 0 additions & 1 deletion taskara/db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
Column("task_id", String, ForeignKey("tasks.id"), primary_key=True),
)


# Association table for many-to-many between tasks and tags
task_tag_association = Table(
"task_tag_association",
Expand Down
6 changes: 3 additions & 3 deletions taskara/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
V1Action,
V1Episode,
V1ToolRef,
V1EnvState,
Review,
EnvState,
)
from threadmem import RoleMessage, RoleThread, V1RoleThreads
from threadmem.server.models import V1RoleMessage
Expand Down Expand Up @@ -700,11 +700,11 @@ def _get_episode(

def record_action(
self,
state: V1EnvState,
state: EnvState,
action: V1Action,
tool: V1ToolRef,
result: Optional[Any] = None,
end_state: Optional[V1EnvState] = None,
end_state: Optional[EnvState] = None,
prompt: Optional[Prompt | str] = None,
namespace: str = "default",
metadata: dict = {},
Expand Down
6 changes: 3 additions & 3 deletions tests/test_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from mllm import Prompt, RoleMessage, RoleThread
from namesgenerator import get_random_name
from openai import BaseModel
from skillpacks import ActionEvent, V1Action, V1EnvState
from skillpacks import ActionEvent, V1Action, V1EnvState, EnvState
from skillpacks.server.models import V1Episode, V1ActionEvents
from toolfuse.models import V1ToolRef

Expand Down Expand Up @@ -245,7 +245,7 @@ def test_process_tracker_runtime():

# Store an action event
action_event = ActionEvent(
state=V1EnvState(images=["https://test.img"]),
state=EnvState(images=["https://test.img"]),
action=V1Action(name="test", parameters={}),
tool=V1ToolRef(module="test", type="test"),
prompt=prompt,
Expand Down Expand Up @@ -294,7 +294,7 @@ class Expected(BaseModel):
print("created a new task: ", new_task.id)

action_event = ActionEvent(
state=V1EnvState(images=["https://test.img"]),
state=EnvState(images=["https://test.img"]),
action=V1Action(name="test", parameters={}),
tool=V1ToolRef(module="test", type="test"),
prompt=prompt,
Expand Down
Loading