Current collected state Current
Observed since 20 Oct, 23:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Agent Communication Protocol Client
pip install agent-protocol-client
In your own code, to use this library to connect and interact with agent-protocol-client, you can run the following:
import time
import agent_protocol_client
from agent_protocol_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://0.0.0.0:8000
# See configuration.py for a list of all supported configuration parameters.
configuration = agent_protocol_client.Configuration(
host = "http://0.0.0.0:8000"
)
# Enter a context with an instance of the API client
async with agent_protocol_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = agent_protocol_client.AgentApi(api_client)
task_request_body = agent_protocol_client.TaskRequestBody() # TaskRequestBody | (optional)
try:
# Creates a task for the agent.
api_response = await api_instance.create_agent_task(task_request_body=task_request_body)
print("The response of AgentApi->create_agent_task:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AgentApi->create_agent_task: %s\n" % e)
All URIs are relative to http://0.0.0.0:8000
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AgentApi | create_agent_task | POST /ap/v1/agent/tasks | Creates a task for the agent. |
| AgentApi | download_agent_task_artifact | GET /ap/v1/agent/tasks/{task_id}/artifacts/{artifact_id} | Download a specified artifact. |
| AgentApi | execute_agent_task_step | POST /ap/v1/agent/tasks/{task_id}/steps | Execute a step in the specified agent task. |
| AgentApi | get_agent_task | GET /ap/v1/agent/tasks/{task_id} | Get details about a specified agent task. |
| AgentApi | get_agent_task_step | GET /ap/v1/agent/tasks/{task_id}/steps/{step_id} | Get details about a specified task step. |
| AgentApi | list_agent_task_artifacts | GET /ap/v1/agent/tasks/{task_id}/artifacts | List all artifacts that have been created for the given task. |
| AgentApi | list_agent_task_steps | GET /ap/v1/agent/tasks/{task_id}/steps | List all steps for the specified task. |
| AgentApi | list_agent_tasks | GET /ap/v1/agent/tasks | List all tasks that have been created for the agent. |
| AgentApi | upload_agent_task_artifacts | POST /ap/v1/agent/tasks/{task_id}/artifacts | Upload an artifact for the specified task. |
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.1.0 | 2 Jan 2024 | 4 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 23:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7d3e3db4fd825a1cd5ac86ce23db5ffc68b4b0544377c63685015f11959bf4cd