#!/usr/bin/env python3
"""Run generate_demand_agent interactively."""

from agents.generate_demand_agent import create_generate_demand_agent


def main() -> None:
    agent = create_generate_demand_agent()
    print(f"create_generate_demand_agent ready | model={agent.model}")
    print(f"tools: {agent.tools.list_tools()}")
    print()
    user_input = f'''
    帮我产出一批平台热度高的需求，50个左右
       '''
    result = agent.run(user_input)
    print(result.content)
    print(f"\n[iterations={result.iterations}, tool_calls={result.tool_calls_made}]")


if __name__ == "__main__":
    main()
