55
66from openhands .sdk .utils .models import DiscriminatedUnionMixin
77from openhands_server .sandboxed_conversation .sandboxed_conversation_models import (
8- SandboxedConversationInfo ,
9- SandboxedConversationPage ,
8+ SandboxedConversationResponse ,
9+ SandboxedConversationResponsePage ,
1010 StartSandboxedConversationRequest ,
1111)
1212
@@ -22,19 +22,19 @@ async def search_sandboxed_conversations(
2222 self ,
2323 page_id : str | None = None ,
2424 limit : int = 100 ,
25- ) -> SandboxedConversationPage :
25+ ) -> SandboxedConversationResponsePage :
2626 """Search for sandboxed conversations."""
2727
2828 @abstractmethod
2929 async def get_sandboxed_conversation (
3030 self , conversation_id : UUID
31- ) -> SandboxedConversationInfo | None :
31+ ) -> SandboxedConversationResponse | None :
3232 """Get a single sandboxed conversation info. Return None if the conversation
3333 was not found."""
3434
3535 async def batch_get_sandboxed_conversations (
3636 self , conversation_ids : list [UUID ]
37- ) -> list [SandboxedConversationInfo | None ]:
37+ ) -> list [SandboxedConversationResponse | None ]:
3838 """Get a batch of sandboxed conversations. Return None for any conversation
3939 which was not found."""
4040 return await asyncio .gather (
@@ -47,7 +47,7 @@ async def batch_get_sandboxed_conversations(
4747 @abstractmethod
4848 async def start_sandboxed_conversation (
4949 self , request : StartSandboxedConversationRequest
50- ) -> SandboxedConversationInfo :
50+ ) -> SandboxedConversationResponse :
5151 """Start a conversation, optionally specifying a sandbox in which to start. If
5252 no sandbox is specified a default may be used or started. This is a convenience
5353 method - the same effect should be achievable by creating / getting a sandbox
0 commit comments