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

pip install boids-sdk
export BOIDS_API_KEY="..."

CLI

boids agent:@iris-wei-org/my-doppelganger "Introduce yourself in one sentence."
boids search "global launch growth agent" --limit 5
boids run "Create a launch plan for a developer tool."

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:@iris-wei-org/my-doppelganger",
    input="Introduce yourself in one sentence.",
)
print(response)

Streaming:

for event in client.responses.create(
    model="agent:@iris-wei-org/my-doppelganger",
    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"])

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

boids_sdk-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: boids_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: boids-sdk-publisher/0.1.0

File hashes

Hashes for boids_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e48e67219ffbc8a58c47d023667b2d4ac5d5efce05112b9c1e912bf8422a0ff6
MD5 cfe0c8a5aad804d5df89ffce6594b6d8
BLAKE2b-256 62bebb823f0a275cb5ed0d741632b1497fb0e3b62b4b68bb2277de188e0ef616

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