feat: add new internal capture endpoint (#5750)

This commit is contained in:
cthomas
2025-10-25 17:42:48 -07:00
committed by Caren Thomas
parent b15b04cec0
commit cd2fb0cd02
3 changed files with 70 additions and 7 deletions

View File

@@ -59,8 +59,8 @@ class SleeptimeMultiAgentV4(LettaAgentV3):
request_start_timestamp_ns=request_start_timestamp_ns,
)
await self.run_sleeptime_agents()
response.usage.run_ids = self.run_ids
run_ids = await self.run_sleeptime_agents()
response.usage.run_ids = run_ids
return response
@trace_method
@@ -94,7 +94,7 @@ class SleeptimeMultiAgentV4(LettaAgentV3):
await self.run_sleeptime_agents()
@trace_method
async def run_sleeptime_agents(self):
async def run_sleeptime_agents(self) -> list[str]:
# Get response messages
last_response_messages = self.response_messages
@@ -122,6 +122,7 @@ class SleeptimeMultiAgentV4(LettaAgentV3):
# Individual task failures
print(f"Sleeptime agent processing failed: {e!s}")
raise e
return self.run_ids
@trace_method
async def _issue_background_task(