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.5.tar.gz (137.4 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.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for airtrain-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6acb0d91f359054ea4d4e9b555f594488217ec7e62d0b8c03732022c6b6cc117
MD5 683f142fd1187b523064eb40bc5d6aff
BLAKE2b-256 37aba9af1e46e1987312ee8e8eccc7f61bb41f14c4d574d3ab7f1630d072fa34

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for airtrain-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8e6deb4452e0f5eac17cfc69e737daac56e2e4c556a8cc5d27f8cccaef375922
MD5 ee510f7c5d58ce2053a631919ffe9879
BLAKE2b-256 63733dd52220717311c67c8d433397eccc6a7ed1cdc1a634233b580a2339143b

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