Catalog PyPI
Back to packageRELEASE DETAILS

1.1.0

PyPI

agent-protocol-client

Agent Communication Protocol Client

Published2 Jan 2024
Direct dependencies4
Transitive dependenciesNot calculated

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.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
urllib3
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7,<4.0",
  "evaluation": "NOT_EVALUATED"
}
urllib3 (>=1.25.3,<2.0.0)runtime
aiohttp
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7,<4.0",
  "evaluation": "NOT_EVALUATED"
}
aiohttp (>=3.8.4,<4.0.0)runtime
pydantic
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7,<4.0",
  "evaluation": "NOT_EVALUATED"
}
pydantic (>=1.10.5,<2.0.0)runtime
python-dateutil
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7,<4.0",
  "evaluation": "NOT_EVALUATED"
}
python-dateutil (>=2.8.2,<3.0.0)runtime

Distribution files

2 collected
agent_protocol_client-1.1.0-py3-none-any.whl

bdist_wheel · 49.54 KB · Python py3

Source file
agent_protocol_client-1.1.0.tar.gz

sdist · 26.58 KB · Python source

Source file

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_version:69cbc1295e9b04e6fcd8e95ac016901036cb17a6b6bfd80bc61b249f1141fb30

Other collected versions

View all collected versions →