Option A: Standard Install
curl -sSL https://install.python-poetry.org | python3 -Option B: If Poetry fails (Homebrew Python)
brew install python@3.11
curl -sSL https://install.python-poetry.org | python3 -Option C: Use pip instead (no Poetry)
python3 -m pip install -r requirements.txt --usercd /Users/n0r0bhn/Documents/flowllm-python
./setup.sh# Edit .env file
nano .env
# Add your OpenAI key (at minimum):
OPENAI_API_KEY=sk-proj-YOUR-KEY-HERE# Activate virtual environment
poetry shell
# Test imports
python test_imports.py
# Run an example
python examples/basic_agent.pyimport asyncio
from flowllm import define_agent
from flowllm.providers import OpenAIProvider
async def main():
agent = define_agent(
provider=OpenAIProvider(model="gpt-4o-mini"),
system_prompt="You are a helpful assistant."
)
response = await agent.execute("What is Python?")
print(response.content)
asyncio.run(main())from flowllm import define_agent, define_tool
from flowllm.providers import OpenAIProvider
@define_tool(name="get_time", description="Get current time")
async def get_time() -> str:
from datetime import datetime
return datetime.now().strftime("%H:%M:%S")
agent = define_agent(
provider=OpenAIProvider(model="gpt-4"),
tools=[get_time]
)
response = await agent.execute("What time is it?")async for chunk in agent.stream("Tell me a story"):
print(chunk.content, end="", flush=True)- basic_agent.py - Simple conversation
- custom_tools.py - Using custom tools
- streaming.py - Stream responses
- conversation.py - Multi-turn chat
- multi_provider.py - Test all providers
- Getting Started: docs/getting_started.md
- Build Plan: PYTHON_BUILD_PLAN.md
- Build Summary: BUILD_SUMMARY.md
- Progress: BUILD_PROGRESS.md
✅ 3 LLM Providers (OpenAI, Anthropic, Gemini)
✅ 3 Memory Strategies
✅ Custom Tools
✅ Streaming
✅ Cost Tracking
✅ Retry Logic
✅ Type-Safe
✅ Async/Await
Check BUILD_SUMMARY.md for a complete overview!
Happy building! 🤖