agentinit-cli 0.3.0__tar.gz → 0.3.2__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.
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/PKG-INFO +2 -2
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/cli.py +6 -5
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/generator.py +9 -2
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/pyproject.toml +2 -2
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/README.md +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/__init__.py +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/autogen/agents/base_agent.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/autogen/main.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/autogen/requirements.txt.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/autogen/tools/sample_tool.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/common/.env.example.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/common/Dockerfile.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/common/README.md.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/common/config.yaml.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/common/pyproject.toml.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/crewai/agents/base_agent.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/crewai/main.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/crewai/requirements.txt.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/crewai/tools/sample_tool.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/google_adk/agents/base_agent.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/google_adk/main.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/google_adk/requirements.txt.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/google_adk/tools/sample_tool.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/langgraph/agents/base_agent.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/langgraph/main.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/langgraph/requirements.txt.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/langgraph/tools/sample_tool.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/openai_agents/agents/base_agent.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/openai_agents/main.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/openai_agents/requirements.txt.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/openai_agents/tools/sample_tool.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/smolagents/agents/base_agent.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/smolagents/main.py.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/smolagents/requirements.txt.j2 +0 -0
- {agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/smolagents/tools/sample_tool.py.j2 +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentinit-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A CLI tool to scaffold production-ready LLM agent projects
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: llm,agents,scaffolding,langgraph,crewai,autogen,google-adk,cli
|
|
7
7
|
Author: Swapnil Bhattacharya
|
|
8
|
-
Author-email:
|
|
8
|
+
Author-email: swapnil.bhat17@outlook.com
|
|
9
9
|
Requires-Python: >=3.10,<4.0
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
@@ -13,12 +13,13 @@ PACKAGE_MANAGERS = ["pip", "uv"]
|
|
|
13
13
|
API_URL = "https://agentinit-api.onrender.com/analyze"
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
def get_smart_structure(description: str, framework: str) -> dict | None:
|
|
16
|
+
def get_smart_structure(description: str, framework: str, llm: str) -> dict | None:
|
|
17
17
|
try:
|
|
18
|
+
console.print(" [dim]Waking up the API, this may take up to 60 seconds on first run...[/dim]")
|
|
18
19
|
response = requests.post(
|
|
19
20
|
API_URL,
|
|
20
|
-
json={"description": description, "framework": framework},
|
|
21
|
-
timeout=
|
|
21
|
+
json={"description": description, "framework": framework, "llm": llm},
|
|
22
|
+
timeout=90,
|
|
22
23
|
)
|
|
23
24
|
if response.status_code == 200:
|
|
24
25
|
return response.json()
|
|
@@ -71,7 +72,7 @@ def create(project_name):
|
|
|
71
72
|
smart_structure = None
|
|
72
73
|
if description and description.strip():
|
|
73
74
|
console.print("\n [dim]Analyzing project description...[/dim]")
|
|
74
|
-
smart_structure = get_smart_structure(description.strip(), framework)
|
|
75
|
+
smart_structure = get_smart_structure(description.strip(), framework, llm)
|
|
75
76
|
if smart_structure:
|
|
76
77
|
console.print(" [green]Smart structure generated![/green]")
|
|
77
78
|
else:
|
|
@@ -131,4 +132,4 @@ def list_frameworks():
|
|
|
131
132
|
for fw, llm in rows:
|
|
132
133
|
table.add_row(fw, llm)
|
|
133
134
|
|
|
134
|
-
console.print(table)
|
|
135
|
+
console.print(table)
|
|
@@ -76,8 +76,12 @@ def generate_project(
|
|
|
76
76
|
write_file(project_path / output_file, template.render(**context))
|
|
77
77
|
|
|
78
78
|
if package_manager == "pip":
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
if smart_structure and smart_structure.get("requirements"):
|
|
80
|
+
reqs_content = "\n".join(smart_structure["requirements"]) + "\n"
|
|
81
|
+
write_file(project_path / "requirements.txt", reqs_content)
|
|
82
|
+
else:
|
|
83
|
+
template = fw_env.get_template("requirements.txt.j2")
|
|
84
|
+
write_file(project_path / "requirements.txt", template.render(**context))
|
|
81
85
|
else:
|
|
82
86
|
common_env = Environment(loader=FileSystemLoader(str(TEMPLATES_DIR / "common")))
|
|
83
87
|
template = common_env.get_template("pyproject.toml.j2")
|
|
@@ -104,6 +108,9 @@ def generate_project(
|
|
|
104
108
|
for item in smart_structure.get("utils", []):
|
|
105
109
|
write_stub(project_path / "utils" / f"{item}.py", item, "util")
|
|
106
110
|
|
|
111
|
+
for item in smart_structure.get("services", []):
|
|
112
|
+
write_stub(project_path / "services" / f"{item}.py", item, "service")
|
|
113
|
+
|
|
107
114
|
for test in smart_structure.get("tests", []):
|
|
108
115
|
write_stub(project_path / "tests" / f"{test}.py", test, "test")
|
|
109
116
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "agentinit-cli"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.2"
|
|
4
4
|
description = "A CLI tool to scaffold production-ready LLM agent projects"
|
|
5
|
-
authors = ["Swapnil Bhattacharya <
|
|
5
|
+
authors = ["Swapnil Bhattacharya <swapnil.bhat17@outlook.com>"]
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
license = "MIT"
|
|
8
8
|
homepage = "https://github.com/NorthCommits/agentinit"
|
|
File without changes
|
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/autogen/agents/base_agent.py.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/autogen/tools/sample_tool.py.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/crewai/agents/base_agent.py.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/crewai/tools/sample_tool.py.j2
RENAMED
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/google_adk/agents/base_agent.py.j2
RENAMED
|
File without changes
|
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/google_adk/requirements.txt.j2
RENAMED
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/google_adk/tools/sample_tool.py.j2
RENAMED
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/langgraph/agents/base_agent.py.j2
RENAMED
|
File without changes
|
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/langgraph/requirements.txt.j2
RENAMED
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/langgraph/tools/sample_tool.py.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/openai_agents/requirements.txt.j2
RENAMED
|
File without changes
|
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/smolagents/agents/base_agent.py.j2
RENAMED
|
File without changes
|
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/smolagents/requirements.txt.j2
RENAMED
|
File without changes
|
{agentinit_cli-0.3.0 → agentinit_cli-0.3.2}/agentinit/templates/smolagents/tools/sample_tool.py.j2
RENAMED
|
File without changes
|