Download core/agents/runner/__init__.py from Kyrlos11/nniback: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/spaces/Kyrlos11/nniback/resolve/main/core/agents/runner/__init__.py
- Command line
-
hf download hf://spaces/Kyrlos11/nniback/core/agents/runner/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Kyrlos11/nniback/resolve/main/core/agents/runner/__init__.py
1.46 kB
| from typing import Optional, AsyncGenerator, Dict, Any, TYPE_CHECKING | |
| import asyncio | |
| if TYPE_CHECKING: | |
| from langfuse.client import StatefulTraceClient | |
| from core.agents.runner.config import AgentConfig | |
| from core.agents.runner.tool_manager import ToolManager | |
| from core.agents.runner.mcp_manager import MCPManager | |
| from core.agents.runner.prompt_manager import PromptManager | |
| # AgentRunner removed - use execute_agent_run from executor.py instead | |
| from core.agents.runner.executor import execute_agent_run | |
| from core.agents.runner.services import ( | |
| REDIS_STREAM_TTL_SECONDS, | |
| TIMEOUT_MCP_INIT, | |
| TIMEOUT_PROJECT_METADATA, | |
| TIMEOUT_DYNAMIC_TOOLS, | |
| TIMEOUT_DB_QUERY, | |
| STOP_CHECK_INTERVAL, | |
| SETUP_TOOLS_EXECUTOR, | |
| with_timeout, | |
| stream_status_message, | |
| check_terminating_tool_call, | |
| ensure_project_metadata_cached, | |
| update_agent_run_status, | |
| send_completion_notification, | |
| ResponseHandler, | |
| ) | |
| __all__ = [ | |
| 'AgentConfig', | |
| 'ToolManager', | |
| 'MCPManager', | |
| 'PromptManager', | |
| 'ResponseHandler', | |
| 'execute_agent_run', | |
| 'stream_status_message', | |
| 'with_timeout', | |
| 'check_terminating_tool_call', | |
| 'ensure_project_metadata_cached', | |
| 'update_agent_run_status', | |
| 'send_completion_notification', | |
| 'REDIS_STREAM_TTL_SECONDS', | |
| 'TIMEOUT_MCP_INIT', | |
| 'TIMEOUT_PROJECT_METADATA', | |
| 'TIMEOUT_DYNAMIC_TOOLS', | |
| 'TIMEOUT_DB_QUERY', | |
| 'STOP_CHECK_INTERVAL', | |
| 'SETUP_TOOLS_EXECUTOR', | |
| ] | |