airtrain 0.1.32__tar.gz → 0.1.35__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. {airtrain-0.1.32 → airtrain-0.1.35}/PKG-INFO +2 -1
  2. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/__init__.py +1 -1
  3. airtrain-0.1.35/airtrain/cli/main.py +110 -0
  4. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain.egg-info/PKG-INFO +2 -1
  5. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain.egg-info/requires.txt +1 -0
  6. airtrain-0.1.35/pyproject.toml +45 -0
  7. airtrain-0.1.32/airtrain/cli/main.py +0 -53
  8. airtrain-0.1.32/pyproject.toml +0 -87
  9. {airtrain-0.1.32 → airtrain-0.1.35}/MANIFEST.in +0 -0
  10. {airtrain-0.1.32 → airtrain-0.1.35}/README.md +0 -0
  11. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/cli/__init__.py +0 -0
  12. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/contrib/__init__.py +0 -0
  13. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/contrib/travel/__init__.py +0 -0
  14. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/contrib/travel/agents.py +0 -0
  15. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/contrib/travel/models.py +0 -0
  16. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/core/__init__.py +0 -0
  17. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/core/credentials.py +0 -0
  18. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/core/schemas.py +0 -0
  19. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/core/skills.py +0 -0
  20. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/__init__.py +0 -0
  21. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/anthropic/__init__.py +0 -0
  22. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/anthropic/credentials.py +0 -0
  23. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/anthropic/skills.py +0 -0
  24. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/aws/__init__.py +0 -0
  25. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/aws/credentials.py +0 -0
  26. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/aws/skills.py +0 -0
  27. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/cerebras/__init__.py +0 -0
  28. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/cerebras/credentials.py +0 -0
  29. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/cerebras/skills.py +0 -0
  30. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/__init__.py +0 -0
  31. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/completion_skills.py +0 -0
  32. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/conversation_manager.py +0 -0
  33. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/credentials.py +0 -0
  34. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/models.py +0 -0
  35. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/requests_skills.py +0 -0
  36. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/skills.py +0 -0
  37. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/structured_completion_skills.py +0 -0
  38. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/structured_requests_skills.py +0 -0
  39. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/fireworks/structured_skills.py +0 -0
  40. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/google/__init__.py +0 -0
  41. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/google/credentials.py +0 -0
  42. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/google/skills.py +0 -0
  43. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/groq/__init__.py +0 -0
  44. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/groq/credentials.py +0 -0
  45. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/groq/skills.py +0 -0
  46. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/ollama/__init__.py +0 -0
  47. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/ollama/credentials.py +0 -0
  48. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/ollama/skills.py +0 -0
  49. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/openai/__init__.py +0 -0
  50. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/openai/chinese_assistant.py +0 -0
  51. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/openai/credentials.py +0 -0
  52. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/openai/models_config.py +0 -0
  53. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/openai/skills.py +0 -0
  54. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/sambanova/__init__.py +0 -0
  55. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/sambanova/credentials.py +0 -0
  56. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/sambanova/skills.py +0 -0
  57. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/__init__.py +0 -0
  58. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/audio_models_config.py +0 -0
  59. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/credentials.py +0 -0
  60. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/embedding_models_config.py +0 -0
  61. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/image_models_config.py +0 -0
  62. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/image_skill.py +0 -0
  63. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/models.py +0 -0
  64. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/models_config.py +0 -0
  65. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/rerank_models_config.py +0 -0
  66. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/rerank_skill.py +0 -0
  67. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/schemas.py +0 -0
  68. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/skills.py +0 -0
  69. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain/integrations/together/vision_models_config.py +0 -0
  70. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain.egg-info/SOURCES.txt +0 -0
  71. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain.egg-info/dependency_links.txt +0 -0
  72. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain.egg-info/entry_points.txt +0 -0
  73. {airtrain-0.1.32 → airtrain-0.1.35}/airtrain.egg-info/top_level.txt +0 -0
  74. {airtrain-0.1.32 → airtrain-0.1.35}/changelog.md +0 -0
  75. {airtrain-0.1.32 → airtrain-0.1.35}/requirements.txt +0 -0
  76. {airtrain-0.1.32 → airtrain-0.1.35}/setup.cfg +0 -0
  77. {airtrain-0.1.32 → airtrain-0.1.35}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: airtrain
