Hey! I'm working on my pytests. Inside of them, I ...
# agents
a
Hey! I'm working on my pytests. Inside of them, I start my conversation on_enter with a tool call that calls a task. The tasks then after finalizing, do a generate_reply(or .say) message. My issue it that i'm trying to test the message generated at the end of the function and I cant find it within the event. The event end with the agent handoff and I cant access the RunResult created from the new message. Any ideas on how I can test this? Here is the event list from the Run result the complete the task:
Copy code
[FunctionCallEvent(item=FunctionCall(id='item_58ccc9fb8133/fnc_0', type='function_call', call_id='call_2FrW3NMy2XOp2Q6AO5AmRMAr', arguments='{"nombre":"Taiel Raffaeli"}', name='confirmar_titular', created_at=1756752768.1149259), type='function_call'), FunctionCallOutputEvent(item=FunctionCallOutput(id='item_e083a89f922c', type='function_call_output', name='confirmar_titular', call_id='call_2FrW3NMy2XOp2Q6AO5AmRMAr', output='', is_error=False, created_at=1756752766.8480604), type='function_call_output'), AgentHandoffEvent(old_agent=<agents.tasks.identity_verification.IdentityVerificationTask object at 0x000001D3E297DDD0>, new_agent=<agents.base.base.BaseAgent object at 0x000001D3E2974F50>, type='agent_handoff')]