pip install pilott
export OPENAI_API_KEY="your-api-key"
from examples.agents import main # Run the example import asyncio asyncio.run(main())
Job: Handle refund request Result: Customer refund request processed successfully Job: Analyze quarterly report Result: Document analysis complete: 3 key insights found Job: Research competitor pricing Result: Market research analysis completed
agent_config = AgentConfig( title="your_agent_title", goal="your_agent_goal", tools=["tool1", "tool2"] )
agent = await pilott.add_agent( title=agent_config.title, goal=agent_config.goal, tools=agent_config.tools, llm_config=llm_config )
llm_config = LLMConfig( model_name="gpt-4", # or other models provider="openai", # or other providers temperature=0.7 # adjust based on needs )
tool = Tool( name="tool_name", description="tool_description", function=your_function, parameters={ "param1": "type1", "param2": "type2" } )