Class ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource
The "tasks" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.DiscoveryEngine.v1
Assembly: Google.Apis.DiscoveryEngine.v1.dll
Syntax
public class ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource
Constructors
TasksResource(IClientService)
Constructs a new resource.
Declaration
public TasksResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
PushNotificationConfigs
Gets the PushNotificationConfigs resource.
Declaration
public virtual ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource.PushNotificationConfigsResource PushNotificationConfigs { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource.PushNotificationConfigsResource |
Methods
Cancel(A2aV1CancelTaskRequest, string, string)
Cancel a task from the agent. If supported one should expect no more task updates for the task.
Declaration
public virtual ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource.CancelRequest Cancel(A2aV1CancelTaskRequest body, string tenant, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| A2aV1CancelTaskRequest | body | The body of the request. |
| string | tenant | Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release. |
| string | name | The resource name of the task to cancel. Format: tasks/{task_id} |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource.CancelRequest |
Get(string, string)
Get the current state of a task from the agent.
Declaration
public virtual ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource.GetRequest Get(string tenant, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tenant | Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release. |
| string | name | Required. The resource name of the task. Format: tasks/{task_id} |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource.GetRequest |
Subscribe(string, string)
TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.
Declaration
public virtual ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource.SubscribeRequest Subscribe(string tenant, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tenant | Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release. |
| string | name | The resource name of the task to subscribe to. Format: tasks/{task_id} |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.AssistantsResource.AgentsResource.TasksResource.SubscribeRequest |