Improving docstring description.
Co-authored-by: kompfner <paul@daily.co>
This commit is contained in:
committed by
GitHub
parent
9c7d5a9de2
commit
e863293198
@@ -36,7 +36,7 @@ load_dotenv(override=True)
|
|||||||
|
|
||||||
|
|
||||||
async def fetch_weather_from_api(params: FunctionCallParams):
|
async def fetch_weather_from_api(params: FunctionCallParams):
|
||||||
# Simulate a long-running API call, so we can test async function calls.
|
# Simulate a long-running API call, so we can test async function calls (cancel_on_interruption=False).
|
||||||
await asyncio.sleep(20)
|
await asyncio.sleep(20)
|
||||||
await params.result_callback({"conditions": "nice", "temperature": "75"})
|
await params.result_callback({"conditions": "nice", "temperature": "75"})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user