process-gpt-agent-sdk 0.4.5__py3-none-any.whl → 0.4.7__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.4.5
3
+ Version: 0.4.7
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,9 @@
1
+ processgpt_agent_sdk/__init__.py,sha256=MF4ij8yx4CgMljp86dPffsBtijxUbtDBpg3WxngN9ZA,1116
2
+ processgpt_agent_sdk/database.py,sha256=_vbeuiQXS-MGtVmE-GOlGdbT1mh2owg9py8_OqPZTdE,15222
3
+ processgpt_agent_sdk/processgpt_agent_framework.py,sha256=-V9aQaCCk2Tn62_nsXapwWFVdtbPp6i0-In4cyeyI78,24168
4
+ processgpt_agent_sdk/single_run.py,sha256=xI5s4neWQ4WE1Fx5_TiBwEypHRTgBFX1WODj-lZqGaY,1050
5
+ processgpt_agent_sdk/utils.py,sha256=Ucv4fZ4gXeTgX1TjmXJv_XjL7-bmEJ45tpW7i18TMac,9436
6
+ process_gpt_agent_sdk-0.4.7.dist-info/METADATA,sha256=rU0ZZAslGBOJY0wd47Bt9lomW5I7zkwLVJOl5vCWDOw,6840
7
+ process_gpt_agent_sdk-0.4.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ process_gpt_agent_sdk-0.4.7.dist-info/top_level.txt,sha256=Xe6zrj3_3Vv7d0pl5RRtenVUckwOVBVLQn2P03j5REo,21
9
+ process_gpt_agent_sdk-0.4.7.dist-info/RECORD,,
@@ -160,7 +160,7 @@ async def polling_pending_todos(agent_orch: str, consumer: str) -> Optional[Dict
160
160
  if not data:
161
161
  row["sensitive_data"] = "{}"
162
162
  else:
163
- row["sensitive_data"] = data[0].get("value") if data and getattr(data, "data", None) else None
163
+ row["sensitive_data"] = data[0].get("value") if data else None
164
164
 
165
165
  logger.info("browser_use_sensitive_data: %s", row["sensitive_data"])
166
166
 
@@ -105,6 +105,7 @@ class ProcessGPTRequestContext(RequestContext):
105
105
  async def prepare_context(self) -> None:
106
106
  """익스큐터를 위한 컨텍스트 준비를 합니다."""
107
107
 
108
+ logger.info("row: %s", self.row)
108
109
  effective_proc_inst_id = self.row.get("root_proc_inst_id") or self.row.get("proc_inst_id")
109
110
  tool_val = self.row.get("tool") or ""
110
111
  tenant_id = self.row.get("tenant_id") or ""
@@ -125,22 +126,28 @@ class ProcessGPTRequestContext(RequestContext):
125
126
  agents, users = users_group
126
127
 
127
128
  # 글로벌 에이전트 모델 설정
129
+ logger.info("🔧 [에이전트 모델 설정 시작]")
128
130
  set_agent_model(agents[0] if agents else None)
131
+ logger.info("✅ [에이전트 모델 설정 완료]")
129
132
 
130
133
  logger.info("\n\n🔍 [데이터베이스 조회 결과]")
131
134
 
132
135
  # Users 정보
136
+ logger.info("🔧 [Users 정보 처리 시작]")
133
137
  if users:
134
138
  user_info = []
135
139
  for u in users[:5]:
136
140
  name = u.get("name", u.get("username", "Unknown"))
137
141
  email = u.get("email", "")
138
142
  user_info.append(f"{name}({email})" if email else name)
143
+ logger.info("🔧 [Users 정보] user_info 리스트: %s", user_info)
139
144
  logger.info("• Users (%d명): %s%s", len(users), ", ".join(user_info), "..." if len(users) > 5 else "")
140
145
  else:
141
146
  logger.info("• Users: 없음")
147
+ logger.info("✅ [Users 정보 처리 완료]")
142
148
 
143
149
  # Agents 정보
150
+ logger.info("🔧 [Agents 정보 처리 시작]")
144
151
  if agents:
145
152
  agent_info = []
146
153
  for a in agents:
@@ -148,32 +155,44 @@ class ProcessGPTRequestContext(RequestContext):
148
155
  tools = a.get("tools", "")
149
156
  tool_str = f"[{tools}]" if tools else ""
150
157
  agent_info.append(f"{name}{tool_str}")
158
+ logger.info("🔧 [Agents 정보] agent_info 리스트: %s", agent_info)
151
159
  logger.info("• Agents (%d개): %s%s", len(agents), ", ".join(agent_info), "..." if len(agents) > 5 else "")
152
160
  else:
153
161
  logger.info("• Agents: 없음")
162
+ logger.info("✅ [Agents 정보 처리 완료]")
154
163
 
155
164
  # Form 정보
165
+ logger.info("🔧 [Form 정보 처리 시작]")
156
166
  if form_fields:
167
+ logger.info("🔧 [Form 정보] form_fields: %s", form_fields)
157
168
  pretty_json = json.dumps(form_fields, ensure_ascii=False, separators=(',', ':'))
158
169
  logger.info("• Form: %s (%d개 필드) - %s", form_id, len(form_fields), pretty_json)
159
170
  else:
160
171
  logger.info("• Form: %s (필드 없음)", form_id)
172
+ logger.info("✅ [Form 정보 처리 완료]")
161
173
 
162
174
  # Notify 정보
175
+ logger.info("🔧 [Notify 정보 처리 시작]")
163
176
  if notify_emails:
177
+ logger.info("🔧 [Notify 정보] notify_emails: %s", notify_emails)
164
178
  email_list = notify_emails.split(',') if ',' in notify_emails else [notify_emails]
179
+ logger.info("🔧 [Notify 정보] email_list: %s", email_list)
165
180
  logger.info("• Notify (%d개): %s", len(email_list),
166
181
  ", ".join(email_list[:3]) + ("..." if len(email_list) > 3 else ""))
167
182
  else:
168
183
  logger.info("• Notify: 없음")
184
+ logger.info("✅ [Notify 정보 처리 완료]")
169
185
 
170
186
  # MCP 정보 - 상세 표시
187
+ logger.info("🔧 [MCP 정보 처리 시작]")
171
188
  if tenant_mcp:
172
189
  logger.info("• %s 테넌트에 연결된 MCP 설정 정보가 존재합니다.", tenant_id)
173
190
  else:
174
191
  logger.info("• %s 테넌트에 연결된 MCP 설정 정보가 존재하지 않습니다.", tenant_id)
192
+ logger.info("✅ [MCP 정보 처리 완료]")
175
193
 
176
194
  # 피드백 처리
195
+ logger.info("🔧 [피드백 처리 시작]")
177
196
  feedback_data = self.row.get("feedback")
178
197
  content_data = self.row.get("output") or self.row.get("draft")
179
198
  summarized_feedback = ""
@@ -182,7 +201,11 @@ class ProcessGPTRequestContext(RequestContext):
182
201
  logger.info("• %d자 → AI 요약 중...", len(feedback_data))
183
202
  summarized_feedback = await summarize_feedback(feedback_data, content_data)
184
203
  logger.info("• 요약 완료: %d자", len(summarized_feedback))
204
+ else:
205
+ logger.info("• 피드백 없음")
206
+ logger.info("✅ [피드백 처리 완료]")
185
207
 
208
+ logger.info("🔧 [컨텍스트 구성 시작]")
186
209
  logger.info("sensitive_data: %s", self.row.get("sensitive_data") or "{}")
187
210
 
188
211
  # 컨텍스트 구성
@@ -201,6 +224,7 @@ class ProcessGPTRequestContext(RequestContext):
201
224
  "summarized_feedback": summarized_feedback,
202
225
  "sensitive_data": self.row.get("sensitive_data") or "{}",
203
226
  }
