agentex-sdk 0.2.10__py3-none-any.whl → 0.3.0__py3-none-any.whl
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.
- agentex/_version.py +1 -1
- agentex/lib/cli/handlers/run_handlers.py +5 -5
- agentex/lib/environment_variables.py +1 -1
- agentex/types/__init__.py +2 -0
- agentex/types/reasoning_content.py +33 -0
- agentex/types/reasoning_content_param.py +34 -0
- agentex/types/task_message_content.py +3 -1
- agentex/types/task_message_content_param.py +2 -1
- {agentex_sdk-0.2.10.dist-info → agentex_sdk-0.3.0.dist-info}/METADATA +1 -1
- {agentex_sdk-0.2.10.dist-info → agentex_sdk-0.3.0.dist-info}/RECORD +13 -11
- {agentex_sdk-0.2.10.dist-info → agentex_sdk-0.3.0.dist-info}/WHEEL +0 -0
- {agentex_sdk-0.2.10.dist-info → agentex_sdk-0.3.0.dist-info}/entry_points.txt +0 -0
- {agentex_sdk-0.2.10.dist-info → agentex_sdk-0.3.0.dist-info}/licenses/LICENSE +0 -0
agentex/_version.py
CHANGED
@@ -86,7 +86,7 @@ class ProcessManager:
|
|
86
86
|
|
87
87
|
|
88
88
|
async def start_temporal_worker_with_reload(
|
89
|
-
worker_path: Path, env: dict[str, str], process_manager: ProcessManager
|
89
|
+
worker_path: Path, env: dict[str, str], process_manager: ProcessManager, manifest_dir: Path
|
90
90
|
) -> asyncio.Task[None]:
|
91
91
|
"""Start temporal worker with auto-reload using watchfiles"""
|
92
92
|
|
@@ -143,7 +143,7 @@ async def start_temporal_worker_with_reload(
|
|
143
143
|
except asyncio.CancelledError:
|
144
144
|
pass
|
145
145
|
|
146
|
-
current_process = await start_temporal_worker(worker_path, env)
|
146
|
+
current_process = await start_temporal_worker(worker_path, env, manifest_dir)
|
147
147
|
process_manager.add_process(current_process)
|
148
148
|
console.print("[green]Temporal worker started[/green]")
|
149
149
|
return current_process
|
@@ -222,7 +222,7 @@ async def start_acp_server(
|
|
222
222
|
|
223
223
|
|
224
224
|
async def start_temporal_worker(
|
225
|
-
worker_path: Path, env: dict[str, str]
|
225
|
+
worker_path: Path, env: dict[str, str], manifest_dir: Path
|
226
226
|
) -> asyncio.subprocess.Process:
|
227
227
|
"""Start the temporal worker process"""
|
228
228
|
cmd = [sys.executable, "-m", "run_worker"]
|
@@ -231,7 +231,7 @@ async def start_temporal_worker(
|
|
231
231
|
|
232
232
|
return await asyncio.create_subprocess_exec(
|
233
233
|
*cmd,
|
234
|
-
cwd=
|
234
|
+
cwd=manifest_dir, # Use worker directory as CWD for imports to work
|
235
235
|
env=env,
|
236
236
|
stdout=asyncio.subprocess.PIPE,
|
237
237
|
stderr=asyncio.subprocess.STDOUT,
|
@@ -320,7 +320,7 @@ async def run_agent(manifest_path: str, debug_config: "DebugConfig | None" = Non
|
|
320
320
|
worker_task = asyncio.create_task(stream_process_output(worker_process, "WORKER"))
|
321
321
|
else:
|
322
322
|
# Normal mode with auto-reload
|
323
|
-
worker_task = await start_temporal_worker_with_reload(file_paths["worker"], agent_env, process_manager)
|
323
|
+
worker_task = await start_temporal_worker_with_reload(file_paths["worker"], agent_env, process_manager, manifest_dir)
|
324
324
|
tasks.append(worker_task)
|
325
325
|
|
326
326
|
console.print(
|
@@ -64,7 +64,7 @@ class EnvironmentVariables(BaseModel):
|
|
64
64
|
AUTH_PRINCIPAL_B64: str | None = None
|
65
65
|
|
66
66
|
@classmethod
|
67
|
-
def refresh(cls) -> EnvironmentVariables
|
67
|
+
def refresh(cls) -> EnvironmentVariables:
|
68
68
|
global refreshed_environment_variables
|
69
69
|
if refreshed_environment_variables is not None:
|
70
70
|
return refreshed_environment_variables
|
agentex/types/__init__.py
CHANGED
@@ -22,6 +22,7 @@ from .span_list_params import SpanListParams as SpanListParams
|
|
22
22
|
from .task_list_params import TaskListParams as TaskListParams
|
23
23
|
from .agent_list_params import AgentListParams as AgentListParams
|
24
24
|
from .event_list_params import EventListParams as EventListParams
|
25
|
+
from .reasoning_content import ReasoningContent as ReasoningContent
|
25
26
|
from .state_list_params import StateListParams as StateListParams
|
26
27
|
from .agent_rpc_response import AgentRpcResponse as AgentRpcResponse
|
27
28
|
from .agent_task_tracker import AgentTaskTracker as AgentTaskTracker
|
@@ -50,6 +51,7 @@ from .message_update_params import MessageUpdateParams as MessageUpdateParams
|
|
50
51
|
from .tool_response_content import ToolResponseContent as ToolResponseContent
|
51
52
|
from .tracker_list_response import TrackerListResponse as TrackerListResponse
|
52
53
|
from .tracker_update_params import TrackerUpdateParams as TrackerUpdateParams
|
54
|
+
from .reasoning_content_param import ReasoningContentParam as ReasoningContentParam
|
53
55
|
from .agent_rpc_by_name_params import AgentRpcByNameParams as AgentRpcByNameParams
|
54
56
|
from .task_message_content_param import TaskMessageContentParam as TaskMessageContentParam
|
55
57
|
from .tool_request_content_param import ToolRequestContentParam as ToolRequestContentParam
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from typing import List, Optional
|
4
|
+
from typing_extensions import Literal
|
5
|
+
|
6
|
+
from .._models import BaseModel
|
7
|
+
from .message_style import MessageStyle
|
8
|
+
from .message_author import MessageAuthor
|
9
|
+
|
10
|
+
__all__ = ["ReasoningContent"]
|
11
|
+
|
12
|
+
|
13
|
+
class ReasoningContent(BaseModel):
|
14
|
+
author: MessageAuthor
|
15
|
+
"""
|
16
|
+
The role of the messages author, in this case `system`, `user`, `assistant`, or
|
17
|
+
`tool`.
|
18
|
+
"""
|
19
|
+
|
20
|
+
summary: List[str]
|
21
|
+
"""A list of short reasoning summaries"""
|
22
|
+
|
23
|
+
content: Optional[List[str]] = None
|
24
|
+
"""The reasoning content or chain-of-thought text"""
|
25
|
+
|
26
|
+
style: Optional[MessageStyle] = None
|
27
|
+
"""The style of the message.
|
28
|
+
|
29
|
+
This is used by the client to determine how to display the message.
|
30
|
+
"""
|
31
|
+
|
32
|
+
type: Optional[Literal["reasoning"]] = None
|
33
|
+
"""The type of the message, in this case `reasoning`."""
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
|
5
|
+
from typing import List, Optional
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
7
|
+
|
8
|
+
from .message_style import MessageStyle
|
9
|
+
from .message_author import MessageAuthor
|
10
|
+
|
11
|
+
__all__ = ["ReasoningContentParam"]
|
12
|
+
|
13
|
+
|
14
|
+
class ReasoningContentParam(TypedDict, total=False):
|
15
|
+
author: Required[MessageAuthor]
|
16
|
+
"""
|
17
|
+
The role of the messages author, in this case `system`, `user`, `assistant`, or
|
18
|
+
`tool`.
|
19
|
+
"""
|
20
|
+
|
21
|
+
summary: Required[List[str]]
|
22
|
+
"""A list of short reasoning summaries"""
|
23
|
+
|
24
|
+
content: Optional[List[str]]
|
25
|
+
"""The reasoning content or chain-of-thought text"""
|
26
|
+
|
27
|
+
style: MessageStyle
|
28
|
+
"""The style of the message.
|
29
|
+
|
30
|
+
This is used by the client to determine how to display the message.
|
31
|
+
"""
|
32
|
+
|
33
|
+
type: Literal["reasoning"]
|
34
|
+
"""The type of the message, in this case `reasoning`."""
|
@@ -6,11 +6,13 @@ from typing_extensions import Annotated, TypeAlias
|
|
6
6
|
from .._utils import PropertyInfo
|
7
7
|
from .data_content import DataContent
|
8
8
|
from .text_content import TextContent
|
9
|
+
from .reasoning_content import ReasoningContent
|
9
10
|
from .tool_request_content import ToolRequestContent
|
10
11
|
from .tool_response_content import ToolResponseContent
|
11
12
|
|
12
13
|
__all__ = ["TaskMessageContent"]
|
13
14
|
|
14
15
|
TaskMessageContent: TypeAlias = Annotated[
|
15
|
-
Union[TextContent, DataContent, ToolRequestContent, ToolResponseContent],
|
16
|
+
Union[TextContent, ReasoningContent, DataContent, ToolRequestContent, ToolResponseContent],
|
17
|
+
PropertyInfo(discriminator="type"),
|
16
18
|
]
|
@@ -7,11 +7,12 @@ from typing_extensions import TypeAlias
|
|
7
7
|
|
8
8
|
from .data_content_param import DataContentParam
|
9
9
|
from .text_content_param import TextContentParam
|
10
|
+
from .reasoning_content_param import ReasoningContentParam
|
10
11
|
from .tool_request_content_param import ToolRequestContentParam
|
11
12
|
from .tool_response_content_param import ToolResponseContentParam
|
12
13
|
|
13
14
|
__all__ = ["TaskMessageContentParam"]
|
14
15
|
|
15
16
|
TaskMessageContentParam: TypeAlias = Union[
|
16
|
-
TextContentParam, DataContentParam, ToolRequestContentParam, ToolResponseContentParam
|
17
|
+
TextContentParam, ReasoningContentParam, DataContentParam, ToolRequestContentParam, ToolResponseContentParam
|
17
18
|
]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: agentex-sdk
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.3.0
|
4
4
|
Summary: The official Python library for the agentex API
|
5
5
|
Project-URL: Homepage, https://github.com/scaleapi/agentex-python
|
6
6
|
Project-URL: Repository, https://github.com/scaleapi/agentex-python
|
@@ -11,7 +11,7 @@ agentex/_resource.py,sha256=S1t7wmR5WUvoDIhZjo_x-E7uoTJBynJ3d8tPJMQYdjw,1106
|
|
11
11
|
agentex/_response.py,sha256=Tb9zazsnemO2rTxWtBjAD5WBqlhli5ZaXGbiKgdu5DE,28794
|
12
12
|
agentex/_streaming.py,sha256=FNGJExRCF-vTRUZHFKUfoAWFhDGOB3XbioVCF37Jr7E,10104
|
13
13
|
agentex/_types.py,sha256=KyKYySGIfHPod2hho1fPxssk5NuVn8C4MeMTtA-lg80,6198
|
14
|
-
agentex/_version.py,sha256=
|
14
|
+
agentex/_version.py,sha256=dqwMLdLjUtSWnQJ3iaGVlj64-uDW5tpyxJToQihPMIc,159
|
15
15
|
agentex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
agentex/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
agentex/_utils/_logs.py,sha256=LUjFPc3fweSChBUmjhQD8uYmwQAmFMNDuVFKfjYBQfM,777
|
@@ -25,7 +25,7 @@ agentex/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,460
|
|
25
25
|
agentex/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
|
26
26
|
agentex/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
27
27
|
agentex/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
|
-
agentex/lib/environment_variables.py,sha256=
|
28
|
+
agentex/lib/environment_variables.py,sha256=PFGIDIa0RdkkJVr3pxqh2QHrNRPBwGsf-ulNgAwrbtM,3241
|
29
29
|
agentex/lib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
30
|
agentex/lib/adk/__init__.py,sha256=-PpVfEvYr_HD7TnxUWU8RCW2OnxfwpPxTW97dKTnqvI,1082
|
31
31
|
agentex/lib/adk/_modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -62,7 +62,7 @@ agentex/lib/cli/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
62
62
|
agentex/lib/cli/handlers/agent_handlers.py,sha256=iVZ-4TSQJuq7XpPBYjYIN76M33XwxDjQTuNwTzzynec,5573
|
63
63
|
agentex/lib/cli/handlers/cleanup_handlers.py,sha256=V1V0zeErOUGTgCQqjyUl6CWtzGjFW878uzFaLOQJEyQ,7073
|
64
64
|
agentex/lib/cli/handlers/deploy_handlers.py,sha256=SrHHY8p0TGS0KzaCY3FPgf3awXqoMo2G-qpIOcnO1pw,16942
|
65
|
-
agentex/lib/cli/handlers/run_handlers.py,sha256=
|
65
|
+
agentex/lib/cli/handlers/run_handlers.py,sha256=y7-89pWVsG7SCBk4YfxoD93Vk-nfwCs6kIVJ8pMkEI0,15011
|
66
66
|
agentex/lib/cli/handlers/secret_handlers.py,sha256=VfAdAQovW9tG36Xgk_gGIGwTyFMxR3P6xc7fmAviNA8,24719
|
67
67
|
agentex/lib/cli/templates/default/.dockerignore.j2,sha256=hweGFxw5eDZYsb5EnRHpv27o9M1HF2PEWOxqsfBBcAE,320
|
68
68
|
agentex/lib/cli/templates/default/Dockerfile-uv.j2,sha256=I527RB_2Byn6tkBNVxxCq7ivVFJDgDNRSC7Vz2w9u4k,1060
|
@@ -237,7 +237,7 @@ agentex/resources/tracker.py,sha256=YxSeiloMwIqrS9nY7SlHclauRA7142qrKw34xgwqYbA,
|
|
237
237
|
agentex/resources/messages/__init__.py,sha256=_J1eusFtr_k6zrAntJSuqx6LWEUBSTrV1OZZh7MaDPE,1015
|
238
238
|
agentex/resources/messages/batch.py,sha256=pegCmnjK_J0jek5ChX1pKpq5RmCucTYLbK69H6qGVS4,9629
|
239
239
|
agentex/resources/messages/messages.py,sha256=fuFmmGNOjRJVzmYHcfP2trg0yii0n9MPPCpt7F8fDs4,17930
|
240
|
-
agentex/types/__init__.py,sha256=
|
240
|
+
agentex/types/__init__.py,sha256=qll_xWdoF455M3M1MKOomA3IxIjcRbikO8vrom0FF5A,3666
|
241
241
|
agentex/types/acp_type.py,sha256=Fj-4SzmM6m95ck_ZXtNbcWggHiD9F49bxBLPbl1fxe4,208
|
242
242
|
agentex/types/agent.py,sha256=t6CUsKSaK6Gs_X9g0YxSi5G3Hh21FrGVGnAD6MytVBk,981
|
243
243
|
agentex/types/agent_list_params.py,sha256=81IWnRZ2rLfHH7GB6VkXShYjb44DO0guG1znJcV3tuI,316
|
@@ -259,6 +259,8 @@ agentex/types/message_list_params.py,sha256=MGXLwUUBaaiG-rsGjui5dlJ0sxv1twkSugFo
|
|
259
259
|
agentex/types/message_list_response.py,sha256=YYDf-57zLS-E1eX3EZxz7c6XCuBcRBws01_q2G7uk4Y,277
|
260
260
|
agentex/types/message_style.py,sha256=nuoXzoDyP3KAQsQeKHaiby1EMxeY-8TJjWr8eMMpQEE,219
|
261
261
|
agentex/types/message_update_params.py,sha256=_KpnJ56FNeoIcwodQmAgsweqH1YAeIgYVT2jo9ahUhY,502
|
262
|
+
agentex/types/reasoning_content.py,sha256=ieA_EmFlHHo5suNnY6_7Qq3u34h8ehZ0E-vhp32Am1o,915
|
263
|
+
agentex/types/reasoning_content_param.py,sha256=qpuwnaQK-ofl8OtvwxpSSiHCwL7nIY0knX10EgGl0W4,942
|
262
264
|
agentex/types/span.py,sha256=OfNLddf5qjwv52ZrxLmgbXDDkBBovMeG7ovc4sRJReg,1045
|
263
265
|
agentex/types/span_create_params.py,sha256=o-M8rzB_6yoLrn3gQJ9Ecc6ZrsKp7uVyILam_wsGrgc,1392
|
264
266
|
agentex/types/span_list_params.py,sha256=b7gnqK17rE-UK7bUBSR9xsskI_jgmvGw9SuTsIIna9s,297
|
@@ -273,8 +275,8 @@ agentex/types/task.py,sha256=Pgj5HSrThPJgFRKWXPgW3LRT9Jwgn9eR_CCnlbNznzU,543
|
|
273
275
|
agentex/types/task_list_params.py,sha256=euvsWpK2kjJOfvrkUnSFiofZlU2sZHd2mar3qYtAA8I,328
|
274
276
|
agentex/types/task_list_response.py,sha256=8Q-RIanLmUC9vOuDXoW5gjpZeE-HR6IrBugG7-cUAZQ,249
|
275
277
|
agentex/types/task_message.py,sha256=hoLAkiQJd1Fl7EjLof-vZq6zVnDw9SKmnV6V74Po58A,918
|
276
|
-
agentex/types/task_message_content.py,sha256=
|
277
|
-
agentex/types/task_message_content_param.py,sha256=
|
278
|
+
agentex/types/task_message_content.py,sha256=3itFPfk9V3AHggZFpHKHkkzostFpyZ8O4vMnwZjXLis,646
|
279
|
+
agentex/types/task_message_content_param.py,sha256=IZxdUJWkUynteRQa-y743fCyum54IR6nqr0uybfUTO4,675
|
278
280
|
agentex/types/task_message_delta.py,sha256=nXNA0s38eBzue7PT_kU2Zp64CoVfxxMKAtLFxPPhEsg,547
|
279
281
|
agentex/types/task_message_update.py,sha256=gevnU4UW67qTzN_OGT-S3E5zbS9KQNehJZF3XhiirtU,2247
|
280
282
|
agentex/types/text_content.py,sha256=i6ksdQXIyWosXAm-O_26m_eZA-4x26dgoNdzWnhue9k,1347
|
@@ -296,8 +298,8 @@ agentex/types/messages/batch_update_params.py,sha256=Ug5CThbD49a8j4qucg04OdmVrp_
|
|
296
298
|
agentex/types/messages/batch_update_response.py,sha256=TbSBe6SuPzjXXWSj-nRjT1JHGBooTshHQQDa1AixQA8,278
|
297
299
|
agentex/types/shared/__init__.py,sha256=IKs-Qn5Yja0kFh1G1kDqYZo43qrOu1hSoxlPdN-85dI,149
|
298
300
|
agentex/types/shared/delete_response.py,sha256=8qH3zvQXaOHYQSHyXi7UQxdR4miTzR7V9K4zXVsiUyk,215
|
299
|
-
agentex_sdk-0.
|
300
|
-
agentex_sdk-0.
|
301
|
-
agentex_sdk-0.
|
302
|
-
agentex_sdk-0.
|
303
|
-
agentex_sdk-0.
|
301
|
+
agentex_sdk-0.3.0.dist-info/METADATA,sha256=rV595YQu--tZa9w-tUG7bF85GTmnZp_470AAd4mUNjM,15037
|
302
|
+
agentex_sdk-0.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
303
|
+
agentex_sdk-0.3.0.dist-info/entry_points.txt,sha256=V7vJuMZdF0UlvgX6KiBN7XUvq_cxF5kplcYvc1QlFaQ,62
|
304
|
+
agentex_sdk-0.3.0.dist-info/licenses/LICENSE,sha256=Q1AOx2FtRcMlyMgQJ9eVN2WKPq2mQ33lnB4tvWxabLA,11337
|
305
|
+
agentex_sdk-0.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|