Skip to content

Commit b982b25

Browse files
address comments left by @creatorrr on #986 (feat(agents-api): Configure routes );
1 parent e1be81b commit b982b25

File tree

8 files changed

+3
-10
lines changed

8 files changed

+3
-10
lines changed

Diff for: agents-api/agents_api/activities/task_steps/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from .base_evaluate import base_evaluate
44

5-
# from .cozo_query_step import cozo_query_step
65
from .evaluate_step import evaluate_step
76
from .for_each_step import for_each_step
87
from .get_value_step import get_value_step

Diff for: agents-api/agents_api/env.py

-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949

5050
# Cozo
5151
# ----
52-
cozo_host: str = env.str("COZO_HOST", default="http://127.0.0.1:9070")
53-
cozo_auth: str = env.str("COZO_AUTH_TOKEN", default=None)
5452
summarization_model_name: str = env.str(
5553
"SUMMARIZATION_MODEL_NAME", default="gpt-4-turbo"
5654
)

Diff for: agents-api/agents_api/queries/executions/create_execution.py

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
rewrap_exceptions,
1515
wrap_in_class,
1616
)
17-
from .constants import OUTPUT_UNNEST_KEY
1817

1918
ModelT = TypeVar("ModelT", bound=Any)
2019
T = TypeVar("T")
@@ -33,7 +32,6 @@
3332
# transform=lambda d: {"id": d["execution_id"], **d},
3433
# _kind="inserted",
3534
# )
36-
# @cozo_query
3735
# @increase_counter("create_execution")
3836
# @beartype
3937
async def create_execution(

Diff for: agents-api/agents_api/queries/executions/get_execution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
pg_query,
1010
wrap_in_class,
1111
)
12-
from .constants import OUTPUT_UNNEST_KEY
1312

1413
ModelT = TypeVar("ModelT", bound=Any)
1514
T = TypeVar("T")
@@ -27,6 +26,7 @@
2726
# AssertionError: partialclass(HTTPException, status_code=404),
2827
# QueryException: partialclass(HTTPException, status_code=400),
2928
# ValidationError: partialclass(HTTPException, status_code=400),
29+
3030
# TypeError: partialclass(HTTPException, status_code=400),
3131
# }
3232
# )

Diff for: agents-api/agents_api/queries/executions/list_execution_transitions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from pydantic import ValidationError
88

99
from ...autogen.openapi_model import Transition
10+
1011
from ..utils import cozo_query, partialclass, rewrap_exceptions, wrap_in_class
1112

1213
ModelT = TypeVar("ModelT", bound=Any)
@@ -21,7 +22,6 @@
2122
}
2223
)
2324
@wrap_in_class(Transition)
24-
@cozo_query
2525
@beartype
2626
async def list_execution_transitions(
2727
*,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[the existing file is empty]

Diff for: agents-api/agents_api/queries/executions/prepare_execution_input.py

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
],
5454
},
5555
)
56-
@cozo_query
5756
@beartype
5857
async def prepare_execution_input(
5958
*,

Diff for: agents-api/agents_api/queries/executions/update_execution.py

-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
verify_developer_owns_resource_query,
2424
wrap_in_class,
2525
)
26-
from .constants import OUTPUT_UNNEST_KEY
2726

2827
ModelT = TypeVar("ModelT", bound=Any)
2928
T = TypeVar("T")
@@ -42,7 +41,6 @@
4241
transform=lambda d: {"id": d["execution_id"], **d},
4342
_kind="inserted",
4443
)
45-
@cozo_query
4644
@increase_counter("update_execution")
4745
@beartype
4846
async def update_execution(

0 commit comments

Comments
 (0)