File size: 669 Bytes
cce43bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""
Quick test to check heading parsing in API client
"""
import logging
from api_client import APIClient

# Set up logging to see debug info
logging.basicConfig(level=logging.INFO)

# Create API client
client = APIClient("http://localhost:8000")

# Test with a simple query
print("Testing heading parsing...")
response = client.send_query("Show me all employees")

print(f"\nResponse keys: {list(response.keys())}")
print(f"Message: {response.get('message')}")
print(f"Heading: {response.get('heading')}")
print(f"Summary: {response.get('summary')}")
print(f"Original heading: {response.get('original_heading')}")
print(f"Rows count: {len(response.get('rows', []))}")