airtrain 0.0.1__py3-none-any.whl → 0.1.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of airtrain might be problematic. Click here for more details.
@@ -0,0 +1,106 @@
|
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: airtrain
|
3
|
+
Version: 0.1.0
|
4
|
+
Summary: A platform for building and deploying AI agents with structured skills
|
5
|
+
Home-page: https://github.com/rosaboyle/airtrain.dev
|
6
|
+
Author: Dheeraj Pai
|
7
|
+
Author-email: helloworldcmu@gmail.com
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
9
|
+
Classifier: Intended Audience :: Developers
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
11
|
+
Classifier: Operating System :: OS Independent
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
16
|
+
Requires-Python: >=3.8
|
17
|
+
Description-Content-Type: text/markdown
|
18
|
+
Requires-Dist: pydantic>=2.0.0
|
19
|
+
Requires-Dist: openai>=1.0.0
|
20
|
+
Requires-Dist: python-dotenv>=0.19.0
|
21
|
+
Requires-Dist: PyYAML>=5.4.1
|
22
|
+
Requires-Dist: firebase-admin>=5.0.0
|
23
|
+
Requires-Dist: loguru>=0.5.3
|
24
|
+
Dynamic: author
|
25
|
+
Dynamic: author-email
|
26
|
+
Dynamic: classifier
|
27
|
+
Dynamic: description
|
28
|
+
Dynamic: description-content-type
|
29
|
+
Dynamic: home-page
|
30
|
+
Dynamic: requires-dist
|
31
|
+
Dynamic: requires-python
|
32
|
+
Dynamic: summary
|
33
|
+
|
34
|
+
# Airtrain
|
35
|
+
|
36
|
+
A powerful platform for building and deploying AI agents with structured skills and capabilities.
|
37
|
+
|
38
|
+
## Features
|
39
|
+
|
40
|
+
- **Structured Skills**: Build modular AI skills with defined input/output schemas
|
41
|
+
- **OpenAI Integration**: Built-in support for OpenAI's GPT models with structured outputs
|
42
|
+
- **Credential Management**: Secure handling of API keys and credentials
|
43
|
+
- **Type Safety**: Full type hints and Pydantic model support
|
44
|
+
- **Async Support**: Both synchronous and asynchronous API implementations
|
45
|
+
|
46
|
+
## Installation
|
47
|
+
|
48
|
+
```bash
|
49
|
+
pip install airtrain
|
50
|
+
```
|
51
|
+
|
52
|
+
## Quick Start
|
53
|
+
|
54
|
+
### Creating a Structured OpenAI Skill
|
55
|
+
|
56
|
+
```python
|
57
|
+
from airtrain.core.skills import Skill
|
58
|
+
from airtrain.core.schemas import InputSchema, OutputSchema
|
59
|
+
from pydantic import BaseModel
|
60
|
+
from typing import List
|
61
|
+
|
62
|
+
# Define your response model
|
63
|
+
class PersonInfo(BaseModel):
|
64
|
+
name: str
|
65
|
+
age: int
|
66
|
+
occupation: str
|
67
|
+
skills: List[str]
|
68
|
+
|
69
|
+
# Create a skill
|
70
|
+
class OpenAIParserSkill(Skill):
|
71
|
+
def process(self, input_data):
|
72
|
+
# Implementation
|
73
|
+
return parsed_response
|
74
|
+
|
75
|
+
# Use the skill
|
76
|
+
skill = OpenAIParserSkill()
|
77
|
+
result = skill.process(input_data)
|
78
|
+
```
|
79
|
+
|
80
|
+
### Managing Credentials
|
81
|
+
|
82
|
+
```python
|
83
|
+
from airtrain.core.credentials import OpenAICredentials
|
84
|
+
from pathlib import Path
|
85
|
+
|
86
|
+
# Load credentials
|
87
|
+
creds = OpenAICredentials(
|
88
|
+
api_key="your-api-key",
|
89
|
+
organization_id="optional-org-id"
|
90
|
+
)
|
91
|
+
|
92
|
+
# Save to environment
|
93
|
+
creds.load_to_env()
|
94
|
+
```
|
95
|
+
|
96
|
+
## Documentation
|
97
|
+
|
98
|
+
For detailed documentation, visit [our documentation site](https://airtrain.readthedocs.io/).
|
99
|
+
|
100
|
+
## Contributing
|
101
|
+
|
102
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
103
|
+
|
104
|
+
## License
|
105
|
+
|
106
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
@@ -0,0 +1,4 @@
|
|
1
|
+
airtrain-0.1.0.dist-info/METADATA,sha256=2wLV8r1XTMiq6YUJpSCANE5A2KbXlfDUjSAxHOwq8iw,2792
|
2
|
+
airtrain-0.1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
3
|
+
airtrain-0.1.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
4
|
+
airtrain-0.1.0.dist-info/RECORD,,
|
@@ -1,15 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: airtrain
|
3
|
-
Version: 0.0.1
|
4
|
-
Summary: RLEF
|
5
|
-
Home-page: https://github.com/dheerajmpai/airtrain
|
6
|
-
Author: Dheeraj Pai
|
7
|
-
Author-email: dheerajmpaicmu@gmail.com
|
8
|
-
License: MIT
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
11
|
-
Classifier: Operating System :: OS Independent
|
12
|
-
Description-Content-Type: text/markdown
|
13
|
-
Requires-Dist: gym
|
14
|
-
|
15
|
-
RLEF
|
airtrain-0.0.1.dist-info/RECORD
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
airtrain-0.0.1.dist-info/METADATA,sha256=MmtIfm3y9cWI6mWHlX9b-KS8-7uI4LZDoHy3eDpwENI,400
|
2
|
-
airtrain-0.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
3
|
-
airtrain-0.0.1.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
4
|
-
airtrain-0.0.1.dist-info/RECORD,,
|
File without changes
|