Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/deploy/cloud-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Once your agent is deployed to Cloud Run, you can interact with it via the deplo
curl -X POST -H "Authorization: Bearer $TOKEN" \
$APP_URL/apps/capital_agent/users/user_123/sessions/session_abc \
-H "Content-Type: application/json" \
-d '{"state": {"preferred_language": "English", "visit_count": 5}}'
-d '{"preferred_language": "English", "visit_count": 5}'
```

#### Run the Agent
Expand Down
2 changes: 1 addition & 1 deletion docs/deploy/gke.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ Once your agent is deployed to GKE, you can interact with it via the deployed UI
curl -X POST \
$APP_URL/apps/capital_agent/users/user_123/sessions/session_abc \
-H "Content-Type: application/json" \
-d '{"state": {"preferred_language": "English", "visit_count": 5}}'
-d '{"preferred_language": "English", "visit_count": 5}'
```

#### Run the Agent
Expand Down
12 changes: 5 additions & 7 deletions docs/get-started/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ a new session with the agent using:
```shell
curl -X POST http://localhost:8000/apps/my_sample_agent/users/u_123/sessions/s_123 \
-H "Content-Type: application/json" \
-d '{"state": {"key1": "value1", "key2": 42}}'
-d '{"key1": "value1", "key2": 42}'
```

Let's break down what's happening:
Expand All @@ -109,7 +109,7 @@ Let's break down what's happening:
can replace `my_sample_agent` with the name of your agent folder. You can
replace `u_123` with a specific user ID, and `s_123` with a specific session
ID.
* `{"state": {"key1": "value1", "key2": 42}}`: This is optional. You can use
* `{"key1": "value1", "key2": 42}`: This is optional. You can use
this to customize the agent's pre-existing state (dict) when creating the
session.

Expand Down Expand Up @@ -321,18 +321,16 @@ Creates a new session or updates an existing one. If a session with the given ID
**Request Body**
```json
{
"state": {
"key1": "value1",
"key2": 42
}
"key1": "value1",
"key2": 42
}
```

**Example Request**
```shell
curl -X POST http://localhost:8000/apps/my_sample_agent/users/u_123/sessions/s_abc \
-H "Content-Type: application/json" \
-d '{"state": {"visit_count": 5}}'
-d '{"visit_count": 5}'
```

**Example Response**
Expand Down