Skip to main content

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/
    

Metadata

Release files for vibe-client 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vibe-client 0.1.2
File Size Uploaded
vibe_client-0.1.2.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vibe-client 0.1.2
File Interpreter ABI Platform
vibe_client-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 28.6 kB

Release files / vibe_client-0.1.2.tar.gz

Download URL vibe_client-0.1.2.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
582c551a4b5e5d1614707595619c71dda9aa5536eac87188cb73855e5ac320d5
BLAKE2b-256 checksum
How to use checksums
04773a43097cb986126b2fa12813d1313a30d47c1ae26aa89978ffe79394579e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / vibe_client-0.1.2-py3-none-any.whl

Download URL vibe_client-0.1.2-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bda27c71b614bf596ee1d1b29a2786a6d5e9f2447e652f5a7d2b1a58904f9e8
BLAKE2b-256 checksum
How to use checksums
fe412ec17fa31093f011158edc2f06e85e5982d0a1ccfbded5dc0f10f7f77e2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page