Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AgentTask

import type { AgentTask } from "https://googleapis.deno.dev/v1/batch:v1.ts";

TODO(b/182501497) The message needs to be redefined when the Agent API server updates data in storage per the backend design.

interface AgentTask {
agentTaskSpec?: AgentTaskSpec;
intendedState?:
| "INTENDED_STATE_UNSPECIFIED"
| "ASSIGNED"
| "CANCELLED"
| "DELETED";
reachedBarrier?: bigint;
spec?: TaskSpec;
status?: TaskStatus;
task?: string;
taskSource?: "TASK_SOURCE_UNSPECIFIED" | "BATCH_INTERNAL" | "USER";
}

§Properties

§
agentTaskSpec?: AgentTaskSpec
[src]

AgentTaskSpec is the taskSpec representation between Agent and CLH communication. This field will replace the TaskSpec field above in future to have a better separation between user-facaing API and internal API.

§
intendedState?: "INTENDED_STATE_UNSPECIFIED" | "ASSIGNED" | "CANCELLED" | "DELETED"
[src]

The intended state of the task.

§
reachedBarrier?: bigint
[src]

The highest barrier reached by all tasks in the task's TaskGroup.

§

Task Spec. This field will be replaced by agent_task_spec below in future.

§

Task status.

§
task?: string
[src]

Task name.

§
taskSource?: "TASK_SOURCE_UNSPECIFIED" | "BATCH_INTERNAL" | "USER"
[src]

TaskSource represents the source of the task.