Update documentation and code snippets

This commit is contained in:
2025-12-02 11:22:31 +03:00
parent 2ff47398ba
commit 7c20bf296b
23 changed files with 63 additions and 62 deletions
@@ -3,16 +3,16 @@ from argenta import App, Orchestrator
from .handlers import router
from .provider import TaskProvider
# 1. Создаем экземпляр приложения и оркестратора
# 1. Create app and orchestrator instances
app = App(
initial_message="Task Manager",
prompt="Enter a command: ",
)
orchestrator = Orchestrator(custom_providers=[TaskProvider()])
# 2. Подключаем роутер с нашими командами
# 2. Include router with our commands
app.include_router(router)
# 3. Запускаем поллинг через оркестратор
# 3. Start polling via orchestrator
if __name__ == "__main__":
orchestrator.start_polling(app)