azettl commited on
Commit
8747173
·
verified ·
1 Parent(s): 8052412

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -109,8 +109,17 @@ class OpenFloorResearchAgent:
109
  if text_feature and hasattr(text_feature, 'tokens'):
110
  query_text = ' '.join([token.get('value', '') for token in text_feature.tokens])
111
 
 
 
112
  # Perform the research
 
 
113
  research_result = self.tool.search(query_text)
 
 
 
 
 
114
 
115
  # Create response envelope
116
  return self._create_response_envelope(envelope, research_result, query_text)
 
109
  if text_feature and hasattr(text_feature, 'tokens'):
110
  query_text = ' '.join([token.get('value', '') for token in text_feature.tokens])
111
 
112
+ print(f"🔍 DEBUG: {self.tool.name} received query: '{query_text}'")
113
+
114
  # Perform the research
115
+ import time
116
+ start_time = time.time()
117
  research_result = self.tool.search(query_text)
118
+ end_time = time.time()
119
+
120
+ print(f"🔍 DEBUG: {self.tool.name} completed in {end_time - start_time:.2f}s")
121
+ print(f"🔍 DEBUG: Result length: {len(research_result)} chars")
122
+ print(f"🔍 DEBUG: Result preview: {research_result[:200]}...")
123
 
124
  # Create response envelope
125
  return self._create_response_envelope(envelope, research_result, query_text)