mirror of https://github.com/kortix-ai/suna.git
wip
This commit is contained in:
parent
4104882a21
commit
b09de90e4c
16
README.md
16
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
|
||||
|
||||
|
|
|
@ -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:")
|
||||
|
|
Loading…
Reference in New Issue