import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateActRequest, CreateActResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateActCommand}. */ export interface CreateActCommandInput extends CreateActRequest { } /** * @public * * The output of {@link CreateActCommand}. */ export interface CreateActCommandOutput extends CreateActResponse, __MetadataBearer { } declare const CreateActCommand_base: { new (input: CreateActCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateActCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a new AI task (act) within a session that can interact with tools and perform specific actions.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { NovaActClient, CreateActCommand } from "@aws-sdk/client-nova-act"; // ES Modules import * // const { NovaActClient, CreateActCommand } = require("@aws-sdk/client-nova-act"); // CommonJS import * // import type { NovaActClientConfig } from "@aws-sdk/client-nova-act"; * const config = {}; // type is NovaActClientConfig * const client = new NovaActClient(config); * const input = { // CreateActRequest * workflowDefinitionName: "STRING_VALUE", // required * workflowRunId: "STRING_VALUE", // required * sessionId: "STRING_VALUE", // required * task: "STRING_VALUE", // required * toolSpecs: [ // ToolSpecs * { // ToolSpec * name: "STRING_VALUE", // required * description: "STRING_VALUE", // required * inputSchema: { // ToolInputSchema Union: only one key present * json: "DOCUMENT_VALUE", * }, * }, * ], * clientToken: "STRING_VALUE", * }; * const command = new CreateActCommand(input); * const response = await client.send(command); * // { // CreateActResponse * // actId: "STRING_VALUE", // required * // status: "RUNNING" || "PENDING_CLIENT_ACTION" || "PENDING_HUMAN_ACTION" || "SUCCEEDED" || "FAILED" || "TIMED_OUT", // required * // }; * * ``` * * @param CreateActCommandInput - {@link CreateActCommandInput} * @returns {@link CreateActCommandOutput} * @see {@link CreateActCommandInput} for command's `input` shape. * @see {@link CreateActCommandOutput} for command's `response` shape. * @see {@link NovaActClientResolvedConfig | config} for NovaActClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have sufficient permissions to perform this action.

* * @throws {@link ConflictException} (client fault) *

The request could not be completed due to a conflict with the current state of the resource.

* * @throws {@link InternalServerException} (server fault) *

An internal server error occurred. Please try again later.

* * @throws {@link ResourceNotFoundException} (client fault) *

The requested resource was not found.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

The request would exceed a service quota limit.

* * @throws {@link ThrottlingException} (client fault) *

The request was throttled due to too many requests. Please try again later.

* * @throws {@link ValidationException} (client fault) *

The input parameters for the request are invalid.

* * @throws {@link NovaActServiceException} *

Base exception class for all service exceptions from NovaAct service.

* * * @public */ export declare class CreateActCommand extends CreateActCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateActRequest; output: CreateActResponse; }; sdk: { input: CreateActCommandInput; output: CreateActCommandOutput; }; }; }