227
+ logger.info("✅ [컨텍스트 구성 완료]")
204
228
 
205
229
  logger.info("\n\n🎉 [컨텍스트 준비 완료] 모든 데이터 준비됨")
206
230
 
@@ -1,9 +0,0 @@
1
- processgpt_agent_sdk/__init__.py,sha256=MF4ij8yx4CgMljp86dPffsBtijxUbtDBpg3WxngN9ZA,1116
2
- processgpt_agent_sdk/database.py,sha256=BCDthPwtiuj7B64O5PdBHHT70HbOpoxPJPJEH1f7JfQ,15254
3
- processgpt_agent_sdk/processgpt_agent_framework.py,sha256=GAKuxVeS3BwXcGASFfDz1oB5gqjvHUyffcGFPO5UPPo,22641
4
- processgpt_agent_sdk/single_run.py,sha256=xI5s4neWQ4WE1Fx5_TiBwEypHRTgBFX1WODj-lZqGaY,1050
5
- processgpt_agent_sdk/utils.py,sha256=Ucv4fZ4gXeTgX1TjmXJv_XjL7-bmEJ45tpW7i18TMac,9436
6
- process_gpt_agent_sdk-0.4.5.dist-info/METADATA,sha256=dc2RZI75sWV2_Z4R9n12GwtO7Ul2p_XJYAca_z3cDFs,6840
7
- process_gpt_agent_sdk-0.4.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- process_gpt_agent_sdk-0.4.5.dist-info/top_level.txt,sha256=Xe6zrj3_3Vv7d0pl5RRtenVUckwOVBVLQn2P03j5REo,21
9
- process_gpt_agent_sdk-0.4.5.dist-info/RECORD,,