send all tools when sending request to arch-fc (#59)

This commit is contained in:
Adil Hafeez 2024-09-18 15:54:40 -07:00 committed by GitHub
parent 3135ba8eae
commit 215d276acf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 93 additions and 46 deletions

View file

@ -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