3
- Version: 0.1.32
3
+ Version: 0.1.35
4
4
  Summary: A platform for building and deploying AI agents with structured skills
5
5
  Home-page: https://github.com/rosaboyle/airtrain.dev
6
6
  Author: Dheeraj Pai
@@ -48,6 +48,7 @@ Requires-Dist: build>=0.10.0; extra == "dev"
48
48
  Requires-Dist: types-PyYAML>=6.0; extra == "dev"
49
49
  Requires-Dist: types-requests>=2.31.0; extra == "dev"
50
50
  Requires-Dist: types-Markdown>=3.5.0; extra == "dev"
51
+ Requires-Dist: toml>=0.10.2; extra == "dev"
51
52
  Dynamic: author
52
53
  Dynamic: home-page
53
54
  Dynamic: requires-python
@@ -1,6 +1,6 @@
1
1
  """Airtrain - A platform for building and deploying AI agents with structured skills"""
2
2
 
3
- __version__ = "0.1.33"
3
+ __version__ = "0.1.35"
4
4
 
5
5
  # Core imports
6
6
  from .core.skills import Skill, ProcessingError
@@ -0,0 +1,110 @@
1
+ import click
2
+ from typing import Optional
3
+ from airtrain.integrations.openai.skills import OpenAIChatSkill, OpenAIInput
4
+ from airtrain.integrations.anthropic.skills import AnthropicChatSkill, AnthropicInput
5
+ import os
6
+ from dotenv import load_dotenv
7
+ import sys
8
+
9
+ # Load environment variables
10
+ load_dotenv()
11
+
12
+
13
+ def initialize_chat(provider: str = "openai"):
14
+ """Initialize chat skill based on provider"""
15
+ if provider == "openai":
16
+ return OpenAIChatSkill()
17
+ elif provider == "anthropic":
18
+ return AnthropicChatSkill()
19
+ else:
20
+ raise ValueError(f"Unsupported provider: {provider}")
21
+
22
+
23
+ @click.group()
24
+ def cli():
25
+ """Airtrain CLI - Your AI Agent Building Assistant"""
26
+ pass
27
+
28
+
29
+ @cli.command()
30
+ @click.option(
31
+ "--provider",
32
+ type=click.Choice(["openai", "anthropic"]),
33
+ default="openai",
34
+ help="The AI provider to use",
35
+ )
36
+ @click.option(
37
+ "--temperature",
38
+ type=float,
39
+ default=0.7,
40
+ help="Temperature for response generation (0.0-1.0)",
41
+ )
42
+ @click.option(
43
+ "--system-prompt",
44
+ type=str,
45
+ default="You are a helpful AI assistant that helps users build their own AI agents. Be helpful and provide clear explanations.",
46
+ help="System prompt to guide the model",
47
+ )
48
+ def chat(provider: str, temperature: float, system_prompt: str):
49
+ """Start an interactive chat session with Airtrain"""
50
+ try:
51
+ skill = initialize_chat(provider)
52
+
53
+ click.echo(f"\nWelcome to Airtrain! Using {provider.upper()} as the provider.")
54
+ click.echo("Type 'exit' to end the conversation.")
55
+ click.echo("Type 'clear' to clear the conversation history.\n")
56
+
57
+ conversation_history = []
58
+
59
+ while True:
60
+ user_input = click.prompt("You", type=str)
61
+
62
+ if user_input.lower() == "exit":
63
+ click.echo("\nGoodbye! Have a great day!")
64
+ break
65
+
66
+ if user_input.lower() == "clear":
67
+ conversation_history = []
68
+ click.echo("\nConversation history cleared!")
69
+ continue
70
+
71
+ try:
72
+ if provider == "openai":
73
+ input_data = OpenAIInput(
74
+ user_input=user_input,
75
+ system_prompt=system_prompt,
76
+ conversation_history=conversation_history,
77
+ model="gpt-4o",
78
+ temperature=temperature,
79
+ )
80
+ else:
81
+ input_data = AnthropicInput(
82
+ user_input=user_input,
83
+ system_prompt=system_prompt,
84
+ conversation_history=conversation_history,
85
+ model="claude-3-opus-20240229",
86
+ temperature=temperature,
87
+ )
88
+
89
+ result = skill.process(input_data)
90
+
91
+ # Update conversation history
92
+ conversation_history.extend(
93
+ [
94
+ {"role": "user", "content": user_input},
95
+ {"role": "assistant", "content": result.response},
96
+ ]
97
+ )
98
+
99
+ click.echo(f"\nAirtrain: {result.response}\n")
100
+
101
+ except Exception as e:
102
+ click.echo(f"\nError: {str(e)}\n")
103
+
104
+ except Exception as e:
105
+ click.echo(f"Failed to initialize chat: {str(e)}")
106
+ sys.exit(1)
107
+
108
+
109
+ if __name__ == "__main__":
110
+ cli()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: airtrain
3
- Version: 0.1.32
3
+ Version: 0.1.35
4
4
  Summary: A platform for building and deploying AI agents with structured skills
