get observer cruise API (#1447)

This commit is contained in:
Shuchang Zheng
2024-12-30 12:20:47 -08:00
committed by GitHub
parent b2fdb187fa
commit d5dacd9918
2 changed files with 16 additions and 0 deletions

View File

@@ -919,3 +919,7 @@ async def _record_thought_screenshot(observer_thought: ObserverThought, workflow
artifact_type=ArtifactType.SCREENSHOT_LLM,
data=screenshot,
)
async def get_observer_cruise(observer_cruise_id: str, organization_id: str | None = None) -> ObserverCruise | None:
return await app.DATABASE.get_observer_cruise(observer_cruise_id, organization_id=organization_id)