mirror of https://github.com/kortix-ai/suna.git
wip
This commit is contained in:
parent
46f60e8b57
commit
1e42e639b0
|
@ -1,4 +1,4 @@
|
|||
# AgentPress: LLM Messages[] API on Steroids called "Threads" with easy Tool Definition & Tool Execution
|
||||
# AgentPress: LLM Messages[] API on Steroids called "Threads" with automatic Tool Execution and simple state management.
|
||||
|
||||
AgentPress is a lightweight, powerful utility for kickstarting your LLM App or AI Agent. It provides a simple way to manage message threads, execute LLM calls, and automatically handle tool interactions.
|
||||
|
||||
|
@ -7,6 +7,8 @@ AgentPress is a lightweight, powerful utility for kickstarting your LLM App or A
|
|||
- **Thread Management**: Easily create, update, and manage message threads.
|
||||
- **Automatic Tool Execution**: Define tools as Python classes and have them automatically called by the LLM.
|
||||
- **Flexible LLM Integration**: Uses LiteLLM under the hood, allowing easy switching between different LLM providers.
|
||||
- **State Management**: JSON-based state persistence for storing information, tool data, and runtime state.
|
||||
|
||||
|
||||
## Quick Start
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
{"messages": [{"role": "user", "content": "Please create a file with a random name with the content 'Hello, world!'"}, {"role": "assistant", "content": "", "tool_calls": [{"id": "call_NllUgRoFVHDhwFtuFcyZtbeQ", "type": "function", "function": {"name": "create_file", "arguments": "{\"file_path\":\"random_file_4812.txt\",\"content\":\"Hello, world!\"}"}}]}, {"role": "tool", "tool_call_id": "call_NllUgRoFVHDhwFtuFcyZtbeQ", "name": "create_file", "content": "ToolResult(success=True, output=\"File 'random_file_4812.txt' created successfully.\")"}, {"role": "user", "content": "CREATE MORE RANDOM FILES WITH RANDOM CONTENTS. JSUT CREATE IT \u2013 NO QUESTINS PLEASE.'"}, {"role": "assistant", "content": "", "tool_calls": [{"id": "call_HKp4nWYTRDSkVHivYTsHywL2", "type": "function", "function": {"name": "create_file", "arguments": "{\"file_path\": \"random_file_6573.txt\", \"content\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"}"}}, {"id": "call_cJaBUWK5ybYgReV29niQb6hf", "type": "function", "function": {"name": "create_file", "arguments": "{\"file_path\": \"random_file_2910.txt\", \"content\": \"The quick brown fox jumps over the lazy dog.\"}"}}, {"id": "call_2WFuVQoDrkF3ayX6fMSlbJpn", "type": "function", "function": {"name": "create_file", "arguments": "{\"file_path\": \"random_file_8347.txt\", \"content\": \"To be, or not to be, that is the question.\"}"}}]}, {"role": "tool", "tool_call_id": "call_HKp4nWYTRDSkVHivYTsHywL2", "name": "create_file", "content": "ToolResult(success=True, output=\"File 'random_file_6573.txt' created successfully.\")"}, {"role": "tool", "tool_call_id": "call_cJaBUWK5ybYgReV29niQb6hf", "name": "create_file", "content": "ToolResult(success=True, output=\"File 'random_file_2910.txt' created successfully.\")"}, {"role": "tool", "tool_call_id": "call_2WFuVQoDrkF3ayX6fMSlbJpn", "name": "create_file", "content": "ToolResult(success=True, output=\"File 'random_file_8347.txt' created successfully.\")"}, {"role": "user", "content": "CREATE MORE RANDOM FILES WITH RANDOM CONTENTS. JSUT CREATE IT \u2013 NO QUESTINS PLEASE.'"}, {"role": "assistant", "content": "", "tool_calls": [{"id": "call_DjuN5efYZ9OcS6Z7Mz51wRdO", "type": "function", "function": {"name": "create_file", "arguments": "{\"file_path\": \"random_file_5021.txt\", \"content\": \"In the beginning God created the heaven and the earth.\"}"}}, {"id": "call_VWbUUI8yseHYELnYwkPW49xy", "type": "function", "function": {"name": "create_file", "arguments": "{\"file_path\": \"random_file_9384.txt\", \"content\": \"All human beings are born free and equal in dignity and rights.\"}"}}, {"id": "call_z6MV5G5YLX33YEq43rA5kwLt", "type": "function", "function": {"name": "create_file", "arguments": "{\"file_path\": \"random_file_1726.txt\", \"content\": \"The only thing we have to fear is fear itself.\"}"}}]}, {"role": "tool", "tool_call_id": "call_DjuN5efYZ9OcS6Z7Mz51wRdO", "name": "create_file", "content": "ToolResult(success=True, output=\"File 'random_file_5021.txt' created successfully.\")"}, {"role": "tool", "tool_call_id": "call_VWbUUI8yseHYELnYwkPW49xy", "name": "create_file", "content": "ToolResult(success=True, output=\"File 'random_file_9384.txt' created successfully.\")"}, {"role": "tool", "tool_call_id": "call_z6MV5G5YLX33YEq43rA5kwLt", "name": "create_file", "content": "ToolResult(success=True, output=\"File 'random_file_1726.txt' created successfully.\")"}, {"role": "user", "content": "CREATE MORE RANDOM FILES WITH RANDOM CONTENTS. JSUT CREATE IT \u2013 NO QUESTINS PLEASE.'"}]}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue