process-gpt-agent-sdk 0.4.6__tar.gz → 0.4.8__tar.gz

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.6
3
+ Version: 0.4.8
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: process-gpt-agent-sdk
3
- Version: 0.4.6
3
+ Version: 0.4.8
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
@@ -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,55 +126,79 @@ 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
- user_info.append(f"{name}({email})" if email else name)
142
+ user_str = f"{name}({email})" if email else name
143
+ # None 값 제거
144
+ if user_str and user_str != "None":
145
+ user_info.append(user_str)
146
+ logger.info("🔧 [Users 정보] user_info 리스트: %s", user_info)
139
147
  logger.info("• Users (%d명): %s%s", len(users), ", ".join(user_info), "..." if len(users) > 5 else "")
140
148
  else:
141
149
  logger.info("• Users: 없음")
150
+ logger.info("✅ [Users 정보 처리 완료]")
142
151
 
143
152
  # Agents 정보
153
+ logger.info("🔧 [Agents 정보 처리 시작]")
144
154
  if agents:
145
155
  agent_info = []
146
156
  for a in agents:
147
157
  name = a.get("name", a.get("username", "Unknown"))
148
158
  tools = a.get("tools", "")
149
159
  tool_str = f"[{tools}]" if tools else ""
150
- agent_info.append(f"{name}{tool_str}")
160
+ agent_str = f"{name}{tool_str}"
161
+ # None 값 제거
162
+ if agent_str and agent_str != "None":
163
+ agent_info.append(agent_str)
164
+ logger.info("🔧 [Agents 정보] agent_info 리스트: %s", agent_info)
151
165
  logger.info("• Agents (%d개): %s%s", len(agents), ", ".join(agent_info), "..." if len(agents) > 5 else "")
152
166
  else:
153
167
  logger.info("• Agents: 없음")
168
+ logger.info("✅ [Agents 정보 처리 완료]")
154
169
 
155
170
  # Form 정보
171
+ logger.info("🔧 [Form 정보 처리 시작]")
156
172
  if form_fields:
173
+ logger.info("🔧 [Form 정보] form_fields: %s", form_fields)
157
174
  pretty_json = json.dumps(form_fields, ensure_ascii=False, separators=(',', ':'))
158
175
  logger.info("• Form: %s (%d개 필드) - %s", form_id, len(form_fields), pretty_json)
159
176
  else:
160
177
  logger.info("• Form: %s (필드 없음)", form_id)
178
+ logger.info("✅ [Form 정보 처리 완료]")
161
179
 
162
180
  # Notify 정보
181
+ logger.info("🔧 [Notify 정보 처리 시작]")
163
182
  if notify_emails:
183
+ logger.info("🔧 [Notify 정보] notify_emails: %s", notify_emails)
164
184
  email_list = notify_emails.split(',') if ',' in notify_emails else [notify_emails]
185
+ logger.info("🔧 [Notify 정보] email_list: %s", email_list)
165
186
  logger.info("• Notify (%d개): %s", len(email_list),
166
187
  ", ".join(email_list[:3]) + ("..." if len(email_list) > 3 else ""))
167
188
  else:
168
189
  logger.info("• Notify: 없음")
190
+ logger.info("✅ [Notify 정보 처리 완료]")
169
191
 
170
192
  # MCP 정보 - 상세 표시
193
+ logger.info("🔧 [MCP 정보 처리 시작]")
171
194
  if tenant_mcp:
172
195
  logger.info("• %s 테넌트에 연결된 MCP 설정 정보가 존재합니다.", tenant_id)
173
196
  else:
174
197
  logger.info("• %s 테넌트에 연결된 MCP 설정 정보가 존재하지 않습니다.", tenant_id)
198
+ logger.info("✅ [MCP 정보 처리 완료]")
175
199
 
176
200
  # 피드백 처리
201
+ logger.info("🔧 [피드백 처리 시작]")
177
202
  feedback_data = self.row.get("feedback")
178
203
  content_data = self.row.get("output") or self.row.get("draft")
179
204
  summarized_feedback = ""
@@ -182,7 +207,11 @@ class ProcessGPTRequestContext(RequestContext):
182
207
  logger.info("• %d자 → AI 요약 중...", len(feedback_data))
183
208
  summarized_feedback = await summarize_feedback(feedback_data, content_data)
184
209
  logger.info("• 요약 완료: %d자", len(summarized_feedback))
210
+ else:
211
+ logger.info("• 피드백 없음")
212
+ logger.info("✅ [피드백 처리 완료]")
185
213
 
214
+ logger.info("🔧 [컨텍스트 구성 시작]")
186
215
  logger.info("sensitive_data: %s", self.row.get("sensitive_data") or "{}")
187
216
 
188
217
  # 컨텍스트 구성
@@ -201,6 +230,7 @@ class ProcessGPTRequestContext(RequestContext):
201
230
  "summarized_feedback": summarized_feedback,
202
231
  "sensitive_data": self.row.get("sensitive_data") or "{}",
203
232
  }
233
+ logger.info("✅ [컨텍스트 구성 완료]")
204
234
 
205
235
  logger.info("\n\n🎉 [컨텍스트 준비 완료] 모든 데이터 준비됨")
206
236
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "process-gpt-agent-sdk"
7
- version = "0.4.6"
7
+ version = "0.4.8"
8
8
  description = "Supabase 기반 이벤트/작업 폴링으로 A2A AgentExecutor를 실행하는 SDK"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"