Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
Connecting custom Python agents and RAG to the UI
Run
from praisonai import Agent def search_runbooks(topic: str) -> str: """Return matching internal runbook steps.""" return f'Runbook [{topic}]: Restart worker pool and check p95 latency.' ui_agent = Agent( name='OpsConsoleHelper', instructions='Always call search_runbooks and answer in one sentence.', tools=[search_runbooks], output='silent', ) print(ui_agent.start('How do we recover worker-pool?'))
Press Run. The result appears here.
Esc
Search in
All
Docs
University