1342
1342
% % <<"inputText">> => string(),
1343
1343
% % <<"instruction">> := string(),
1344
1344
% % <<"knowledgeBases">> => list(knowledge_base()()),
1345
- % % <<"promptOverrideConfiguration">> => prompt_override_configuration()
1345
+ % % <<"promptOverrideConfiguration">> => prompt_override_configuration(),
1346
+ % % <<"streamingConfigurations">> => streaming_configurations()
1346
1347
% % }
1347
1348
-type invoke_inline_agent_request () :: #{binary () => any ()}.
1348
1349
@@ -1921,11 +1922,10 @@ get_agent_memory(Client, AgentAliasId, AgentId, MemoryId, MemoryType, QueryMap,
1921
1922
request (Client , get , Path , Query_ , Headers , undefined , Options , SuccessStatusCode ).
1922
1923
1923
1924
% % @doc
1924
- % % The CLI doesn't support streaming operations in Amazon Bedrock,
1925
- % % including `InvokeAgent'.
1926
1925
% %
1927
- % % Sends a prompt for the agent to process and respond to. Note the following
1928
- % % fields for the request:
1926
+ % % Sends a prompt for the agent to process and respond to.
1927
+ % %
1928
+ % % Note the following fields for the request:
1929
1929
% %
1930
1930
% % To continue the same conversation with an agent, use the same
1931
1931
% % `sessionId' value in the request.
@@ -1951,8 +1951,11 @@ get_agent_memory(Client, AgentAliasId, AgentId, MemoryId, MemoryType, QueryMap,
1951
1951
% % session or prompt or, if you configured an action group to return control,
1952
1952
% % results from invocation of the action group.
1953
1953
% %
1954
- % % The response is returned in the `bytes' field of the `chunk'
1955
- % % object.
1954
+ % % The response contains both chunk and trace attributes.
1955
+ % %
1956
+ % % The final response is returned in the `bytes' field of the `chunk'
1957
+ % % object. The `InvokeAgent' returns one chunk for the entire
1958
+ % % interaction.
1956
1959
% %
1957
1960
% % The `attribution' object contains citations for parts of the response.
1958
1961
% %
@@ -2083,9 +2086,6 @@ invoke_flow(Client, FlowAliasIdentifier, FlowIdentifier, Input0, Options0) ->
2083
2086
% % The agent instructions will not be honored if your agent has only one
2084
2087
% % knowledge base, uses default prompts, has no action group, and user input
2085
2088
% % is disabled.
2086
- % %
2087
- % % The CLI doesn't support streaming operations in Amazon Bedrock,
2088
- % % including `InvokeInlineAgent'.
2089
2089
-spec invoke_inline_agent (aws_client :aws_client (), binary () | list (), invoke_inline_agent_request ()) ->
2090
2090
{ok , invoke_inline_agent_response (), tuple ()} |
2091
2091
{error , any ()} |
0 commit comments