Hi everyone, what is the right way to make functio...
# agents
q
Hi everyone, what is the right way to make function calls after the call has ended? Also, how to get transcripts of the conversation once the call has ended?
I am using AgentSession to start a session. Also, if it helps I am testing this currently using the cli: python agent.py console
g
+1
r
q
Thanks @refined-appointment-81829 that would help with transcripts. What is the right hook or method to make function calls after a call has ended?
r
Just call the function. Not sure what you are asking there.
q
What would be the right event or callback where we can manually call an API after a call has ended
?
r
Isn't your agent ending the call? If so do the call where ever you end the call. If the remote participant is leaving first do it where the participant leaves. For example you could hook here: https://github.com/livekit/python-sdks/blob/main/examples/basic_room.py#L17
q
Thank you, that helps