Skip to content

Commit

Permalink
Merge pull request voxos-ai#369 from bolna-ai/docker-cleanup
Browse files Browse the repository at this point in the history
adding logs for transfer_call
  • Loading branch information
prateeksachan authored Aug 9, 2024
2 parents eba30b5 + 7379f70 commit 2976300
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bolna/agent_manager/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,12 @@ async def __execute_function_call(self, url, method, param, api_token, model_arg

async with aiohttp.ClientSession() as session:
logger.info(f"Sending the payload to stop the conversation {payload} url {url}")
convert_to_request_log(str(payload), meta_info, None, "function_call", direction="request", is_cached=False,
run_id=self.run_id)
async with session.post(url, json = payload) as response:
response_text = await response.text()
logger.info(f"Response from the server after call transfer: {response_text}")
convert_to_request_log(str(response_text), meta_info, None, "function_call", direction="response", is_cached=False, run_id=self.run_id)
return

response = await trigger_api(url= url, method=method.lower(), param= param, api_token= api_token, meta_info = meta_info, run_id = self.run_id, **resp)
Expand Down

0 comments on commit 2976300

Please sign in to comment.