You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class LibraryAgentResponse:
agents: List[LibraryAgent]
pagination: Pagination # info
class LibraryAgent(BaseModel):
agent_id: str
agent_version: int
name: str
image_url: str
creator_name: str
creator_image_url: str
short_description: str
status: AgentStatus
new_output: bool
can_access_graph: bool
input_schema: ...
preset_id: str | None
preset_input_data: ... | None
class AgentStatus(enum):
HEALTHY
ERROR
WAITING
COMPLETED
As for the runs we can use a slightly modified GraphExecution:
# Reuse GraphExecution, with cost added to it.
class GraphExecution(BaseDbModel):
execution_id: str
started_at: datetime
ended_at: datetime
duration: float
total_run_time: float
status: ExecutionStatus
graph_id: str
graph_version: int
+++ preset_id: str | None # needed to be able to link runs to a specific preset
+++ cost: int
The text was updated successfully, but these errors were encountered:
So tis something like this:
The text was updated successfully, but these errors were encountered: