Skip to content

Alias 'crew' -> 'crewai' on agentstack init #312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## Wizard


## LangGraph

[ ] Bug: empty `bind_tools` list on a new Agent throws an error

[ ] Reliably handle adding two Tasks and two Agent via CLI

[ ] Create a new template demonstrating graph usage


"Top of Funnel"

[√] Hello World!

[√] Catch common exception types from the user's first `agentstack run` and provide a helpful error message.
- In order to avoid importing all the sub-libraries, use string matching to determine what the exception is.

[√] Allow the user to select from a list of tools if a <tool_name> is not provided to `agenstack add tools`

[ ] Handle all setup tasks that `agentstack init` needs.
- Wrap the output in a `curses` window to show progress.
- Prevent the user from having to scroll back up to find the help text from the `init` command.
- Use `uv` for all package management.

[√] Modify agentops init to indicate which tools are being used.
- Possibly with an `agentstack.get_tags()` method that automatically sets relevant tags.

[√] If there is only one agent in the project, treat it as a default.
- New tasks should be assigned to it.

[√] Wrap tools in the framework's protocol before including them in the project.
- Access tools with `agentstack.tools['tool_name']` which dynamically generates the wrapped tool.
- This will be a breaking change with the 0.3 release.
4 changes: 4 additions & 0 deletions agentstack/cli/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ def init_project(

if framework is None:
framework = template_data.framework

if framework in frameworks.ALIASED_FRAMEWORKS:
framework = frameworks.ALIASED_FRAMEWORKS[framework]

if not framework in frameworks.SUPPORTED_FRAMEWORKS:
raise Exception(f"Framework '{framework}' is not supported.")
log.info(f"Using framework: {framework}")
Expand Down
3 changes: 3 additions & 0 deletions agentstack/frameworks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
OPENAI_SWARM,
LLAMAINDEX,
]
ALIASED_FRAMEWORKS = {
'crew': CREWAI,
}
DEFAULT_FRAMEWORK = CREWAI


Expand Down
Loading
Loading