process-gpt-agent-sdk 0.4.2__py3-none-any.whl → 0.4.4__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.

Potentially problematic release.


This version of process-gpt-agent-sdk might be problematic. Click here for more details.

@@ -0,0 +1,30 @@
1
+ import logging
2
+ from a2a.server.agent_execution import AgentExecutor
3
+ from .database import initialize_db, fetch_todo_by_id
4
+ from .processgpt_agent_framework import ProcessGPTAgentServer
5
+
6
+
7
+ logger = logging.getLogger(__name__)
8
+
9
+
10
+
11
+ async def run_single_todo_readonly(agent_executor: AgentExecutor, agent_type: str, todo_id: str) -> None:
12
+ """테스트/검증용 단건 실행: 상태 변경 없이 id로만 조회하여 실행.
13
+
14
+ - 실서비스와 동일한 컨텍스트 준비 및 실행 파이프라인을 사용합니다.
15
+ - DB의 `todolist` 행은 어떤 필드도 업데이트하지 않습니다.
16
+ """
17
+ initialize_db()
18
+ row = await fetch_todo_by_id(todo_id)
19
+ if not row:
20
+ logger.warning("run_single_todo_readonly: 대상 없음 todo_id=%s", todo_id)
21
+ return
22
+
23
+ server = ProcessGPTAgentServer(agent_executor, agent_type)
24
+ try:
25
+ server._current_todo_id = str(row.get("id"))
26
+ await server.process_todolist_item(row)
27
+ finally:
28
+ server._current_todo_id = None
29
+
30
+
@@ -1,8 +0,0 @@
1
- processgpt_agent_sdk/__init__.py,sha256=bitsigMzPi-Tez0_FKyQJw81nETfXIeoQrSgLVCTOA4,1033
2
- processgpt_agent_sdk/database.py,sha256=IKDhAJbRtr2lkV1msLa9b7JS-dDD_FctCMKWeibqyYs,13520
3
- processgpt_agent_sdk/processgpt_agent_framework.py,sha256=i4-wdysrOyArdwS4VcirK4cwdojAnm_dHImrX2dIpXk,23469
4
- processgpt_agent_sdk/utils.py,sha256=pK7plUKGMIHo5lA0e4442qMAmAtCwKrbewjrXdVbFdE,9228
5
- process_gpt_agent_sdk-0.4.2.dist-info/METADATA,sha256=AGN80kcbtzR0wRkkLJ7uTr_DN63uXriNuVy5G0c7tcI,6840
6
- process_gpt_agent_sdk-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- process_gpt_agent_sdk-0.4.2.dist-info/top_level.txt,sha256=Xe6zrj3_3Vv7d0pl5RRtenVUckwOVBVLQn2P03j5REo,21
8
- process_gpt_agent_sdk-0.4.2.dist-info/RECORD,,