ContractGenerationRequest
Request for contract generation
Properties
| Property | Type | Required | Description |
|---|---|---|---|
document_path | object | β No | Path to the league questionnaire document |
questionnaire | object | β No | Direct questionnaire data (alternative to document_path) |
output_format | object | β No | Output format: 'markdown', 'docx', 'pdf', or 'all' |
league_filter | object | β No | Filter for specific leagues |
top_k | object | β No | Process only top K leagues by score |
include_all | object | β No | Include all leagues regardless of score |
Example
{
"document_path": {},
"questionnaire": {},
"output_format": {},
"league_filter": {},
"top_k": {},
"include_all": {}
}Used In
Code Examples
TypeScript
interface ContractGenerationRequest {
document_path?: any;
questionnaire?: any;
output_format?: any;
league_filter?: any;
top_k?: any;
include_all?: any;
}
// Usage example
const data: ContractGenerationRequest = {
"document_path": {},
"questionnaire": {},
"output_format": {},
"league_filter": {},
"top_k": {},
"include_all": {}
};Python
from data_layer.schemas import ContractGenerationRequest
# Create instance
data = ContractGenerationRequest(
# 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 '{ "document_path": {}, "questionnaire": {}, "output_format": {}, "league_filter": {}, "top_k": {}, "include_all": {} }'Validation Rules
No specific validation rules.
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.