process-gpt-agent-sdk 0.2.6__py3-none-any.whl → 0.2.8__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.
- {process_gpt_agent_sdk-0.2.6.dist-info → process_gpt_agent_sdk-0.2.8.dist-info}/METADATA +1 -1
- {process_gpt_agent_sdk-0.2.6.dist-info → process_gpt_agent_sdk-0.2.8.dist-info}/RECORD +5 -5
- processgpt_agent_sdk/core/database.py +20 -7
- {process_gpt_agent_sdk-0.2.6.dist-info → process_gpt_agent_sdk-0.2.8.dist-info}/WHEEL +0 -0
- {process_gpt_agent_sdk-0.2.6.dist-info → process_gpt_agent_sdk-0.2.8.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
processgpt_agent_sdk/__init__.py,sha256=IvAL5WBZhI83LYQogRP6-i04bxZkhmkgmES4FRQY888,185
|
|
2
2
|
processgpt_agent_sdk/server.py,sha256=4_uifUFuZCGy1HEBpVAilhjlti25iQ0bjbmeFVrFakU,11366
|
|
3
3
|
processgpt_agent_sdk/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
processgpt_agent_sdk/core/database.py,sha256=
|
|
4
|
+
processgpt_agent_sdk/core/database.py,sha256=GSnu6Jbi98_zWNcrQiia4nJJm5ezZY6yzwuDco6aC8s,16377
|
|
5
5
|
processgpt_agent_sdk/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
processgpt_agent_sdk/tools/human_query_tool.py,sha256=I4Q5AS5YRem0pkIz5_bhMnS5NGlGhKky4_HE22UOdmE,10871
|
|
7
7
|
processgpt_agent_sdk/tools/knowledge_tools.py,sha256=AOtxvLypu343877ZzzELGq3At-E_2NiAqEw0Njlephg,8937
|
|
@@ -12,7 +12,7 @@ processgpt_agent_sdk/utils/crewai_event_listener.py,sha256=MwIMtRjw7L1uV8QRvlNV1
|
|
|
12
12
|
processgpt_agent_sdk/utils/event_handler.py,sha256=meyxMaiGH7VvKQJRhlHKRbWhSzxyEzoHGAEGVIxNocA,2879
|
|
13
13
|
processgpt_agent_sdk/utils/logger.py,sha256=d6Chvwx6qLAyirXRFg4bARzEovo1UYaRgLTaknHad9E,1271
|
|
14
14
|
processgpt_agent_sdk/utils/summarizer.py,sha256=h2OBfVYq1JB0A2rLqSdYObEDlN54DzsHTmqnStis4XI,5743
|
|
15
|
-
process_gpt_agent_sdk-0.2.
|
|
16
|
-
process_gpt_agent_sdk-0.2.
|
|
17
|
-
process_gpt_agent_sdk-0.2.
|
|
18
|
-
process_gpt_agent_sdk-0.2.
|
|
15
|
+
process_gpt_agent_sdk-0.2.8.dist-info/METADATA,sha256=EZ4UXuCohyrc6RmG_Y3buhUknUTNhIQ8iPKS1FAHc2Y,12898
|
|
16
|
+
process_gpt_agent_sdk-0.2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
process_gpt_agent_sdk-0.2.8.dist-info/top_level.txt,sha256=Xe6zrj3_3Vv7d0pl5RRtenVUckwOVBVLQn2P03j5REo,21
|
|
18
|
+
process_gpt_agent_sdk-0.2.8.dist-info/RECORD,,
|
|
@@ -103,16 +103,29 @@ def get_consumer_id() -> str:
|
|
|
103
103
|
async def polling_pending_todos(agent_orch: str, consumer: str) -> Optional[Dict[str, Any]]:
|
|
104
104
|
"""TODOLIST 테이블에서 대기중인 워크아이템을 조회"""
|
|
105
105
|
def _call():
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
supabase = get_db_client()
|
|
107
|
+
env = (os.getenv("ENV") or "").lower()
|
|
108
|
+
|
|
109
|
+
if env == "dev":
|
|
110
|
+
# 개발 환경: 특정 테넌트(uengine)만 폴링
|
|
111
|
+
resp = supabase.rpc(
|
|
112
|
+
"fetch_pending_task_dev",
|
|
113
|
+
{"p_agent_orch": agent_orch, "p_limit": 1, "p_consumer": consumer, "p_tenant_id": "uengine"},
|
|
114
|
+
).execute()
|
|
115
|
+
else:
|
|
116
|
+
# 운영/기타 환경: 기존 로직 유지
|
|
117
|
+
resp = supabase.rpc(
|
|
118
|
+
"fetch_pending_task",
|
|
119
|
+
{"p_agent_orch": agent_orch, "p_limit": 1, "p_consumer": consumer},
|
|
120
|
+
).execute()
|
|
121
|
+
|
|
122
|
+
rows = resp.data or []
|
|
123
|
+
return rows[0] if rows else None
|
|
111
124
|
|
|
112
125
|
resp = await _async_retry(_call, name="polling_pending_todos", fallback=lambda: None)
|
|
113
|
-
if not resp
|
|
126
|
+
if not resp:
|
|
114
127
|
return None
|
|
115
|
-
return resp
|
|
128
|
+
return resp
|
|
116
129
|
|
|
117
130
|
|
|
118
131
|
async def fetch_todo_by_id(todo_id: str) -> Optional[Dict[str, Any]]:
|
|
File without changes
|
{process_gpt_agent_sdk-0.2.6.dist-info → process_gpt_agent_sdk-0.2.8.dist-info}/top_level.txt
RENAMED
|
File without changes
|