Skip to main content

A client for interacting with endpoints of the FutureHouse crow service.

Project description

crow-client

A client for interacting with endpoints of the FutureHouse crow service.

Installation

uv pip install crow-client

Usage

The CrowClient provides simple functions to deploy and monitor your crow.

from pathlib import Path
from crow_client import CrowJob

client = CrowClient()

client.create_crow(
    path=Path("../envs/dummy_env"),
    environment="dummy_env.env.DummyEnv",
    requires_aviary_internal=False,
    environment_variables={"SAMPLE_ENV_VAR": "sample_val"},
    agent="ldp.agent.SimpleAgent",
)

# checks the status
client.get_build_status()

This client also provides functions that let you send tasks to an existing crow:

from crow_client import CrowJob

client = CrowClient()

job_data = {"name": "your-job-name", "query": "your task"}
client.create_job(job_data)

# checks the status
client.get_job()

The CrowJobClient provides an interface for managing environment states and agent interactions in the FutureHouse crow service.

from crow_client import CrowJobClient
from crow_client.models.app import Stage

client = CrowJobClient(
    environment="your_environment_name",
    agent="your_agent_id",
    auth_token="your_auth_token",
    base_uri=Stage.DEV,
    trajectory_id=None
)

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

crow_client-0.1.dev846.tar.gz (128.9 kB view details)

Uploaded Source

Built Distribution

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

crow_client-0.1.dev846-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file crow_client-0.1.dev846.tar.gz.

File metadata

  • Download URL: crow_client-0.1.dev846.tar.gz
  • Upload date:
  • Size: 128.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.29

File hashes

Hashes for crow_client-0.1.dev846.tar.gz
Algorithm Hash digest
SHA256 595bd96209b4c6068b6a40fbea1fe232877983e1d2fa07b44ce0ecc2ae7c3ff5
MD5 80f4f7abbf2a5c1c463d987babe96ad5
BLAKE2b-256 e4c4e91bb88ab68af145d45abc7b6b55c41d381f7d8c0548bcf63dbc664c2bd7

See more details on using hashes here.

File details

Details for the file crow_client-0.1.dev846-py3-none-any.whl.

File metadata

File hashes

Hashes for crow_client-0.1.dev846-py3-none-any.whl
Algorithm Hash digest
SHA256 8c8d1d08724af6090d8f057d4b653beced3e2f88d8cc05b7afe50b1193a34d90
MD5 effaf0cc5f876eefede6204c8519d46f
BLAKE2b-256 2704f00c853f11062b0f128604e4e5ae32690eaf025b9361e828ee94067e1a74

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