send_message
async
¶
send_message(
agent_space_id: AgentSpaceIdentifier,
execution_id: ChatExecutionId,
content: MessageContent,
*,
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
context: Optional[SendMessageContext] = None,
user_id: Optional[ResourceId] = None,
asset_ids: Optional[AssetIdList] = None,
model_tier: Optional[str] = None,
) -> AsyncGenerator[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/async_dev_ops_agent.py
2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 | |