5
5
  Home-page: https://github.com/rosaboyle/airtrain.dev
6
6
  Author: Dheeraj Pai
@@ -48,6 +48,7 @@ Requires-Dist: build>=0.10.0; extra == "dev"
48
48
  Requires-Dist: types-PyYAML>=6.0; extra == "dev"
49
49
  Requires-Dist: types-requests>=2.31.0; extra == "dev"
50
50
  Requires-Dist: types-Markdown>=3.5.0; extra == "dev"
51
+ Requires-Dist: toml>=0.10.2; extra == "dev"
51
52
  Dynamic: author
52
53
  Dynamic: home-page
53
54
  Dynamic: requires-python
@@ -30,3 +30,4 @@ build>=0.10.0
30
30
  types-PyYAML>=6.0
31
31
  types-requests>=2.31.0
32
32
  types-Markdown>=3.5.0
33
+ toml>=0.10.2
@@ -0,0 +1,45 @@
1
+ [build-system]
2
+ requires = [ "setuptools>=61.0",]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "airtrain"
7
+ version = "0.1.35"
8
+ description = "A platform for building and deploying AI agents with structured skills"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10",]
12
+ dependencies = [ "pydantic>=2.10.6", "openai>=1.60.1", "python-dotenv>=1.0.1", "PyYAML>=6.0.2", "firebase-admin>=6.6.0", "loguru>=0.7.3", "requests>=2.32.3", "boto3>=1.36.6", "together>=1.3.13", "anthropic>=0.45.0", "groq>=0.15.0", "cerebras-cloud-sdk>=1.19.0", "google-genai>=1.0.0", "fireworks-ai>=0.15.12", "google-generativeai>=0.8.4", "click>=8.0.0", "rich>=13.3.1", "prompt-toolkit>=3.0.36", "colorama>=0.4.6", "typer>=0.9.0",]
13
+ [[project.authors]]
14
+ name = "Dheeraj Pai"
15
+ email = "helloworldcmu@gmail.com"
16
+
17
+ [project.optional-dependencies]
18
+ dev = [ "black>=24.10.0", "flake8>=7.1.1", "isort>=5.13.0", "mypy>=1.9.0", "pytest>=7.0.0", "twine>=4.0.0", "build>=0.10.0", "types-PyYAML>=6.0", "types-requests>=2.31.0", "types-Markdown>=3.5.0", "toml>=0.10.2",]
19
+
20
+ [project.urls]
21
+ Homepage = "https://github.com/rosaboyle/airtrain.dev"
22
+ Documentation = "https://docs.airtrain.dev/"
23
+
24
+ [project.scripts]
25
+ airtrain = "airtrain.cli.main:main"
26
+
27
+ [tool.black]
28
+ line-length = 88
29
+ target-version = [ "py38",]
30
+ include = "\\.pyi?$"
31
+
32
+ [tool.isort]
33
+ profile = "black"
34
+ multi_line_output = 3
35
+ include_trailing_comma = true
36
+ force_grid_wrap = 0
37
+ use_parentheses = true
38
+ line_length = 88
39
+
40
+ [tool.mypy]
41
+ python_version = "3.8"
42
+ warn_return_any = true
43
+ warn_unused_configs = true
44
+ disallow_untyped_defs = true
45
+ check_untyped_defs = true
@@ -1,53 +0,0 @@
1
- import click
2
- from airtrain.integrations.openai.skills import OpenAIChatSkill, OpenAIInput
3
- import os
4
- from dotenv import load_dotenv
5
-
6
- load_dotenv()
7
-
8
-
9
- def initialize_chat():
10
- return OpenAIChatSkill()
11
-
12
-
13
- @click.group()
14
- def cli():
15
- """Airtrain CLI - Your AI Agent Building Assistant"""
16
- pass
17
-
18
-
19
- @cli.command()
20
- def chat():
21
- """Start an interactive chat session with Airtrain"""
22
- skill = initialize_chat()
23
- click.echo("Welcome to Airtrain! I'm here to help you build your AI Agent.")
24
- click.echo("Type 'exit' to end the conversation.\n")
25
-
26
- while True:
27
- user_input = click.prompt("You", type=str)
28
-
29
- if user_input.lower() == "exit":
30
- click.echo("\nGoodbye! Have a great day!")
31
- break
32
-
33
- try:
34
- input_data = OpenAIInput(
35
- user_input=user_input,
36
- system_prompt="You are an AI assistant that helps users build their own AI agents. Be helpful and provide clear explanations.",
37
- model="gpt-4o",
38
- temperature=0.7,
39
- )
40
-
41
- result = skill.process(input_data)
42
- click.echo(f"\nAirtrain: {result.response}\n")
43
-
44
- except Exception as e:
45
- click.echo(f"\nError: {str(e)}\n")
46
-
47
-
48
- def main():
49
- cli()
50
-
51
-
52
- if __name__ == "__main__":
53
- main()
@@ -1,87 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools>=61.0"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "airtrain"
7
- version = "0.1.32"
8
- authors = [
9
- { name="Dheeraj Pai", email="helloworldcmu@gmail.com" },
10
- ]
11
- description = "A platform for building and deploying AI agents with structured skills"
12
- readme = "README.md"
13
- requires-python = ">=3.8"
14
- classifiers = [
15
- "Development Status :: 3 - Alpha",
16
- "Intended Audience :: Developers",
17
- "License :: OSI Approved :: MIT License",
18
- "Operating System :: OS Independent",
19
- "Programming Language :: Python :: 3",
20
- "Programming Language :: Python :: 3.8",
21
- "Programming Language :: Python :: 3.9",
22
- "Programming Language :: Python :: 3.10",
23
- ]
24
-
25
- dependencies = [
26
- "pydantic>=2.10.6",
27
- "openai>=1.60.1",
28
- "python-dotenv>=1.0.1",
29
- "PyYAML>=6.0.2",
30
- "firebase-admin>=6.6.0",
31
- "loguru>=0.7.3",
32
- "requests>=2.32.3",
33
- "boto3>=1.36.6",
34
- "together>=1.3.13",
35
- "anthropic>=0.45.0",
36
- "groq>=0.15.0",
37
- "cerebras-cloud-sdk>=1.19.0",
38
- "google-genai>=1.0.0",
39
- "fireworks-ai>=0.15.12",
40
- "google-generativeai>=0.8.4",
41
- "click>=8.0.0",
42
- "rich>=13.3.1",
43
- "prompt-toolkit>=3.0.36",
44
- "colorama>=0.4.6",
45
- "typer>=0.9.0",
46
- ]
47
-
48
- [project.optional-dependencies]
49
- dev = [
50
- "black>=24.10.0",
51
- "flake8>=7.1.1",
52
- "isort>=5.13.0",
53
- "mypy>=1.9.0",
54
- "pytest>=7.0.0",
55
- "twine>=4.0.0",
56
- "build>=0.10.0",
57
- "types-PyYAML>=6.0",
58
- "types-requests>=2.31.0",
59
- "types-Markdown>=3.5.0",
60
- ]
61
-
62
- [project.urls]
63
- "Homepage" = "https://github.com/rosaboyle/airtrain.dev"
64
- "Documentation" = "https://docs.airtrain.dev/"
65
-
66
- [tool.black]
67
- line-length = 88
68
- target-version = ['py38']
69
- include = '\.pyi?$'
70
-
71
- [tool.isort]
72
- profile = "black"
73
- multi_line_output = 3
74
- include_trailing_comma = true
75
- force_grid_wrap = 0
76
- use_parentheses = true
77
- line_length = 88
78
-
79
- [tool.mypy]
80
- python_version = "3.8"
81
- warn_return_any = true
82
- warn_unused_configs = true
83
- disallow_untyped_defs = true
84
- check_untyped_defs = true
85
-
86
- [project.scripts]
87
- airtrain = "airtrain.cli.main:main"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes