mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-21 21:31:12 +02:00
commit
fab66841d8
4 changed files with 13 additions and 9 deletions
|
|
@ -74,8 +74,12 @@ There are 2 ways to integrate with the agents you create in Rowboat
|
||||||
|
|
||||||
|
|
||||||
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 details
|
```
|
||||||
|
pip install rowboat
|
||||||
|
```
|
||||||
|
|
||||||
|
See [SDK Docs](https://docs.rowboatlabs.com/using_the_sdk/) for details. Here is a quick example:
|
||||||
```python
|
```python
|
||||||
from rowboat import Client, StatefulChat
|
from rowboat import Client, StatefulChat
|
||||||
from rowboat.schema import UserMessage, SystemMessage
|
from rowboat.schema import UserMessage, SystemMessage
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rowboat"
|
name = "rowboat"
|
||||||
version = "3.0.0"
|
version = "3.1.0"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Ramnique Singh", email = "ramnique@rowboatlabs.com" },
|
{ name = "Ramnique Singh", email = "ramnique@rowboatlabs.com" },
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ class StatefulChat:
|
||||||
)
|
)
|
||||||
|
|
||||||
# Update internal state
|
# Update internal state
|
||||||
self.messages = response_data.messages
|
self.messages.extend(response_data.messages)
|
||||||
self.state = response_data.state
|
self.state = response_data.state
|
||||||
|
|
||||||
# Return only the final message content
|
# Return only the final message content
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@ services:
|
||||||
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
||||||
- MONGODB_CONNECTION_STRING=mongodb://mongo:27017/rowboat
|
- MONGODB_CONNECTION_STRING=mongodb://mongo:27017/rowboat
|
||||||
- USE_AUTH=${USE_AUTH}
|
- USE_AUTH=${USE_AUTH}
|
||||||
- AUTH0_SECRET="test"
|
- AUTH0_SECRET=test_secret
|
||||||
- AUTH0_BASE_URL="http://localhost:3000"
|
- AUTH0_BASE_URL=http://localhost:3000
|
||||||
- AUTH0_ISSUER_BASE_URL="http://localhost:3000"
|
- AUTH0_ISSUER_BASE_URL=https://test.com
|
||||||
- AUTH0_CLIENT_ID="test"
|
- AUTH0_CLIENT_ID=test
|
||||||
- AUTH0_CLIENT_SECRET="test"
|
- AUTH0_CLIENT_SECRET=test
|
||||||
- AGENTS_API_URL=http://rowboat_agents:3001
|
- AGENTS_API_URL=http://rowboat_agents:3001
|
||||||
- AGENTS_API_KEY=${AGENTS_API_KEY}
|
- AGENTS_API_KEY=${AGENTS_API_KEY}
|
||||||
- COPILOT_API_URL=http://copilot:3002
|
- COPILOT_API_URL=http://copilot:3002
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue