mirror of
https://github.com/katanemo/plano.git
synced 2026-06-23 15:38:07 +02:00
send all tools when sending request to arch-fc (#59)
This commit is contained in:
parent
3135ba8eae
commit
215d276acf
3 changed files with 93 additions and 46 deletions
|
|
@ -143,3 +143,19 @@ async def weather(req: WeatherRequest, res: Response):
|
|||
})
|
||||
|
||||
return weather_forecast
|
||||
|
||||
class InsuranceClaimDetailsRequest(BaseModel):
|
||||
policy_number: str
|
||||
|
||||
@app.post("/insurance_claim_details")
|
||||
async def insurance_claim_details(req: InsuranceClaimDetailsRequest, res: Response):
|
||||
|
||||
claim_details = {
|
||||
"policy_number": req.policy_number,
|
||||
"claim_status": "Approved",
|
||||
"claim_amount": random.randrange(1000, 10000),
|
||||
"claim_date": str(date.today() - timedelta(days=random.randrange(1, 30))),
|
||||
"claim_reason": "Car Accident",
|
||||
}
|
||||
|
||||
return claim_details
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue