create_act
async
¶
create_act(
workflow_definition_name: WorkflowDefinitionName,
workflow_run_id: UuidString,
session_id: UuidString,
task: Task,
*,
config_overrides: Optional[AsyncNovaActClientConfig] = None,
tool_specs: Optional[ToolSpecs] = None,
client_token: Optional[ClientToken] = None,
) -> CreateActResponse
Creates a new AI task (act) within a session that can interact with tools and perform specific actions.
Parameters:
-
workflow_definition_name(WorkflowDefinitionName) –The name of the workflow definition containing the session.
-
workflow_run_id(UuidString) –The unique identifier of the workflow run containing the session.
-
session_id(UuidString) –The unique identifier of the session to create the act in.
-
task(Task) –The task description that defines what the act should accomplish.
-
tool_specs(Optional[ToolSpecs], default:None) –A list of tool specifications that the act can invoke to complete its task.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An internal server error occurred. Please try again later.
-
ResourceNotFoundException–The requested resource was not found.
-
ServiceQuotaExceededException–The request would exceed a service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please try again later.
-
ValidationException–The input parameters for the request are invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_nova_act/_services/async_nova_act.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | |