Current collected state Current
Observed since 20 Oct, 23:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
agent-protocol-client
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.
| Package / target | Requirement | Relationship |
|---|---|---|
urllib3Environment{
"extras": "",
"marker": null,
"requires_python": ">=3.7,<4.0",
"evaluation": "NOT_EVALUATED"
} | urllib3 (>=1.25.3,<2.0.0) | runtime |
aiohttpEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.7,<4.0",
"evaluation": "NOT_EVALUATED"
} | aiohttp (>=3.8.4,<4.0.0) | runtime |
pydanticEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.7,<4.0",
"evaluation": "NOT_EVALUATED"
} | pydantic (>=1.10.5,<2.0.0) | runtime |
python-dateutilEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.7,<4.0",
"evaluation": "NOT_EVALUATED"
} | python-dateutil (>=2.8.2,<3.0.0) | runtime |
bdist_wheel · 49.54 KB · Python py3
sdist · 26.58 KB · Python source
Shared repository data · GitHub
Observed since 20 Oct, 23:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:69cbc1295e9b04e6fcd8e95ac016901036cb17a6b6bfd80bc61b249f1141fb30