Skip to main content

Python SDK and CLI for the Boids Responses API

Project description

boids-sdk

Python SDK and CLI for the Boids API.

Install

curl -fsSL https://raw.githubusercontent.com/NevaMind-AI/boids-sdk/main/install.sh | bash
export BOIDS_API_KEY="..."

The installer tries npm first, then falls back to pipx or pip. Use pip install boids-sdk when you only need the Python SDK dependency.

CLI

boids agent:@boids-team/jarvis "Introduce yourself in one sentence."
boids search "global launch growth agent" --limit 5
boids run "Create a launch plan for a developer tool."
boids agent:@boids-team/jarvis "Remember my name is Ada." --show-response-id
boids agent:@boids-team/jarvis "What is my name?" --prev resp_...

boids run searches /v1/market/search, selects the first returned agent, and then sends your prompt to /v1/responses.

SDK

from boids import BoidsClient

client = BoidsClient()

response = client.responses.create(
    model="agent:@boids-team/jarvis",
    input="Introduce yourself in one sentence.",
)
print(response)

Chat complete:

response = client.chat.complete(
    model="agent:@boids-team/jarvis",
    messages=[{"role": "user", "content": "Introduce yourself in one sentence."}],
)
print(response)

Streaming:

for event in client.responses.create(
    model="agent:@boids-team/jarvis",
    input="Introduce yourself in one sentence.",
    stream=True,
):
    print(event.data)

Market search:

agents = client.market.search(query="global launch growth agent", limit=5)
print(agents["data"]["items"][0]["model_name"])

Conversation context:

first = client.responses.create(
    model="agent:@boids-team/jarvis",
    input="Remember my name is Ada.",
)

second = client.responses.create(
    model="agent:@boids-team/jarvis",
    input="What is my name?",
    previous_response_id=first["id"],
)

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

boids_sdk-0.1.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

boids_sdk-0.1.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file boids_sdk-0.1.2.tar.gz.

File metadata

  • Download URL: boids_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for boids_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 304b588442c26ad5f0e957a44ae4798e4fa375fea2f16d130e4e2f52191d22e9
MD5 68605e9c86a5ed4ee12f8c637a5ec132
BLAKE2b-256 13168a058e66b2ecfaed7a967153cc1643a4aaf46b31c1ddb28918166665d9ba

See more details on using hashes here.

File details

Details for the file boids_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: boids_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for boids_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f3f06184725e8a63e5923309d618d666aca7e01e4da92cd2a046d54e4d2523
MD5 c3d7334453d101b2ca9d9f8d9342e6ff
BLAKE2b-256 a6d2b1eccd5d8933bf250966f9d7d210bf124cd6ad7eee87df9aa3dfa9595428

See more details on using hashes here.

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