-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathagent.py
More file actions
45 lines (30 loc) · 1.29 KB
/
agent.py
File metadata and controls
45 lines (30 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Dict, Optional
from datetime import datetime
from typing_extensions import Literal
from .._models import BaseModel
from .acp_type import AcpType
__all__ = ["Agent"]
class Agent(BaseModel):
id: str
"""The unique identifier of the agent."""
acp_type: AcpType
"""The type of the ACP Server (Either sync or async)"""
created_at: datetime
"""The timestamp when the agent was created"""
description: str
"""The description of the action."""
name: str
"""The unique name of the agent."""
updated_at: datetime
"""The timestamp when the agent was last updated"""
agent_input_type: Optional[Literal["text", "json"]] = None
"""The type of input the agent expects."""
registered_at: Optional[datetime] = None
"""The timestamp when the agent was last registered"""
registration_metadata: Optional[Dict[str, object]] = None
"""The metadata for the agent's registration."""
status: Optional[Literal["Ready", "Failed", "Unknown", "Deleted", "Unhealthy"]] = None
"""The status of the action, indicating if it's building, ready, failed, etc."""
status_reason: Optional[str] = None
"""The reason for the status of the action."""