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.
§
status?: TaskStatus
[src]Task status.