mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
API Updates to facilitate nested runtimes. (#8525)
This commit is contained in:
14
openhands/server/data_models/agent_loop_info.py
Normal file
14
openhands/server/data_models/agent_loop_info.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from openhands.events.event_store_abc import EventStoreABC
|
||||
|
||||
|
||||
@dataclass
|
||||
class AgentLoopInfo:
|
||||
"""
|
||||
Information about an agent loop - the URL on which to locate it and the event store
|
||||
"""
|
||||
conversation_id: str
|
||||
url: str | None
|
||||
api_key: str | None
|
||||
event_store: EventStoreABC
|
||||
@@ -19,4 +19,6 @@ class ConversationInfo:
|
||||
selected_repository: str | None = None
|
||||
trigger: ConversationTrigger | None = None
|
||||
num_connections: int = 0
|
||||
url: str | None = None
|
||||
api_key: str | None = None
|
||||
created_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc))
|
||||
|
||||
Reference in New Issue
Block a user