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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crow_client-0.1.dev858.tar.gz.
File metadata
- Download URL: crow_client-0.1.dev858.tar.gz
- Upload date:
- Size: 135.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55751ad1f9a24ea4cbdba05e21f8cec34f6a957447446674cc7d8fe93436e552
|
|
| MD5 |
3b6f81bbd607fce15d2ce2b414a4a649
|
|
| BLAKE2b-256 |
844756630dd5cabe1d5c873f436e9fb6758e16c2cd02824c97c6d3d5efd5d76d
|
File details
Details for the file crow_client-0.1.dev858-py3-none-any.whl.
File metadata
- Download URL: crow_client-0.1.dev858-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c68342c9bca538dab442c3fcc509081d2ebec6cb9f58efcfb57b0350e675bd3
|
|
| MD5 |
90428a93b9277c3a0bbf8af772792ed9
|
|
| BLAKE2b-256 |
d66d0277f182e5801e62308eac75f7cc6b7ba4761bf46bc235cdc1ff17d98520
|