Skip to main content

vibe client

Project description

Vibe Python SDK

A Python client for the Vibe API, enabling seamless interaction with Vibe agents and experiments.

Installation

pip install vibe_client

Features

  • Easy-to-use client for interacting with Vibe API
  • Comprehensive data models for structuring requests and responses
  • Async support for efficient API communication
  • Built-in error handling and serialization/deserialization

Quick Start

import asyncio
from vibe_client.models import QueryAgentInput, ObservationValueBox
from vibe_client.client import VibeClient

async def main():
    # Initialize the client with your API key
    client = VibeClient(api_key="your_api_key_here")
    
    # Create observations
    observations = ObservationValueBox([
        [1, 1.2, 3.0],
        [1, 1.2, 3.0],
        [1, 1.2, 3.0],
        [1, 1.2, 3.0],
        [1, 1.2, 3.0]
    ])
    
    # Set up query input
    query_input = QueryAgentInput(
        experiment_id="your_experiment_id",
        observations=observations
    )
    
    # Execute the query
    try:
        response = await client.query_agent(input=query_input)
        print("Query response:", response)
        print("Actions:", response.actions)
    except Exception as e:
        print(f"Error executing query_agent: {e}")

if __name__ == "__main__":
    asyncio.run(main())

Documentation

Full documentation is available in the /docs directory. To build the documentation:

cd docs
make html

The built documentation will be available in docs/build/html/index.html.

Project Structure

vibe/
├── src/vibe_client/            # Main package source code
│   ├── __init__.py      # Package initialization
│   ├── client.py        # API client implementation
│   ├── config.py        # Configuration utilities
│   ├── models.py        # Data models
│   ├── serialize.py     # Serialization utilities
│   ├── deserialize.py   # Deserialization utilities
│   └── _private/        # Private implementation details
├── tests/               # Test suite
├── docs/                # Documentation
│   ├── client/          # Client API documentation
│   └── models/          # Models documentation
└── build/               # Build artifacts

Development

Setting Up Development Environment

  1. Clone the repository
  2. Install development dependencies:
    pip install -e ".[dev]"
    
  3. Run tests:
    pytest tests/
    

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

vibe_client-0.1.2.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

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

vibe_client-0.1.2-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vibe_client-0.1.2.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for vibe_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 582c551a4b5e5d1614707595619c71dda9aa5536eac87188cb73855e5ac320d5
MD5 04cd94ca2c1314b8c5c336e16ce177a1
BLAKE2b-256 04773a43097cb986126b2fa12813d1313a30d47c1ae26aa89978ffe79394579e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vibe_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for vibe_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9bda27c71b614bf596ee1d1b29a2786a6d5e9f2447e652f5a7d2b1a58904f9e8
MD5 472bce5351085287424014e0165e0fee
BLAKE2b-256 fe412ec17fa31093f011158edc2f06e85e5982d0a1ccfbded5dc0f10f7f77e2f

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