Skip to main content

A platform for building and deploying AI agents with structured skills

Project description

Airtrain

A powerful platform for building and deploying AI agents with structured skills and capabilities.

Features

  • Structured Skills: Build modular AI skills with defined input/output schemas
  • OpenAI Integration: Built-in support for OpenAI's GPT models with structured outputs
  • Credential Management: Secure handling of API keys and credentials
  • Type Safety: Full type hints and Pydantic model support
  • Async Support: Both synchronous and asynchronous API implementations

Installation

pip install airtrain

Quick Start

Creating a Structured OpenAI Skill

from airtrain.core.skills import Skill
from airtrain.core.schemas import InputSchema, OutputSchema
from pydantic import BaseModel
from typing import List

# Define your response model
class PersonInfo(BaseModel):
    name: str
    age: int
    occupation: str
    skills: List[str]

# Create a skill
class OpenAIParserSkill(Skill):
    def process(self, input_data):
        # Implementation
        return parsed_response

# Use the skill
skill = OpenAIParserSkill()
result = skill.process(input_data)

Managing Credentials

from airtrain.core.credentials import OpenAICredentials
from pathlib import Path

# Load credentials
creds = OpenAICredentials(
    api_key="your-api-key",
    organization_id="optional-org-id"
)

# Save to environment
creds.load_to_env()

Documentation

For detailed documentation, visit our documentation site.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

airtrain-0.1.3.tar.gz (105.1 kB view details)

Uploaded Source

Built Distribution

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

airtrain-0.1.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file airtrain-0.1.3.tar.gz.

File metadata

  • Download URL: airtrain-0.1.3.tar.gz
  • Upload date:
  • Size: 105.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for airtrain-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ad7449a6ff31b2893ace7add516b99601890ed682e3b5bf4f56d10991cfe5562
MD5 1ac90407aa85d2380c3872870e7aec3e
BLAKE2b-256 096e64eeb0c8904023031613ad22f1185c6a6f0cd98f85c20e4e30f1104af9ec

See more details on using hashes here.

File details

Details for the file airtrain-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: airtrain-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for airtrain-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 428cce4f3cc2b6832ced4186fcbf3a9b760d38711616ec2237055164d3412ff1
MD5 bdca8e8b8bc03234eb4f2a808756ce3f
BLAKE2b-256 45b313fbde03036f025645ff948bc03c33cf9d3c6bd31c85e5992aec160780c9

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