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.2.tar.gz (104.9 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.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airtrain-0.1.2.tar.gz
  • Upload date:
  • Size: 104.9 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.2.tar.gz
Algorithm Hash digest
SHA256 96184e12aaae55a2ab31e40d163a35cccb5c389a51459ec747f618367bbcb990
MD5 1779f8fba0b62dde2bb7f8aff029ed50
BLAKE2b-256 b3c7f5451f57f814bd807194ee11f6127735a8410bafda3705198625cb857b48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airtrain-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efc5c03237fb7bc39624e68a9ba46eb2b1f0915551163f8446a0a6c25367b7af
MD5 ebcadc36d06753112f5a9626ae35f32f
BLAKE2b-256 7df0b0d6de606aab64c134721cd005d4a46c4ef9025669abf9b744fafa8a38eb

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