MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / AgentsApi

Class AgentsApi

sdks/python/src/e2a/v1/generated/api/agents_api.py:34–2204  ·  view source on GitHub ↗

NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually.

Source from the content-addressed store, hash-verified

32
33
34class AgentsApi:
35 """NOTE: This class is auto generated by OpenAPI Generator
36 Ref: https://openapi-generator.tech
37
38 Do not edit the class manually.
39 """
40
41 def __init__(self, api_client=None) -> None:
42 if api_client is None:
43 api_client = ApiClient.get_default()
44 self.api_client = api_client
45
46
47 @validate_call
48 async def create_agent(
49 self,
50 create_agent_request: CreateAgentRequest,
51 _request_timeout: Union[
52 None,
53 Annotated[StrictFloat, Field(gt=0)],
54 Tuple[
55 Annotated[StrictFloat, Field(gt=0)],
56 Annotated[StrictFloat, Field(gt=0)]
57 ]
58 ] = None,
59 _request_auth: Optional[Dict[StrictStr, Any]] = None,
60 _content_type: Optional[StrictStr] = None,
61 _headers: Optional[Dict[StrictStr, Any]] = None,
62 _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
63 ) -> AgentView:
64 """Create an agent
65
66 Register an agent by full email. A custom-domain agent's domain must be a verified domain the caller owns; an email on the deployment's shared domain (e.g. xyz@agents.e2a.dev) is registered as a shared-domain agent. Returns the full agent.
67
68 :param create_agent_request: (required)
69 :type create_agent_request: CreateAgentRequest
70 :param _request_timeout: timeout setting for this request. If one
71 number provided, it will be total request
72 timeout. It can also be a pair (tuple) of
73 (connection, read) timeouts.
74 :type _request_timeout: int, tuple(int, int), optional
75 :param _request_auth: set to override the auth_settings for an a single
76 request; this effectively ignores the
77 authentication in the spec for a single request.
78 :type _request_auth: dict, optional
79 :param _content_type: force content-type for the request.
80 :type _content_type: str, Optional
81 :param _headers: set to override the headers for a single
82 request; this effectively ignores the headers
83 in the spec for a single request.
84 :type _headers: dict, optional
85 :param _host_index: set to override the host_index for a single
86 request; this effectively ignores the host_index
87 in the spec for a single request.
88 :type _host_index: int, optional
89 :return: Returns the result object.
90 """ # noqa: E501
91

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected