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.0.tar.gz (104.3 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.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airtrain-0.1.0.tar.gz
  • Upload date:
  • Size: 104.3 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.0.tar.gz
Algorithm Hash digest
SHA256 fd148ed2f9817191eb83c9c0c80064ad902228060693227d1f80c23ca98d276b
MD5 5ecb245c2f3d7412c17026b55da035f6
BLAKE2b-256 1579c275c78fd3c62f01e534041ca4b80974a9fbb26c4768e3966649dd431e26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airtrain-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4eeee229dd7e6fa7e4e95b95a45e66a7bba3cd3bd386d55b390743e268522688
MD5 465adcf258768ed7eab043d61d6167be
BLAKE2b-256 a7905d4fcaaa6ed0a16d066c7e14f2a73bfe9bf1ad93331dabad422ea4bf179d

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