feat(backend): add office router and agent runtime services
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
21
backend/app/services/agent_runtime/jarvis_runtime.py
Normal file
21
backend/app/services/agent_runtime/jarvis_runtime.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, AsyncGenerator
|
||||
|
||||
from app.services.agent_runtime.base import ChatRuntime, RuntimePreparedContext
|
||||
|
||||
|
||||
class JarvisRuntimeAdapter(ChatRuntime):
|
||||
name = "jarvis"
|
||||
|
||||
async def chat_stream(
|
||||
self,
|
||||
prepared: RuntimePreparedContext,
|
||||
) -> AsyncGenerator[dict[str, Any], None]:
|
||||
raise NotImplementedError("Jarvis runtime is executed inside AgentService")
|
||||
|
||||
async def chat_once(self, prepared: RuntimePreparedContext) -> tuple[str, str | None]:
|
||||
raise NotImplementedError("Jarvis runtime is executed inside AgentService")
|
||||
|
||||
|
||||
jarvis_runtime_adapter = JarvisRuntimeAdapter()
|
||||
Reference in New Issue
Block a user