Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ubi integration for agent
Browse files- RAG/bedrock_agent.py +1 -1
RAG/bedrock_agent.py
CHANGED
|
@@ -128,7 +128,7 @@ def query_(inputs):
|
|
| 128 |
agent_answer = ""
|
| 129 |
trace_id = str(uuid.uuid4()).replace("-", "")
|
| 130 |
try:
|
| 131 |
-
for event in event_stream:
|
| 132 |
if 'trace' in event:
|
| 133 |
|
| 134 |
if('orchestrationTrace' not in event['trace']['trace']):
|
|
|
|
| 128 |
agent_answer = ""
|
| 129 |
trace_id = str(uuid.uuid4()).replace("-", "")
|
| 130 |
try:
|
| 131 |
+
for i,event in enumerate(event_stream):
|
| 132 |
if 'trace' in event:
|
| 133 |
|
| 134 |
if('orchestrationTrace' not in event['trace']['trace']):
|