Sends a message to an agent.
HTTP request
POST https://ces.googleapis.com/v1/{tenant=projects/*/locations/*/apps/*}/message:send
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
tenant |
Optional. Tenant ID, provided as a path parameter. |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "message": { object ( |
| Fields | |
|---|---|
message |
Required. The message to send to the agent. |
configuration |
Configuration for the send request. |
metadata |
A flexible key-value map for passing additional context or parameters. |
Response body
Represents the response for the message.send method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field payload. The payload of the response. payload can be only one of the following: |
|
task |
The task created or updated by the message. |
message |
A message from the agent. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/ces
For more information, see the Authentication Overview.