Skip to content

Commit 628b19b

Browse files
author
AWS
committed
Agents for Amazon Bedrock Runtime Update: bedrock agents now supports long term memory and performance configs. Invokeflow supports performance configs. RetrieveAndGenerate performance configs
1 parent bd12159 commit 628b19b

File tree

2 files changed

+104
-4
lines changed

2 files changed

+104
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Agents for Amazon Bedrock Runtime",
4+
"contributor": "",
5+
"description": "bedrock agents now supports long term memory and performance configs. Invokeflow supports performance configs. RetrieveAndGenerate performance configs"
6+
}

services/bedrockagentruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 98 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"input":{"shape":"InvokeAgentRequest"},
9292
"output":{"shape":"InvokeAgentResponse"},
9393
"errors":[
94+
{"shape":"ModelNotReadyException"},
9495
{"shape":"ConflictException"},
9596
{"shape":"ResourceNotFoundException"},
9697
{"shape":"ValidationException"},
@@ -101,7 +102,7 @@
101102
{"shape":"AccessDeniedException"},
102103
{"shape":"ServiceQuotaExceededException"}
103104
],
104-
"documentation":"<note> <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeAgent</code>.</p> </note> <p>Sends a prompt for the agent to process and respond to. Note the following fields for the request:</p> <ul> <li> <p>To continue the same conversation with an agent, use the same <code>sessionId</code> value in the request.</p> </li> <li> <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> </li> <li> <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p> </li> <li> <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> </li> </ul> <p>The response is returned in the <code>bytes</code> field of the <code>chunk</code> object.</p> <ul> <li> <p>The <code>attribution</code> object contains citations for parts of the response.</p> </li> <li> <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> </li> <li> <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> </li> <li> <p>Errors are also surfaced in the response.</p> </li> </ul>"
105+
"documentation":"<note> <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeAgent</code>.</p> </note> <p>Sends a prompt for the agent to process and respond to. Note the following fields for the request:</p> <ul> <li> <p>To continue the same conversation with an agent, use the same <code>sessionId</code> value in the request.</p> </li> <li> <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> </li> <li> <p>To stream agent responses, make sure that only orchestration prompt is enabled. Agent streaming is not supported for the following steps: </p> <ul> <li> <p> <code>Pre-processing</code> </p> </li> <li> <p> <code>Post-processing</code> </p> </li> <li> <p>Agent with 1 Knowledge base and <code>User Input</code> not enabled</p> </li> </ul> </li> <li> <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p> </li> <li> <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> </li> </ul> <p>The response is returned in the <code>bytes</code> field of the <code>chunk</code> object.</p> <ul> <li> <p>The <code>attribution</code> object contains citations for parts of the response.</p> </li> <li> <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> </li> <li> <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> </li> <li> <p>Errors are also surfaced in the response.</p> </li> </ul>"
105106
},
106107
"InvokeFlow":{
107108
"name":"InvokeFlow",
@@ -417,7 +418,7 @@
417418
},
418419
"parentActionGroupSignature":{
419420
"shape":"ActionGroupSignature",
420-
"documentation":"<p> To allow your agent to request the user for additional information when trying to complete a task, set this field to <code>AMAZON.UserInput</code>. You must leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields blank for this action group. </p> <p>To allow your agent to generate, run, and troubleshoot code when trying to complete a task, set this field to <code>AMAZON.CodeInterpreter</code>. You must leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields blank for this action group.</p> <p>During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an <a href=\"https://docs.aws.amazon.com/https:/docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html\">Observation</a> reprompting the user for more information.</p>"
421+
"documentation":"<p> To allow your agent to request the user for additional information when trying to complete a task, set this field to <code>AMAZON.UserInput</code>. You must leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields blank for this action group. </p> <p>To allow your agent to generate, run, and troubleshoot code when trying to complete a task, set this field to <code>AMAZON.CodeInterpreter</code>. You must leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields blank for this action group.</p> <p>During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html\">Observation</a> reprompting the user for more information.</p>"
421422
}
422423
},
423424
"documentation":"<p> Contains details of the inline agent's action group. </p>"
@@ -702,6 +703,16 @@
702703
"min":1,
703704
"pattern":"^(arn:aws(-[^:]+)?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$"
704705
},
706+
"BedrockModelConfigurations":{
707+
"type":"structure",
708+
"members":{
709+
"performanceConfig":{
710+
"shape":"PerformanceConfiguration",
711+
"documentation":"<p>The performance configuration for the model.</p>"
712+
}
713+
},
714+
"documentation":"<p>Settings for a model called with <a>InvokeAgent</a>.</p>"
715+
},
705716
"BedrockRerankingConfiguration":{
706717
"type":"structure",
707718
"required":["modelConfiguration"],
@@ -1012,6 +1023,12 @@
10121023
"documentation":"<p>The unique identifier of the memory.</p>",
10131024
"location":"querystring",
10141025
"locationName":"memoryId"
1026+
},
1027+
"sessionId":{
1028+
"shape":"SessionId",
1029+
"documentation":"<p>The unique session identifier of the memory.</p>",
1030+
"location":"querystring",
1031+
"locationName":"sessionId"
10151032
}
10161033
}
10171034
},
@@ -1100,6 +1117,10 @@
11001117
"shape":"InferenceConfig",
11011118
"documentation":"<p> Configuration settings for inference when using RetrieveAndGenerate to generate responses while using an external source.</p>"
11021119
},
1120+
"performanceConfig":{
1121+
"shape":"PerformanceConfiguration",
1122+
"documentation":"<p>The latency configuration for the model.</p>"
1123+
},
11031124
"promptTemplate":{
11041125
"shape":"PromptTemplate",
11051126
"documentation":"<p>Contain the textPromptTemplate string for the external source wrapper object.</p>"
@@ -1834,6 +1855,10 @@
18341855
"shape":"InferenceConfig",
18351856
"documentation":"<p> Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge base as a source. </p>"
18361857
},
1858+
"performanceConfig":{
1859+
"shape":"PerformanceConfiguration",
1860+
"documentation":"<p>The latency configuration for the model.</p>"
1861+
},
18371862
"promptTemplate":{
18381863
"shape":"PromptTemplate",
18391864
"documentation":"<p>Contains the template for the prompt that's sent to the model for response generation. Generation prompts must include the <code>$search_results$</code> variable. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html\">Use placeholder variables</a> in the user guide.</p>"
@@ -2493,6 +2518,16 @@
24932518
"event":true,
24942519
"sensitive":true
24952520
},
2521+
"InlineBedrockModelConfigurations":{
2522+
"type":"structure",
2523+
"members":{
2524+
"performanceConfig":{
2525+
"shape":"PerformanceConfiguration",
2526+
"documentation":"<p>The latency configuration for the model.</p>"
2527+
}
2528+
},
2529+
"documentation":"<p>Settings for a model called with <a>InvokeInlineAgent</a>.</p>"
2530+
},
24962531
"InlineSessionState":{
24972532
"type":"structure",
24982533
"members":{
@@ -2683,6 +2718,10 @@
26832718
"location":"uri",
26842719
"locationName":"agentId"
26852720
},
2721+
"bedrockModelConfigurations":{
2722+
"shape":"BedrockModelConfigurations",
2723+
"documentation":"<p>Model performance settings for the request.</p>"
2724+
},
26862725
"enableTrace":{
26872726
"shape":"Boolean",
26882727
"documentation":"<p>Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-events\">Trace enablement</a>.</p>"
@@ -2717,7 +2756,7 @@
27172756
},
27182757
"streamingConfigurations":{
27192758
"shape":"StreamingConfigurations",
2720-
"documentation":"<p> Specifies the configurations for streaming. </p>"
2759+
"documentation":"<p> Specifies the configurations for streaming. </p> <note> <p>To use agent streaming, you need permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action.</p> </note>"
27212760
}
27222761
}
27232762
},
@@ -2781,6 +2820,10 @@
27812820
"inputs":{
27822821
"shape":"FlowInputs",
27832822
"documentation":"<p>A list of objects, each containing information about an input into the flow.</p>"
2823+
},
2824+
"modelPerformanceConfiguration":{
2825+
"shape":"ModelPerformanceConfiguration",
2826+
"documentation":"<p>Model performance settings for the request.</p>"
27842827
}
27852828
}
27862829
},
@@ -2807,6 +2850,10 @@
28072850
"shape":"AgentActionGroups",
28082851
"documentation":"<p> A list of action groups with each action group defining the action the inline agent needs to carry out. </p>"
28092852
},
2853+
"bedrockModelConfigurations":{
2854+
"shape":"InlineBedrockModelConfigurations",
2855+
"documentation":"<p>Model settings for the request.</p>"
2856+
},
28102857
"customerEncryptionKeyArn":{
28112858
"shape":"KmsKeyArn",
28122859
"documentation":"<p> The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent. </p>"
@@ -3313,6 +3360,28 @@
33133360
"documentation":"<p>The input for the pre-processing step.</p> <ul> <li> <p>The <code>type</code> matches the agent step.</p> </li> <li> <p>The <code>text</code> contains the prompt.</p> </li> <li> <p>The <code>inferenceConfiguration</code>, <code>parserMode</code>, and <code>overrideLambda</code> values are set in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html\">PromptOverrideConfiguration</a> object that was set when the agent was created or updated.</p> </li> </ul>",
33143361
"sensitive":true
33153362
},
3363+
"ModelNotReadyException":{
3364+
"type":"structure",
3365+
"members":{
3366+
"message":{"shape":"NonBlankString"}
3367+
},
3368+
"documentation":"<p> The model specified in the request is not ready to serve inference requests. The AWS SDK will automatically retry the operation up to 5 times. For information about configuring automatic retries, see <a href=\"https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html\">Retry behavior</a> in the <i>AWS SDKs and Tools</i> reference guide. </p>",
3369+
"error":{
3370+
"httpStatusCode":424,
3371+
"senderFault":true
3372+
},
3373+
"exception":true
3374+
},
3375+
"ModelPerformanceConfiguration":{
3376+
"type":"structure",
3377+
"members":{
3378+
"performanceConfig":{
3379+
"shape":"PerformanceConfiguration",
3380+
"documentation":"<p>The latency configuration for the model.</p>"
3381+
}
3382+
},
3383+
"documentation":"<p>The performance configuration for a model called with <a>InvokeFlow</a>.</p>"
3384+
},
33163385
"Name":{
33173386
"type":"string",
33183387
"pattern":"^([0-9a-zA-Z][_-]?){1,100}$",
@@ -3498,6 +3567,10 @@
34983567
"shape":"InferenceConfig",
34993568
"documentation":"<p> Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge base as a source. </p>"
35003569
},
3570+
"performanceConfig":{
3571+
"shape":"PerformanceConfiguration",
3572+
"documentation":"<p>The latency configuration for the model.</p>"
3573+
},
35013574
"promptTemplate":{
35023575
"shape":"PromptTemplate",
35033576
"documentation":"<p>Contains the template for the prompt that's sent to the model. Orchestration prompts must include the <code>$conversation_history$</code> and <code>$output_format_instructions$</code> variables. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html\">Use placeholder variables</a> in the user guide.</p>"
@@ -3687,6 +3760,23 @@
36873760
"RETURN_CONTROL"
36883761
]
36893762
},
3763+
"PerformanceConfigLatency":{
3764+
"type":"string",
3765+
"enum":[
3766+
"standard",
3767+
"optimized"
3768+
]
3769+
},
3770+
"PerformanceConfiguration":{
3771+
"type":"structure",
3772+
"members":{
3773+
"latency":{
3774+
"shape":"PerformanceConfigLatency",
3775+
"documentation":"<p>To use a latency-optimized version of the model, set to <code>optimized</code>.</p>"
3776+
}
3777+
},
3778+
"documentation":"<p>Performance settings for a model.</p>"
3779+
},
36903780
"PostProcessingModelInvocationOutput":{
36913781
"type":"structure",
36923782
"members":{
@@ -4291,6 +4381,10 @@
42914381
"shape":"InternalServerException",
42924382
"documentation":"<p>An internal server error occurred. Retry your request.</p>"
42934383
},
4384+
"modelNotReadyException":{
4385+
"shape":"ModelNotReadyException",
4386+
"documentation":"<p> The model specified in the request is not ready to serve Inference requests. The AWS SDK will automatically retry the operation up to 5 times. For information about configuring automatic retries, see <a href=\"https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html\">Retry behavior</a> in the <i>AWS SDKs and Tools</i> reference guide. </p>"
4387+
},
42944388
"resourceNotFoundException":{
42954389
"shape":"ResourceNotFoundException",
42964390
"documentation":"<p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>"
@@ -5153,7 +5247,7 @@
51535247
"documentation":"<p> Specifies whether to enable streaming for the final response. This is set to <code>false</code> by default. </p>"
51545248
}
51555249
},
5156-
"documentation":"<p> Configurations for streaming. </p>"
5250+
"documentation":"<p> Configurations for streaming.</p>"
51575251
},
51585252
"StreamingConfigurationsApplyGuardrailIntervalInteger":{
51595253
"type":"integer",

0 commit comments

Comments
 (0)