Add more details and examples for agent API