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.1.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.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airtrain-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bd5ad18e32a37ba06d8a951643802e6f979bf501e342083b06f67d6b3edfa697
MD5 1eafb7d143319c4cdfcdb31fd6440911
BLAKE2b-256 c0d52522c3b91b809e30ddcdc94be6702db99978e844c23642f25cdc40547eb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airtrain-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2e6b641b26efdcb64d1fd8d019fca5dfb7ac1ab5dcc1e7bcd63a49b826dc122
MD5 396100e6b1a0de33a7f60d04afa12ae6
BLAKE2b-256 2f820cad15366395836cc6ebb274b8219f5199d1ccf6973a860b85b666cb0225

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