Schema Registry
ChatResponse

ChatResponse

Chat response model

Properties

PropertyTypeRequiredDescription
messageobjectβœ… Yes-
usageobjectβœ… Yes-
modelstringβœ… Yes-
timestampstringβœ… Yes-

Example

{
  "message": {},
  "usage": {},
  "model": "example",
  "timestamp": "example"
}

Used In

Code Examples

TypeScript

interface ChatResponse {
  message: any;
  usage: Record<string, any>;
  model: string;
  timestamp: string;
}
 
// Usage example
const data: ChatResponse = {
  "message": {},
  "usage": {},
  "model": "example",
  "timestamp": "example"
};

Python

from data_layer.schemas import ChatResponse
 
# Create instance
data = ChatResponse(
    # Add your field values here
)

cURL

curl -X POST "https://altsportsleagues-backend-2qcdjegnaa-uc.a.run.app/api/endpoint" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{   "message": {},   "usage": {},   "model": "example",   "timestamp": "example" }'

Validation Rules

Required Fields: message, usage, model, timestamp

Additional Information

  • Type: object
  • Source: Generated from Pydantic models in data_layer/schemas/
  • Auto-validated: All fields are validated by FastAPI

This documentation is auto-generated from the OpenAPI specification.

Platform

Documentation

Community

Support

partnership@altsportsdata.comdev@altsportsleagues.ai

2025 Β© AltSportsLeagues.ai. Powered by AI-driven sports business intelligence.

πŸ€– AI-Enhancedβ€’πŸ“Š Data-Drivenβ€’βš‘ Real-Time