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

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: process-gpt-agent-sdk
3
- Version: 0.3.19
3
+ Version: 0.3.20
4
4
  Summary: Supabase 기반 이벤트/작업 폴링으로 A2A AgentExecutor를 실행하는 SDK
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/your-org/process-gpt-agent-sdk
@@ -0,0 +1,8 @@
1
+ processgpt_agent_sdk/__init__.py,sha256=4-Wt-FRImZa1tG4CWx2ZtICcnTkKoAiqAfva9vLitLQ,991
2
+ processgpt_agent_sdk/database.py,sha256=4oQxJ3y28pPdUpvcQ80DEcFmcvKH37RszhSSZKf6tJU,12690
3
+ processgpt_agent_sdk/processgpt_agent_framework.py,sha256=PPAmWX1IV2SXTvLrkFXHgpuNw0xvKJP5vbXzW4GFx0Y,22940
4
+ processgpt_agent_sdk/utils.py,sha256=XNL-PId5xflUiTF3HQ3lOF264e4y85MXZJOfPix32Iw,8429
5
+ process_gpt_agent_sdk-0.3.20.dist-info/METADATA,sha256=hiif_fASGX7GRlU81ei1hL4M5PFbVqXUp5vx04IrGfI,21981
6
+ process_gpt_agent_sdk-0.3.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ process_gpt_agent_sdk-0.3.20.dist-info/top_level.txt,sha256=Xe6zrj3_3Vv7d0pl5RRtenVUckwOVBVLQn2P03j5REo,21
8
+ process_gpt_agent_sdk-0.3.20.dist-info/RECORD,,
@@ -125,7 +125,6 @@ class ProcessGPTRequestContext(RequestContext):
125
125
  agents, users = users_group
126
126
 
127
127
  logger.info("\n\n🔍 [데이터베이스 조회 결과]")
128
- logger.info("-" * 60)
129
128
 
130
129
  # Users 정보
131
130
  if users:
@@ -141,11 +140,10 @@ class ProcessGPTRequestContext(RequestContext):
141
140
  # Agents 정보
142
141
  if agents:
143
142
  agent_info = []
144
- for a in agents[:5]:
143
+ for a in agents:
145
144
  name = a.get("name", a.get("agent_name", "Unknown"))
146
- tools = a.get("tools", [])
147
- tool_names = [t.get("name", str(t)) for t in tools[:3]] if tools else []
148
- tool_str = f"[{', '.join(tool_names)}]" if tool_names else ""
145
+ tools = a.get("tools", "")
146
+ tool_str = f"[{tools}]" if tools else ""
149
147
  agent_info.append(f"{name}{tool_str}")
150
148
  logger.info("• Agents (%d개): %s%s", len(agents), ", ".join(agent_info), "..." if len(agents) > 5 else "")
151
149
  else:
@@ -178,7 +176,6 @@ class ProcessGPTRequestContext(RequestContext):
178
176
  summarized_feedback = ""
179
177
  if feedback_data:
180
178
  logger.info("\n\n📝 [피드백 처리]")
181
- logger.info("-" * 60)
182
179
  logger.info("• %d자 → AI 요약 중...", len(feedback_data))
183
180
  summarized_feedback = await summarize_feedback(feedback_data, content_data)
184
181
  logger.info("• 요약 완료: %d자", len(summarized_feedback))
@@ -200,7 +197,6 @@ class ProcessGPTRequestContext(RequestContext):
200
197
  }
201
198
 
202
199
  logger.info("\n\n🎉 [컨텍스트 준비 완료] 모든 데이터 준비됨")
203
- logger.info("-"*60)
204
200
 
205
201
  except Exception as e:
206
202
  logger.error("❌ [데이터 조회 실패] %s", str(e))
@@ -240,7 +236,7 @@ class ProcessGPTEventQueue(EventQueue):
240
236
  try:
241
237
  proc_inst_id_val = getattr(event, "contextId", None) or self.proc_inst_id
242
238
  todo_id_val = getattr(event, "taskId", None) or str(self.todolist_id)
243
- logger.info("\n📨 이벤트 수신: %s (task=%s)", type(event).__name__, self.todolist_id)
239
+ logger.info("\n\n📨 이벤트 수신: %s (task=%s)", type(event).__name__, self.todolist_id)
244
240
 
245
241
  # 1) 결과물 저장
246
242
  if isinstance(event, TaskArtifactUpdateEvent):
@@ -391,18 +387,14 @@ class ProcessGPTAgentServer:
391
387
 
392
388
  while self.is_running and not self._shutdown_event.is_set():
393
389
  try:
394
- logger.info("\n\n" + "-"*80)
395
390
  logger.info("🔍 [폴링 시작] 작업 대기 중... (agent_orch=%s)", self.agent_orch)
396
- logger.info("-"*80)
397
391
 
398
392
  row = await polling_pending_todos(self.agent_orch, get_consumer_id())
399
393
 
400
394
  if row:
401
- logger.info("\n\n" + "-"*80)
402
395
  logger.info("✅ [새 작업 발견] Task ID: %s", row.get("id"))
403
396
  logger.info("• Activity: %s | Tool: %s | Tenant: %s",
404
397
  row.get("activity_name"), row.get("tool"), row.get("tenant_id"))
405
- logger.info("-"*80)
406
398
  try:
407
399
  self._current_todo_id = str(row.get("id"))
408
400
  await self.process_todolist_item(row)
@@ -453,12 +445,10 @@ class ProcessGPTAgentServer:
453
445
 
454
446
  # 2) 실행
455
447
  logger.info("\n\n🤖 [Agent Orchestrator 실행]")
456
- logger.info("-" * 60)
457
448
  event_queue = ProcessGPTEventQueue(str(task_id), self.agent_orch, row.get("proc_inst_id"))
458
449
  await self.agent_executor.execute(context, event_queue)
459
450
  event_queue.task_done()
460
- logger.info("\n🎉 [Agent Orchestrator 완료] Task ID: %s", task_id)
461
- logger.info("-"*60)
451
+ logger.info("\n\n🎉 [Agent Orchestrator 완료] Task ID: %s", task_id)
462
452
 
463
453
  except Exception as e:
464
454
  logger.error("❌ 작업 처리 중 오류 발생: %s", str(e))
@@ -1,8 +0,0 @@
1
- processgpt_agent_sdk/__init__.py,sha256=4-Wt-FRImZa1tG4CWx2ZtICcnTkKoAiqAfva9vLitLQ,991
2
- processgpt_agent_sdk/database.py,sha256=4oQxJ3y28pPdUpvcQ80DEcFmcvKH37RszhSSZKf6tJU,12690
3
- processgpt_agent_sdk/processgpt_agent_framework.py,sha256=tDtqPRmtztxEGYNsuY21VyO8Fr20b9YK_sPprmcGlYY,23394
4
- processgpt_agent_sdk/utils.py,sha256=XNL-PId5xflUiTF3HQ3lOF264e4y85MXZJOfPix32Iw,8429
5
- process_gpt_agent_sdk-0.3.19.dist-info/METADATA,sha256=6HBC9DEyqyt_EUsVP4PZxwa1I36UyecugEbe4WebQHo,21981
6
- process_gpt_agent_sdk-0.3.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- process_gpt_agent_sdk-0.3.19.dist-info/top_level.txt,sha256=Xe6zrj3_3Vv7d0pl5RRtenVUckwOVBVLQn2P03j5REo,21
8
- process_gpt_agent_sdk-0.3.19.dist-info/RECORD,,