-
Notifications
You must be signed in to change notification settings - Fork 10
Getting Started with OrKa
Mak Sò edited this page May 18, 2025
·
1 revision
git clone https://github.com/marcosomma/orka-resoning.git
cd orka
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtOPENAI_API_KEY=...
OPENAI_MODEL=gpt-3.5-turbo
python test_run.pyThis runs orka.yaml against a sample input.
redis-cli xrevrange orka:memory + - COUNT 5- Change prompts
- Add agents
- Insert fallback paths
- Configure timeouts and concurrency limits
# Modern async pattern (recommended)
from orka.agents.base_agent import BaseAgent
class MyCustomAgent(BaseAgent):
async def _run_impl(self, ctx):
input_data = ctx.get("input")
# Your custom processing logic
return "processed result"- id: my_agent
type: my_custom_agent
prompt: Process this input
queue: orka:my_agent
timeout: 30.0 # Optional: Set custom timeout
max_concurrency: 5 # Optional: Set concurrency limitGitHub issues or Discord: https://discord.gg/UthTN8Xu