- "smithy.api#documentation": "<note>\n <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeAgent</code>.</p>\n </note>\n <p>Sends a prompt for the agent to process and respond to. Note the following fields for the request:</p>\n <ul>\n <li>\n <p>To continue the same conversation with an agent, use the same <code>sessionId</code> value in the request.</p>\n </li>\n <li>\n <p>To activate trace enablement, turn <code>enableTrace</code> to <code>true</code>. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-events\">Trace enablement</a>.</p>\n </li>\n <li>\n <p>To stream agent responses, make sure that only orchestration prompt is enabled. Agent streaming is not supported for the following steps:\n </p>\n <ul>\n <li>\n <p>\n <code>Pre-processing</code>\n </p>\n </li>\n <li>\n <p>\n <code>Post-processing</code>\n </p>\n </li>\n <li>\n <p>Agent with 1 Knowledge base and <code>User Input</code> not enabled</p>\n </li>\n </ul>\n </li>\n <li>\n <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p>\n </li>\n <li>\n <p>In the <code>sessionState</code> object, you can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group.</p>\n </li>\n </ul>\n <p>The response is returned in the <code>bytes</code> field of the <code>chunk</code> object.</p>\n <ul>\n <li>\n <p>The <code>attribution</code> object contains citations for parts of the response.</p>\n </li>\n <li>\n <p>If you set <code>enableTrace</code> to <code>true</code> in the request, you can trace the agent's steps and reasoning process that led it to the response.</p>\n </li>\n <li>\n <p>If the action predicted was configured to return control, the response returns parameters for the action, elicited from the user, in the <code>returnControl</code> field.</p>\n </li>\n <li>\n <p>Errors are also surfaced in the response.</p>\n </li>\n </ul>",
0 commit comments