## Testing agent messages = [ ChatMessage.from_system( chat_template ), ChatMessage.from_user("I need to buy a crossbow for my child and Pokémon for myself."), ] chat_generator = get_chat_generator() response = chat_generator.run(messages=messages) pprint(response) ## response {'replies': [ChatMessage(content='n' '{"id": 0, "name": "product_identifier_func", ' '"arguments": {"query": "I need to buy a ' 'crossbow for my child"}}n' 'n' 'n' '{"id": 1, "name": "product_identifier_func", ' '"arguments": {"query": "I need to buy a ' 'Pokemon for myself"}}n' '', role=, name=None, meta={'finish_reason': 'stop', 'index': 0, 'model': 'llama3-groq-70b-8192-tool-use-preview', 'usage': {'completion_time': 0.217823967, 'completion_tokens': 70, 'prompt_time': 0.041348261, 'prompt_tokens': 561, 'total_time': 0.259172228, 'total_tokens': 631}})]}