feat: Create polling job for polling batch results (#1624)

Previous run passed all relevant checks, so skipping the wait. This new commit just merges main.
This commit is contained in:
Matthew Zhou
2025-04-08 16:42:12 -07:00
committed by GitHub
parent a9c6537bf2
commit 5fe18ec0e9
14 changed files with 772 additions and 63 deletions

View File

@@ -8,6 +8,7 @@ from abc import abstractmethod
from datetime import datetime
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
from anthropic import AsyncAnthropic
from composio.client import Composio
from composio.client.collections import ActionModel, AppModel
from fastapi import HTTPException
@@ -352,6 +353,9 @@ class SyncServer(Server):
self._llm_config_cache = {}
self._embedding_config_cache = {}
# TODO: Replace this with the Anthropic client we have in house
self.anthropic_async_client = AsyncAnthropic()
def load_agent(self, agent_id: str, actor: User, interface: Union[AgentInterface, None] = None) -> Agent:
"""Updated method to load agents from persisted storage"""
agent_state = self.agent_manager.get_agent_by_id(agent_id=agent_id, actor=actor)