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.3.0.tar.gz (19.0 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.3.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yaagents_client-0.3.0.tar.gz
  • Upload date:
  • Size: 19.0 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.3.0.tar.gz
Algorithm Hash digest
SHA256 f01ad66f43f9cd44a1691a9fd03de9b26c928a49b64f647f0e8008fdf4ee34a7
MD5 3788e8faa7621dc720f46dcc1b31dc40
BLAKE2b-256 61047980753736195d21cb392b7fb47d46949dae533d91777355c4e77825cec3

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaagents_client-0.3.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.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yaagents_client-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2095b0caa8e1b3103696c2111885117d5ea144dff5ddbb696d12bb21291f1d79
MD5 833e29c16007840110ee2f87e1f57935
BLAKE2b-256 4e2983ff978abaf3333f9cd7a4f3c9f3ecb30c7ae7886adf21d333d362882a67

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaagents_client-0.3.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