send_message
¶
send_message(
agent_space_id: AgentSpaceIdentifier,
execution_id: ChatExecutionId,
content: MessageContent,
*,
config_overrides: Optional[DevOpsAgentClientConfig] = None,
context: Optional[SendMessageContext] = None,
user_id: Optional[ResourceId] = None,
asset_ids: Optional[AssetIdList] = None,
model_tier: Optional[str] = None,
) -> Generator[SendMessageResponse]
Sends a chat message and streams the response for the specified agent space execution
Parameters:
-
agent_space_id(AgentSpaceIdentifier) –The agent space identifier
-
execution_id(ChatExecutionId) –The execution identifier for the chat session
-
content(MessageContent) –The user message content
-
context(Optional[SendMessageContext], default:None) –Optional context for the message
-
user_id(Optional[ResourceId], default:None) –User identifier. This field is deprecated and will be ignored — the service resolves user identity from the authenticated session.
-
asset_ids(Optional[AssetIdList], default:None) –Optional list of asset identifiers to attach to the message
-
model_tier(Optional[str], default:None) –Optional model tier selection. Valid values: smart, balanced, fast. Absent or unrecognized values default to balanced.
Raises:
-
AccessDeniedException–Access to the requested resource is denied due to insufficient permissions.
-
ConflictException–The request conflicts with the current state of the resource.
-
ContentSizeExceededException–This exception is thrown when the content size exceeds the allowed limit.
-
InternalServerException–This exception is thrown when an unexpected error occurs in the processing of a request.
-
InvalidParameterException–One or more parameters provided in the request are invalid.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The request would exceed the service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please slow down and try again.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_devops_agent/_services/dev_ops_agent.py
2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 | |