10xscale-agentflow-cli 0.1.6__tar.gz → 0.1.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/10xscale_agentflow_cli.egg-info/PKG-INFO +11 -11
- 10xscale_agentflow_cli-0.1.7/10xscale_agentflow_cli.egg-info/requires.txt +27 -0
- 10xscale_agentflow_cli-0.1.7/10xscale_agentflow_cli.egg-info/top_level.txt +1 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/PKG-INFO +11 -11
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/graph/schemas/graph_schemas.py +0 -4
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/graph/services/graph_service.py +4 -41
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/pyproject.toml +12 -12
- 10xscale_agentflow_cli-0.1.6/10xscale_agentflow_cli.egg-info/requires.txt +0 -27
- 10xscale_agentflow_cli-0.1.6/10xscale_agentflow_cli.egg-info/top_level.txt +0 -1
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/10xscale_agentflow_cli.egg-info/SOURCES.txt +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/10xscale_agentflow_cli.egg-info/dependency_links.txt +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/10xscale_agentflow_cli.egg-info/entry_points.txt +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/10xscale_agentflow_cli.egg-info/not-zip-safe +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/MANIFEST.in +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/README.md +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/Task.md +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow.json +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/api.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/build.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/init.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/version.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/constants.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/core/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/core/config.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/core/output.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/core/validation.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/exceptions.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/logger.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/main.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/templates/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/templates/defaults.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/auth/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/auth/auth_backend.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/auth/base_auth.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/auth/jwt_auth.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/config/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/config/graph_config.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/config/sentry_config.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/config/settings.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/config/setup_logs.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/config/setup_middleware.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/config/worker_middleware.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/exceptions/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/exceptions/general_exception.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/exceptions/handle_errors.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/exceptions/resources_exceptions.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/exceptions/user_exception.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/loader.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/main.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/checkpointer/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/checkpointer/router.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/checkpointer/schemas/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/checkpointer/schemas/checkpointer_schemas.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/checkpointer/services/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/checkpointer/services/checkpointer_service.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/graph/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/graph/router.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/graph/schemas/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/graph/services/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/ping/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/ping/router.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/setup_router.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/store/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/store/router.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/store/schemas/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/store/schemas/store_schemas.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/store/services/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/routers/store/services/store_service.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/tasks/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/tasks/user_tasks.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/utils/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/utils/callable_helper.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/utils/parse_output.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/utils/response_helper.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/utils/schemas/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/utils/schemas/output_schemas.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/utils/schemas/user_schemas.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/utils/snowflake_id_generator.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/utils/swagger_helper.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/worker.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/graph/__init__.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/graph/react.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/scripts/generate_docs.py +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/setup.cfg +0 -0
- {10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/tests/test_utils_parse_and_callable.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: 10xscale-agentflow-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.7
|
|
4
4
|
Summary: CLI and API for 10xscale AgentFlow
|
|
5
5
|
Author-email: 10xscale <contact@10xscale.ai>
|
|
6
6
|
Maintainer-email: Shudipto Trafder <shudiptotrafder@gmail.com>
|
|
@@ -26,24 +26,24 @@ Requires-Python: >=3.10
|
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
Requires-Dist: 10xscale-agentflow>=0.4.0
|
|
28
28
|
Requires-Dist: fastapi
|
|
29
|
-
Requires-Dist: gunicorn
|
|
29
|
+
Requires-Dist: gunicorn==23.0.0
|
|
30
30
|
Requires-Dist: orjson
|
|
31
|
-
Requires-Dist: python-multipart
|
|
32
|
-
Requires-Dist: pydantic
|
|
33
|
-
Requires-Dist: pydantic-settings
|
|
34
|
-
Requires-Dist: uvicorn
|
|
31
|
+
Requires-Dist: python-multipart>=0.0.19
|
|
32
|
+
Requires-Dist: pydantic>=2.8.2
|
|
33
|
+
Requires-Dist: pydantic-settings>=2.3.4
|
|
34
|
+
Requires-Dist: uvicorn>=0.30.1
|
|
35
35
|
Requires-Dist: typer
|
|
36
36
|
Requires-Dist: python-dotenv
|
|
37
|
-
Requires-Dist: PyJWT
|
|
37
|
+
Requires-Dist: PyJWT>=2.8.0
|
|
38
38
|
Provides-Extra: sentry
|
|
39
|
-
Requires-Dist: sentry-sdk
|
|
39
|
+
Requires-Dist: sentry-sdk==2.10.0; extra == "sentry"
|
|
40
40
|
Provides-Extra: firebase
|
|
41
|
-
Requires-Dist: firebase-admin
|
|
42
|
-
Requires-Dist: oauth2client
|
|
41
|
+
Requires-Dist: firebase-admin==6.5.0; extra == "firebase"
|
|
42
|
+
Requires-Dist: oauth2client==4.1.3; extra == "firebase"
|
|
43
43
|
Provides-Extra: snowflakekit
|
|
44
44
|
Requires-Dist: snowflakekit; extra == "snowflakekit"
|
|
45
45
|
Provides-Extra: redis
|
|
46
|
-
Requires-Dist: redis
|
|
46
|
+
Requires-Dist: redis==5.0.7; extra == "redis"
|
|
47
47
|
Provides-Extra: gcloud
|
|
48
48
|
Requires-Dist: google-cloud-logging; extra == "gcloud"
|
|
49
49
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
10xscale-agentflow>=0.4.0
|
|
2
|
+
fastapi
|
|
3
|
+
gunicorn==23.0.0
|
|
4
|
+
orjson
|
|
5
|
+
python-multipart>=0.0.19
|
|
6
|
+
pydantic>=2.8.2
|
|
7
|
+
pydantic-settings>=2.3.4
|
|
8
|
+
uvicorn>=0.30.1
|
|
9
|
+
typer
|
|
10
|
+
python-dotenv
|
|
11
|
+
PyJWT>=2.8.0
|
|
12
|
+
|
|
13
|
+
[firebase]
|
|
14
|
+
firebase-admin==6.5.0
|
|
15
|
+
oauth2client==4.1.3
|
|
16
|
+
|
|
17
|
+
[gcloud]
|
|
18
|
+
google-cloud-logging
|
|
19
|
+
|
|
20
|
+
[redis]
|
|
21
|
+
redis==5.0.7
|
|
22
|
+
|
|
23
|
+
[sentry]
|
|
24
|
+
sentry-sdk==2.10.0
|
|
25
|
+
|
|
26
|
+
[snowflakekit]
|
|
27
|
+
snowflakekit
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
agentflow_cli
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: 10xscale-agentflow-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.7
|
|
4
4
|
Summary: CLI and API for 10xscale AgentFlow
|
|
5
5
|
Author-email: 10xscale <contact@10xscale.ai>
|
|
6
6
|
Maintainer-email: Shudipto Trafder <shudiptotrafder@gmail.com>
|
|
@@ -26,24 +26,24 @@ Requires-Python: >=3.10
|
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
Requires-Dist: 10xscale-agentflow>=0.4.0
|
|
28
28
|
Requires-Dist: fastapi
|
|
29
|
-
Requires-Dist: gunicorn
|
|
29
|
+
Requires-Dist: gunicorn==23.0.0
|
|
30
30
|
Requires-Dist: orjson
|
|
31
|
-
Requires-Dist: python-multipart
|
|
32
|
-
Requires-Dist: pydantic
|
|
33
|
-
Requires-Dist: pydantic-settings
|
|
34
|
-
Requires-Dist: uvicorn
|
|
31
|
+
Requires-Dist: python-multipart>=0.0.19
|
|
32
|
+
Requires-Dist: pydantic>=2.8.2
|
|
33
|
+
Requires-Dist: pydantic-settings>=2.3.4
|
|
34
|
+
Requires-Dist: uvicorn>=0.30.1
|
|
35
35
|
Requires-Dist: typer
|
|
36
36
|
Requires-Dist: python-dotenv
|
|
37
|
-
Requires-Dist: PyJWT
|
|
37
|
+
Requires-Dist: PyJWT>=2.8.0
|
|
38
38
|
Provides-Extra: sentry
|
|
39
|
-
Requires-Dist: sentry-sdk
|
|
39
|
+
Requires-Dist: sentry-sdk==2.10.0; extra == "sentry"
|
|
40
40
|
Provides-Extra: firebase
|
|
41
|
-
Requires-Dist: firebase-admin
|
|
42
|
-
Requires-Dist: oauth2client
|
|
41
|
+
Requires-Dist: firebase-admin==6.5.0; extra == "firebase"
|
|
42
|
+
Requires-Dist: oauth2client==4.1.3; extra == "firebase"
|
|
43
43
|
Provides-Extra: snowflakekit
|
|
44
44
|
Requires-Dist: snowflakekit; extra == "snowflakekit"
|
|
45
45
|
Provides-Extra: redis
|
|
46
|
-
Requires-Dist: redis
|
|
46
|
+
Requires-Dist: redis==5.0.7; extra == "redis"
|
|
47
47
|
Provides-Extra: gcloud
|
|
48
48
|
Requires-Dist: google-cloud-logging; extra == "gcloud"
|
|
49
49
|
|
|
@@ -37,10 +37,6 @@ class GraphInputSchema(BaseModel):
|
|
|
37
37
|
default=ResponseGranularity.LOW,
|
|
38
38
|
description="Granularity of the response (full, partial, low)",
|
|
39
39
|
)
|
|
40
|
-
include_raw: bool = Field(
|
|
41
|
-
default=False,
|
|
42
|
-
description="Whether to include raw data in the response",
|
|
43
|
-
)
|
|
44
40
|
|
|
45
41
|
|
|
46
42
|
class GraphInvokeOutputSchema(BaseModel):
|
|
@@ -5,7 +5,7 @@ from uuid import uuid4
|
|
|
5
5
|
|
|
6
6
|
from agentflow.checkpointer import BaseCheckpointer
|
|
7
7
|
from agentflow.graph import CompiledGraph
|
|
8
|
-
from agentflow.state import Message
|
|
8
|
+
from agentflow.state import AgentState, Message
|
|
9
9
|
from agentflow.utils.thread_info import ThreadInfo
|
|
10
10
|
from fastapi import BackgroundTasks, HTTPException
|
|
11
11
|
from injectq import InjectQ, inject, singleton
|
|
@@ -100,38 +100,6 @@ class GraphService:
|
|
|
100
100
|
|
|
101
101
|
return converted_messages
|
|
102
102
|
|
|
103
|
-
def _process_state_and_messages(
|
|
104
|
-
self, graph_input: GraphInputSchema, raw_state, messages: list[Message]
|
|
105
|
-
) -> tuple[dict[str, Any] | None, list[Message]]:
|
|
106
|
-
"""Process state and messages based on include_raw parameter."""
|
|
107
|
-
if graph_input.include_raw:
|
|
108
|
-
# Include everything when include_raw is True
|
|
109
|
-
state_dict = raw_state.model_dump() if raw_state is not None else raw_state
|
|
110
|
-
return state_dict, messages
|
|
111
|
-
|
|
112
|
-
# Filter out execution_meta from state and raw from messages
|
|
113
|
-
# when include_raw is False
|
|
114
|
-
if raw_state is not None:
|
|
115
|
-
state_dict = raw_state.model_dump()
|
|
116
|
-
# Remove execution_meta if present
|
|
117
|
-
if "execution_meta" in state_dict:
|
|
118
|
-
del state_dict["execution_meta"]
|
|
119
|
-
else:
|
|
120
|
-
state_dict = raw_state
|
|
121
|
-
|
|
122
|
-
# Filter raw data from messages
|
|
123
|
-
filtered_messages = []
|
|
124
|
-
for msg in messages:
|
|
125
|
-
msg_dict = msg.model_dump()
|
|
126
|
-
# Remove raw field if present
|
|
127
|
-
if "raw" in msg_dict:
|
|
128
|
-
del msg_dict["raw"]
|
|
129
|
-
# Create filtered message
|
|
130
|
-
filtered_msg = Message.model_validate(msg_dict)
|
|
131
|
-
filtered_messages.append(filtered_msg)
|
|
132
|
-
|
|
133
|
-
return state_dict, filtered_messages
|
|
134
|
-
|
|
135
103
|
def _extract_context_info(
|
|
136
104
|
self, raw_state, result: dict[str, Any]
|
|
137
105
|
) -> tuple[list[Message] | None, str | None]:
|
|
@@ -281,7 +249,7 @@ class GraphService:
|
|
|
281
249
|
|
|
282
250
|
# Extract messages and state from result
|
|
283
251
|
messages: list[Message] = result.get("messages", [])
|
|
284
|
-
raw_state = result.get("state", None)
|
|
252
|
+
raw_state: AgentState | None = result.get("state", None)
|
|
285
253
|
|
|
286
254
|
# Extract context information using helper method
|
|
287
255
|
context, context_summary = self._extract_context_info(raw_state, result)
|
|
@@ -296,14 +264,9 @@ class GraphService:
|
|
|
296
264
|
config["thread_id"],
|
|
297
265
|
)
|
|
298
266
|
|
|
299
|
-
# Process state and messages based on include_raw parameter
|
|
300
|
-
state_dict, processed_messages = self._process_state_and_messages(
|
|
301
|
-
graph_input, raw_state, messages
|
|
302
|
-
)
|
|
303
|
-
|
|
304
267
|
return GraphInvokeOutputSchema(
|
|
305
|
-
messages=
|
|
306
|
-
state=
|
|
268
|
+
messages=messages,
|
|
269
|
+
state=raw_state.model_dump() if raw_state else None,
|
|
307
270
|
context=context,
|
|
308
271
|
summary=context_summary,
|
|
309
272
|
meta=meta,
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "10xscale-agentflow-cli"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.7"
|
|
8
8
|
description = "CLI and API for 10xscale AgentFlow"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -39,15 +39,15 @@ classifiers = [
|
|
|
39
39
|
dependencies = [
|
|
40
40
|
"10xscale-agentflow>=0.4.0",
|
|
41
41
|
"fastapi",
|
|
42
|
-
"gunicorn",
|
|
42
|
+
"gunicorn==23.0.0",
|
|
43
43
|
"orjson",
|
|
44
|
-
"python-multipart",
|
|
45
|
-
"pydantic",
|
|
46
|
-
"pydantic-settings",
|
|
47
|
-
"uvicorn",
|
|
44
|
+
"python-multipart>=0.0.19",
|
|
45
|
+
"pydantic>=2.8.2",
|
|
46
|
+
"pydantic-settings>=2.3.4",
|
|
47
|
+
"uvicorn>=0.30.1",
|
|
48
48
|
"typer",
|
|
49
49
|
"python-dotenv",
|
|
50
|
-
"PyJWT",
|
|
50
|
+
"PyJWT>=2.8.0",
|
|
51
51
|
]
|
|
52
52
|
|
|
53
53
|
[project.urls]
|
|
@@ -58,17 +58,17 @@ Documentation = "https://agentflow-cli.readthedocs.io/"
|
|
|
58
58
|
|
|
59
59
|
[project.optional-dependencies]
|
|
60
60
|
sentry = [
|
|
61
|
-
"sentry-sdk
|
|
61
|
+
"sentry-sdk==2.10.0",
|
|
62
62
|
]
|
|
63
63
|
firebase = [
|
|
64
|
-
"firebase-admin
|
|
65
|
-
"oauth2client
|
|
64
|
+
"firebase-admin==6.5.0",
|
|
65
|
+
"oauth2client==4.1.3",
|
|
66
66
|
]
|
|
67
67
|
snowflakekit = [
|
|
68
68
|
"snowflakekit",
|
|
69
69
|
]
|
|
70
70
|
redis = [
|
|
71
|
-
"redis
|
|
71
|
+
"redis==5.0.7",
|
|
72
72
|
]
|
|
73
73
|
gcloud = [
|
|
74
74
|
"google-cloud-logging",
|
|
@@ -83,7 +83,7 @@ include-package-data = true
|
|
|
83
83
|
|
|
84
84
|
[tool.setuptools.packages.find]
|
|
85
85
|
where = ["."]
|
|
86
|
-
include = ["
|
|
86
|
+
include = ["agentflow_cli*"]
|
|
87
87
|
exclude = ["tests*", "docs*", "__pycache__*", "agentflow-cli/tests*"]
|
|
88
88
|
|
|
89
89
|
[tool.setuptools.package-data]
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
10xscale-agentflow>=0.4.0
|
|
2
|
-
fastapi
|
|
3
|
-
gunicorn
|
|
4
|
-
orjson
|
|
5
|
-
python-multipart
|
|
6
|
-
pydantic
|
|
7
|
-
pydantic-settings
|
|
8
|
-
uvicorn
|
|
9
|
-
typer
|
|
10
|
-
python-dotenv
|
|
11
|
-
PyJWT
|
|
12
|
-
|
|
13
|
-
[firebase]
|
|
14
|
-
firebase-admin>=6.5.0
|
|
15
|
-
oauth2client>=4.1.3
|
|
16
|
-
|
|
17
|
-
[gcloud]
|
|
18
|
-
google-cloud-logging
|
|
19
|
-
|
|
20
|
-
[redis]
|
|
21
|
-
redis>=5.0.7
|
|
22
|
-
|
|
23
|
-
[sentry]
|
|
24
|
-
sentry-sdk>=2.10.0
|
|
25
|
-
|
|
26
|
-
[snowflakekit]
|
|
27
|
-
snowflakekit
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/__init__.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/api.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/build.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/init.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/commands/version.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/constants.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/core/__init__.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/core/config.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/core/output.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/core/validation.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/cli/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/__init__.py
RENAMED
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/core/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/loader.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/agentflow_cli/src/app/worker.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{10xscale_agentflow_cli-0.1.6 → 10xscale_agentflow_cli-0.1.7}/tests/test_utils_parse_and_callable.py
RENAMED
|
File without changes
|