Class ProjectsResource.LocationsResource.AppsResource.SessionsResource
The "sessions" collection of methods.
Inherited Members
Namespace: Google.Apis.CustomerEngagementSuite.v1
Assembly: Google.Apis.CustomerEngagementSuite.v1.dll
Syntax
public class ProjectsResource.LocationsResource.AppsResource.SessionsResource
Constructors
SessionsResource(IClientService)
Constructs a new resource.
Declaration
public SessionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
GenerateChatToken(GenerateChatTokenRequest, string)
Generates a session scoped token for chat widget to authenticate with Session APIs.
Declaration
public virtual ProjectsResource.LocationsResource.AppsResource.SessionsResource.GenerateChatTokenRequest GenerateChatToken(GenerateChatTokenRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GenerateChatTokenRequest | body | The body of the request. |
| string | name | Required. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session} |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AppsResource.SessionsResource.GenerateChatTokenRequest |
RunSession(RunSessionRequest, string)
Initiates a single-turn interaction with the CES agent within a session.
Declaration
public virtual ProjectsResource.LocationsResource.AppsResource.SessionsResource.RunSessionRequest RunSession(RunSessionRequest body, string session)
Parameters
| Type | Name | Description |
|---|---|---|
| RunSessionRequest | body | The body of the request. |
| string | session | Required. The unique identifier of the session. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AppsResource.SessionsResource.RunSessionRequest |
StreamRunSession(RunSessionRequest, string)
Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver incremental results and partial responses as they are generated. By default, complete responses (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are available. To enable streaming individual text chunks directly from the model, set enable_text_streaming to true.
Declaration
public virtual ProjectsResource.LocationsResource.AppsResource.SessionsResource.StreamRunSessionRequest StreamRunSession(RunSessionRequest body, string session)
Parameters
| Type | Name | Description |
|---|---|---|
| RunSessionRequest | body | The body of the request. |
| string | session | Required. The unique identifier of the session. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AppsResource.SessionsResource.StreamRunSessionRequest |