mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-21 21:31:12 +02:00
Update README.md
This commit is contained in:
parent
45593ae7d9
commit
ceaef81a5b
1 changed files with 46 additions and 6 deletions
52
README.md
52
README.md
|
|
@ -35,19 +35,19 @@ Powered by OpenAI's Agents SDK, Rowboat is the fastest way to build multi-agents
|
||||||
|
|
||||||
#### Create a multi-agent assistant with tools from a single prompt
|
#### Create a multi-agent assistant with tools from a single prompt
|
||||||
|
|
||||||
[](https://www.youtube.com/watch?v=3t2Fpn6Vyds)
|
[](https://www.youtube.com/watch?v=3t2Fpn6Vyds)
|
||||||
|
|
||||||
#### Add MCP servers
|
#### Add MCP servers
|
||||||
|
|
||||||
[](https://www.youtube.com/watch?v=EbkIPCTyD58)
|
[](https://www.youtube.com/watch?v=EbkIPCTyD58)
|
||||||
|
|
||||||
#### Use Firecrawl's MCP server and build a quick url scraping agent
|
#### Use Firecrawl's MCP server and build a quick url scraping agent
|
||||||
|
|
||||||
[](https://www.youtube.com/watch?v=KeXLKh4tUYU)
|
[](https://www.youtube.com/watch?v=KeXLKh4tUYU)
|
||||||
|
|
||||||
#### Improve agents with feedback
|
#### Improve agents with feedback
|
||||||
|
|
||||||
[](https://www.youtube.com/watch?v=uoCEQtOe7eE)
|
[](https://www.youtube.com/watch?v=uoCEQtOe7eE)
|
||||||
|
|
||||||
|
|
||||||
## Integrate with Rowboat agents
|
## Integrate with Rowboat agents
|
||||||
|
|
@ -56,11 +56,51 @@ There are 2 ways to integrate with the agents you create in Rowboat
|
||||||
|
|
||||||
1. HTTP API
|
1. HTTP API
|
||||||
- You can use the API directly at [http://localhost:3000/api/v1/](http://localhost:3000/api/v1/)
|
- You can use the API directly at [http://localhost:3000/api/v1/](http://localhost:3000/api/v1/)
|
||||||
- See [API Docs](https://docs.rowboatlabs.com/using_the_api/) for more details
|
- See [API Docs](https://docs.rowboatlabs.com/using_the_api/) for details
|
||||||
|
```bash
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
2. Python SDK
|
2. Python SDK
|
||||||
- You can use the included Python SDK to interact with the Agents
|
- You can use the included Python SDK to interact with the Agents
|
||||||
- See [SDK Docs](https://docs.rowboatlabs.com/using_the_sdk/) for more details
|
- See [SDK Docs](https://docs.rowboatlabs.com/using_the_sdk/) for details
|
||||||
|
```python
|
||||||
|
from rowboat import Client
|
||||||
|
from rowboat.schema import UserMessage, SystemMessage
|
||||||
|
|
||||||
|
# Initialize the client
|
||||||
|
client = Client(
|
||||||
|
host="<HOST>",
|
||||||
|
project_id="<PROJECT_ID>",
|
||||||
|
api_key="<API_KEY>"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Create messages
|
||||||
|
messages = [
|
||||||
|
SystemMessage(role='system', content="You are a helpful assistant"),
|
||||||
|
UserMessage(role='user', content="Hello, how are you?")
|
||||||
|
]
|
||||||
|
|
||||||
|
# Get response
|
||||||
|
response_messages, state = client.chat(messages=messages)
|
||||||
|
print(response_messages[-1].content)
|
||||||
|
|
||||||
|
# For subsequent messages, include previous messages and state
|
||||||
|
messages.extend(response_messages)
|
||||||
|
messages.append(UserMessage(role='user', content="What's your name?"))
|
||||||
|
response_messages, state = client.chat(messages=messages, state=state)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Refer to [Docs](https://docs.rowboatlabs.com/) to learn how to start building agents with Rowboat.
|
Refer to [Docs](https://docs.rowboatlabs.com/) to learn how to start building agents with Rowboat.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue