Skip to main content

YAAgents Python client — Agentic REST Profile v0.3

Project description

yaagents-client

Python client for the YAAgents Agentic REST Profile v0.3.

Supports-YAAgents-Profile: v0.3

Install

pip install yaagents-client==0.3.0

Quickstart

from yaagents_client import YaAgentsClient

with YaAgentsClient(
    base_url="https://api.example.com",
    token="<bearer-token>",
    tenant_id="<tenant-id>",
) as client:
    response = client.campaigns("camp-123").optimizations.create(
        {"goal": "ctr", "budget": 1000}
    )
    print(response.status_code, response.json())

Headers

Every request carries:

Header Value
Authorization Bearer <token>
X-Tenant-ID value passed to constructor
X-Correlation-ID auto-generated UUID v4 (overridable per call)

Resources

Accessor HTTP Path
campaigns(id).optimizations.create(body) POST /campaigns/{id}/optimizations
campaigns(id).assets.generate(body) POST /campaigns/{id}/assets:generate

Source: https://github.com/ai-mpathyminds/yaagents-client-python

Community docs: https://github.com/ai-mpathyminds/yaagents

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yaagents_client-0.4.0.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yaagents_client-0.4.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file yaagents_client-0.4.0.tar.gz.

File metadata

  • Download URL: yaagents_client-0.4.0.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yaagents_client-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c8362dd1545e825ce685aa3d5b88c7333bedea17ea7b78921ff0208847a3d7f0
MD5 2a11c30563ea178fb0fbe2294e82ee6f
BLAKE2b-256 eadd8ae6f72f4b3b250bd5c84de9d1ad05773430c809d333eb682ec35c5fc059

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaagents_client-0.4.0.tar.gz:

Publisher: pypi-publish.yml on ai-mpathyminds/yaagents-client-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yaagents_client-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yaagents_client-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae69adec3029a3269ac2d4e37c8793df9011e2c7aacf6b5c45149f81d32cfa42
MD5 747cc95208bda2f62fd73e333fed15bb
BLAKE2b-256 60ecda9f6fdf4dc6deb8dc2cf6c95a81e7cc66c5baab72bc9f06eb3cbd461491

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaagents_client-0.4.0-py3-none-any.whl:

Publisher: pypi-publish.yml on ai-mpathyminds/yaagents-client-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page