rowboatlabs / rowboat
- воскресенье, 27 апреля 2025 г. в 00:00:01
AI-powered multi-agent builder
Powered by OpenAI's Agents SDK, Rowboat is the fastest way to build multi-agents!
Set your OpenAI key
export OPENAI_API_KEY=your-openai-api-key
Clone the repository and start Rowboat docker
git clone git@github.com:rowboatlabs/rowboat.git
cd rowboat
docker-compose up --build
Access the app at http://localhost:3000.
There are 2 ways to integrate with the agents you create in Rowboat
HTTP API
curl --location 'http://localhost:3000/api/v1/<PROJECT_ID>/chat' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data '{
"messages": [
{
"role": "user",
"content": "tell me the weather in london in metric units"
}
],
"state": null
}'
Python SDK You can use the included Python SDK to interact with the Agents
pip install rowboat
See SDK Docs for details. Here is a quick example:
from rowboat import Client, StatefulChat
from rowboat.schema import UserMessage, SystemMessage
# Initialize the client
client = Client(
host="http://localhost:3000",
project_id="<PROJECT_ID>",
api_key="<API_KEY>"
)
# Create a stateful chat session (recommended)
chat = StatefulChat(client)
response = chat.run("What's the weather in London?")
print(response)
# Or use the low-level client API
messages = [
SystemMessage(role='system', content="You are a helpful assistant"),
UserMessage(role='user', content="Hello, how are you?")
]
# Get response
response = client.chat(messages=messages)
print(response.messages[-1].content)
Refer to Docs to learn how to start building agents with Rowboat.