Catalog PyPI
PACKAGE EXPLORERView in registry

agent-protocol-client

PyPI

Agent Communication Protocol Client

Versions collected1
Direct dependencies4From release 1.1.0
Last observed20 Oct, 23:00 UTC

README

Version 1.1.0 documentation

Agent Protocol - Python Client

PyPI PyPI - Python Version PyPI - Downloads

Installation

pip install agent-protocol-client

Getting Started

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)

Documentation for API Endpoints

All URIs are relative to http://0.0.0.0:8000

ClassMethodHTTP requestDescription
AgentApicreate_agent_taskPOST /ap/v1/agent/tasksCreates a task for the agent.
AgentApidownload_agent_task_artifactGET /ap/v1/agent/tasks/{task_id}/artifacts/{artifact_id}Download a specified artifact.
AgentApiexecute_agent_task_stepPOST /ap/v1/agent/tasks/{task_id}/stepsExecute a step in the specified agent task.
AgentApiget_agent_taskGET /ap/v1/agent/tasks/{task_id}Get details about a specified agent task.
AgentApiget_agent_task_stepGET /ap/v1/agent/tasks/{task_id}/steps/{step_id}Get details about a specified task step.
AgentApilist_agent_task_artifactsGET /ap/v1/agent/tasks/{task_id}/artifactsList all artifacts that have been created for the given task.
AgentApilist_agent_task_stepsGET /ap/v1/agent/tasks/{task_id}/stepsList all steps for the specified task.
AgentApilist_agent_tasksGET /ap/v1/agent/tasksList all tasks that have been created for the agent.
AgentApiupload_agent_task_artifactsPOST /ap/v1/agent/tasks/{task_id}/artifactsUpload an artifact for the specified task.

Documentation For Models

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.1.02 Jan 20244

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
ai-engineers-foundation/agent-protocol

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:00 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7d3e3db4fd825a1cd5ac86ce23db5ffc68b4b0544377c63685015f11959bf4cd