Skip to content

Commit 40c72f7

Browse files
authored
Merge pull request #312 from tcdent/framework-aliases
Alias 'crew' -> 'crewai' on `agentstack init`
2 parents ba02438 + 316e9bd commit 40c72f7

File tree

5 files changed

+624
-564
lines changed

5 files changed

+624
-564
lines changed

TODO.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## Wizard
2+
3+
4+
## LangGraph
5+
6+
[ ] Bug: empty `bind_tools` list on a new Agent throws an error
7+
8+
[ ] Reliably handle adding two Tasks and two Agent via CLI
9+
10+
[ ] Create a new template demonstrating graph usage
11+
12+
13+
"Top of Funnel"
14+
15+
[] Hello World!
16+
17+
[] Catch common exception types from the user's first `agentstack run` and provide a helpful error message.
18+
- In order to avoid importing all the sub-libraries, use string matching to determine what the exception is.
19+
20+
[] Allow the user to select from a list of tools if a <tool_name> is not provided to `agenstack add tools`
21+
22+
[ ] Handle all setup tasks that `agentstack init` needs.
23+
- Wrap the output in a `curses` window to show progress.
24+
- Prevent the user from having to scroll back up to find the help text from the `init` command.
25+
- Use `uv` for all package management.
26+
27+
[] Modify agentops init to indicate which tools are being used.
28+
- Possibly with an `agentstack.get_tags()` method that automatically sets relevant tags.
29+
30+
[] If there is only one agent in the project, treat it as a default.
31+
- New tasks should be assigned to it.
32+
33+
[] Wrap tools in the framework's protocol before including them in the project.
34+
- Access tools with `agentstack.tools['tool_name']` which dynamically generates the wrapped tool.
35+
- This will be a breaking change with the 0.3 release.

agentstack/cli/init.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ def init_project(
124124

125125
if framework is None:
126126
framework = template_data.framework
127+
128+
if framework in frameworks.ALIASED_FRAMEWORKS:
129+
framework = frameworks.ALIASED_FRAMEWORKS[framework]
130+
127131
if not framework in frameworks.SUPPORTED_FRAMEWORKS:
128132
raise Exception(f"Framework '{framework}' is not supported.")
129133
log.info(f"Using framework: {framework}")

agentstack/frameworks/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
OPENAI_SWARM,
2828
LLAMAINDEX,
2929
]
30+
ALIASED_FRAMEWORKS = {
31+
'crew': CREWAI,
32+
}
3033
DEFAULT_FRAMEWORK = CREWAI
3134

3235

0 commit comments

Comments
 (0)