Agent¶
Agent resource class for asynchronous operations.
- class runloop_api_client.sdk.async_agent.AsyncAgent(client, agent_id, agent_view=None)[source]¶
Async wrapper around agent operations.
This class provides an asynchronous interface for interacting with agents, including retrieving agent information.
Example
>>> agent = await runloop.agent.create_from_npm(name="my-agent", package_name="@runloop/example-agent") >>> info = await agent.get_info() >>> print(info.name)
- async get_info(**options)[source]¶
Retrieve the latest agent information.
- Parameters:
options (
Unpack[BaseRequestOptions]) – Optional request configuration- Returns:
Agent details
- Return type:
- async delete(**options)[source]¶
Delete this agent. This action is irreversible.
- Parameters:
options (
Unpack[LongRequestOptions]) – Optional request configuration- Returns:
API response acknowledging deletion
- Return type:
Agent resource class for synchronous operations.
- class runloop_api_client.sdk.agent.Agent(client, agent_id, agent_view=None)[source]¶
Wrapper around synchronous agent operations.
This class provides a Pythonic interface for interacting with agents, including retrieving agent information.
Example
>>> agent = runloop.agent.create_from_npm(name="my-agent", package_name="@runloop/example-agent") >>> info = agent.get_info() >>> print(info.name)
- get_info(**options)[source]¶
Retrieve the latest agent information.
- Parameters:
options (
Unpack[BaseRequestOptions]) – Optional request configuration- Returns:
Agent details
- Return type:
- delete(**options)[source]¶
Delete this agent. This action is irreversible.
- Parameters:
options (
Unpack[LongRequestOptions]) – Optional request configuration- Returns:
API response acknowledging deletion
- Return type: