42 lines
952 B
Python
42 lines
952 B
Python
|
|
# generated by datamodel-codegen:
|
||
|
|
# filename: bid_proposal_draft.json
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from pydantic import BaseModel, ConfigDict, constr
|
||
|
|
|
||
|
|
|
||
|
|
class PricesRef(BaseModel):
|
||
|
|
model_config = ConfigDict(
|
||
|
|
extra='forbid',
|
||
|
|
)
|
||
|
|
tool_call_id: constr(min_length=1)
|
||
|
|
path: constr(min_length=1)
|
||
|
|
|
||
|
|
|
||
|
|
class QuantitiesRef(BaseModel):
|
||
|
|
model_config = ConfigDict(
|
||
|
|
extra='forbid',
|
||
|
|
)
|
||
|
|
tool_call_id: constr(min_length=1)
|
||
|
|
path: constr(min_length=1)
|
||
|
|
|
||
|
|
|
||
|
|
class ExpectedRevenueRef(BaseModel):
|
||
|
|
model_config = ConfigDict(
|
||
|
|
extra='forbid',
|
||
|
|
)
|
||
|
|
tool_call_id: constr(min_length=1)
|
||
|
|
path: constr(min_length=1)
|
||
|
|
|
||
|
|
|
||
|
|
class BidProposalDraft(BaseModel):
|
||
|
|
model_config = ConfigDict(
|
||
|
|
extra='forbid',
|
||
|
|
)
|
||
|
|
market_date: constr(pattern=r'^\d{4}-\d{2}-\d{2}$')
|
||
|
|
prices_ref: PricesRef
|
||
|
|
quantities_ref: QuantitiesRef
|
||
|
|
expected_revenue_ref: ExpectedRevenueRef
|
||
|
|
rationale: constr(min_length=1)
|