diff --git a/README.md b/README.md index a9b431e3..d69cc7d6 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ AgentPress is not a agent framework - it's a collection of lightweight, modular utilities that serve as building blocks for creating AI agents. Think of it as "shadcn/ui for AI agents" - a set of utils to copy, paste, and customize in order to quickly bootstrap your AI App / Agent. AgentPress provides Messages[] API on Steroids called "Threads", a ThreadManager with automatic Tool Execution and a simple StateManager. +- **Threads**: Simple message thread handling utilities +- **Automatic Tool**: Flexible tool definition and automatic execution +- **State Management**: Basic JSON-based state persistence +- **LLM Integration**: Provider-agnostic LLM calls via LiteLLM ## Installation & Setup @@ -17,12 +21,14 @@ agentpress init ``` This will create a `agentpress` directory with the core utilities you can customize. -## Key Components -- **Threads**: Simple message thread handling utilities -- **Automatic Tool**: Flexible tool definition and automatic execution -- **State Management**: Basic JSON-based state persistence -- **LLM Integration**: Provider-agnostic LLM calls via LiteLLM +3. If you selected the example agent during initialization: + - Creates an `agent.py` file with a web development agent example + - Creates a `tools` directory with example tools: + - `files_tool.py`: File operations (create/update files, read directory and load into state) + - `terminal_tool.py`: Terminal command execution + - Creates a `workspace` directory for the agent to work in + ## Quick Start diff --git a/agentpress/cli.py b/agentpress/cli.py index bf80d381..0cd69203 100644 --- a/agentpress/cli.py +++ b/agentpress/cli.py @@ -140,8 +140,8 @@ def init(): components_dir_path = os.path.abspath(components_dir) copy_module_files(package_dir, components_dir_path, all_files) - # Copy example if selected - if selected_example: + # Copy example only if a valid example (not None) was selected + if selected_example and selected_example in STARTER_EXAMPLES: click.echo(f"\nšŸ“ Creating {selected_example}...") copy_example_files( package_dir, @@ -153,7 +153,7 @@ def init(): click.echo("\n✨ Success! Your AgentPress project is ready.") click.echo(f"\nšŸ“ Components created in: {click.style(components_dir_path, fg='green')}") - if selected_example: + if selected_example and selected_example in STARTER_EXAMPLES: click.echo(f"šŸ“ Example agent files created in the current directory.") click.echo("\nšŸ”„ Quick start:")