diff --git a/.doc_gen/metadata/bedrock-runtime_metadata.yaml b/.doc_gen/metadata/bedrock-runtime_metadata.yaml index 3f985d8b278..76f19b01e47 100644 --- a/.doc_gen/metadata/bedrock-runtime_metadata.yaml +++ b/.doc_gen/metadata/bedrock-runtime_metadata.yaml @@ -327,14 +327,6 @@ bedrock-runtime_Converse_CohereCommand: - description: Send a text message to Cohere Command, using Bedrock's Converse API with the async Java client. snippet_tags: - bedrock-runtime.java2.ConverseAsync_CohereCommand - .NET: - versions: - - sdk_version: 4 - github: dotnetv4/Bedrock-runtime - excerpts: - - description: Send a text message to Cohere Command, using Bedrock's Converse API. - snippet_tags: - - BedrockRuntime.dotnetv4.Converse_CohereCommand Python: versions: - sdk_version: 3 @@ -623,14 +615,6 @@ bedrock-runtime_ConverseStream_CohereCommand: - description: Send a text message to Cohere Command, using Bedrock's Converse API and process the response stream in real-time. snippet_tags: - bedrock-runtime.java2.ConverseStream_CohereCommand - .NET: - versions: - - sdk_version: 4 - github: dotnetv4/Bedrock-runtime - excerpts: - - description: Send a text message to Cohere Command, using Bedrock's Converse API and process the response stream in real-time. - snippet_tags: - - BedrockRuntime.dotnetv4.ConverseStream_CohereCommand Python: versions: - sdk_version: 3 @@ -886,14 +870,6 @@ bedrock-runtime_InvokeModel_CohereCommand: - description: Use the Invoke Model API to send a text message. snippet_tags: - bedrock-runtime.java2.InvokeModel_CohereCommand - .NET: - versions: - - sdk_version: 3 - github: dotnetv3/Bedrock-runtime - excerpts: - - description: Use the Invoke Model API to send a text message. - snippet_tags: - - BedrockRuntime.dotnetv3.InvokeModel_CohereCommand Python: versions: - sdk_version: 3 @@ -1118,14 +1094,6 @@ bedrock-runtime_InvokeModelWithResponseStream_CohereCommand: - description: Use the Invoke Model API to send a text message and process the response stream in real-time. snippet_tags: - bedrock-runtime.java2.InvokeModelWithResponseStream_CohereCommand - .NET: - versions: - - sdk_version: 3 - github: dotnetv3/Bedrock-runtime - excerpts: - - description: Use the Invoke Model API to send a text message and process the response stream in real-time. - snippet_tags: - - BedrockRuntime.dotnetv3.InvokeModelWithResponseStream_CohereCommand Python: versions: - sdk_version: 3 diff --git a/.doc_gen/metadata/cloudwatch_metadata.yaml b/.doc_gen/metadata/cloudwatch_metadata.yaml index faf0c9aa5d9..7bf7d0584a9 100644 --- a/.doc_gen/metadata/cloudwatch_metadata.yaml +++ b/.doc_gen/metadata/cloudwatch_metadata.yaml @@ -46,13 +46,13 @@ cloudwatch_DeleteAlarms: - cloudwatch.kotlin.scenario.del.alarm.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.DeleteAlarms + - CloudWatch.dotnetv4.DeleteAlarms Java: versions: - sdk_version: 2 @@ -137,13 +137,13 @@ cloudwatch_DeleteAnomalyDetector: - cloudwatch.java2.scenario.del.anomalydetector.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.DeleteAnomalyDetector + - CloudWatch.dotnetv4.DeleteAnomalyDetector services: cloudwatch: {DeleteAnomalyDetector} cloudwatch_DeleteDashboards: @@ -168,8 +168,8 @@ cloudwatch_DeleteDashboards: - cloudwatch.java2.scenario.del.dashboard.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: @@ -199,13 +199,13 @@ cloudwatch_DescribeAlarmHistory: - cloudwatch.java2.scenario.get.alarm.history.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.DescribeAlarmHistory + - CloudWatch.dotnetv4.DescribeAlarmHistory services: cloudwatch: {DescribeAlarmHistory} cloudwatch_DescribeAlarms: @@ -230,13 +230,13 @@ cloudwatch_DescribeAlarms: - cloudwatch.java2.describe_alarms.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.DescribeAlarms + - CloudWatch.dotnetv4.DescribeAlarms SAP ABAP: versions: - sdk_version: 1 @@ -260,13 +260,13 @@ cloudwatch_DescribeAlarmsForMetric: languages: .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.DescribeAlarmsForMetric + - CloudWatch.dotnetv4.DescribeAlarmsForMetric Kotlin: versions: - sdk_version: 1 @@ -361,13 +361,13 @@ cloudwatch_DescribeAnomalyDetectors: - cloudwatch.java2.scenario.describe.anomalydetector.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.DescribeAnomalyDetectors + - CloudWatch.dotnetv4.DescribeAnomalyDetectors services: cloudwatch: {DescribeAnomalyDetectors} cloudwatch_DisableAlarmActions: @@ -383,13 +383,13 @@ cloudwatch_DisableAlarmActions: - cloudwatch.kotlin.disable_alarm_actions.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.DisableAlarmActions + - CloudWatch.dotnetv4.DisableAlarmActions Java: versions: - sdk_version: 2 @@ -465,13 +465,13 @@ cloudwatch_EnableAlarmActions: languages: .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.EnableAlarmActions + - CloudWatch.dotnetv4.EnableAlarmActions Kotlin: versions: - sdk_version: 1 @@ -547,13 +547,13 @@ cloudwatch_GetDashboard: languages: .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.GetDashboard + - CloudWatch.dotnetv4.GetDashboard services: cloudwatch: {GetDashboard} cloudwatch_GetMetricData: @@ -578,13 +578,13 @@ cloudwatch_GetMetricData: - cloudwatch.java2.scenario.get.met.data.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.GetMetricData + - CloudWatch.dotnetv4.GetMetricData services: cloudwatch: {GetMetricData} cloudwatch_GetMetricStatistics: @@ -609,14 +609,14 @@ cloudwatch_GetMetricStatistics: - cloudwatch.java2.scenario.display.metrics.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.GetMetricStatisticsSetup - - CloudWatch.dotnetv3.GetMetricStatistics + - CloudWatch.dotnetv4.GetMetricStatisticsSetup + - CloudWatch.dotnetv4.GetMetricStatistics Python: versions: - sdk_version: 3 @@ -651,13 +651,13 @@ cloudwatch_GetMetricWidgetImage: - cloudwatch.java2.scenario.get.metric.image.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.GetMetricImage + - CloudWatch.dotnetv4.GetMetricImage services: cloudwatch: {GetMetricWidgetImage} cloudwatch_ListDashboards: @@ -682,13 +682,13 @@ cloudwatch_ListDashboards: - cloudwatch.java2.scenario.list.dashboard.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.ListDashboards + - CloudWatch.dotnetv4.ListDashboards services: cloudwatch: {ListDashboards} cloudwatch_ListMetrics: @@ -704,13 +704,13 @@ cloudwatch_ListMetrics: - cloudwatch.kotlin.scenario.list.metrics.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.ListMetrics + - CloudWatch.dotnetv4.ListMetrics Java: versions: - sdk_version: 2 @@ -804,13 +804,13 @@ cloudwatch_PutAnomalyDetector: - cloudwatch.java2.scenario.add.anomalydetector.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.PutAnomalyDetector + - CloudWatch.dotnetv4.PutAnomalyDetector services: cloudwatch: {PutAnomalyDetector} cloudwatch_PutDashboard: @@ -835,14 +835,14 @@ cloudwatch_PutDashboard: - cloudwatch.java2.scenario.create.dashboard.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.PutDashboardSetup - - CloudWatch.dotnetv3.PutDashboard + - CloudWatch.dotnetv4.PutDashboardSetup + - CloudWatch.dotnetv4.PutDashboard services: cloudwatch: {PutDashboard} cloudwatch_PutMetricAlarm: @@ -858,13 +858,13 @@ cloudwatch_PutMetricAlarm: - cloudwatch.java2.scenario.create.alarm.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.PutMetricAlarm + - CloudWatch.dotnetv4.PutMetricAlarm Kotlin: versions: - sdk_version: 1 @@ -940,14 +940,14 @@ cloudwatch_PutMetricData: languages: .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: snippet_tags: - - CloudWatch.dotnetv3.PutMetricDataSetup - - CloudWatch.dotnetv3.PutMetricData + - CloudWatch.dotnetv4.PutMetricDataSetup + - CloudWatch.dotnetv4.PutMetricData Kotlin: versions: - sdk_version: 1 @@ -1060,16 +1060,16 @@ cloudwatch_GetStartedMetricsDashboardsAlarms: - cloudwatch.java2.actions.main .NET: versions: - - sdk_version: 3 - github: dotnetv3/CloudWatch + - sdk_version: 4 + github: dotnetv4/CloudWatch sdkguide: excerpts: - description: Run an interactive scenario at a command prompt. snippet_tags: - - CloudWatch.dotnetv3.GettingStarted + - CloudWatch.dotnetv4.GettingStarted - description: Wrapper methods used by the scenario for &CW; actions. snippet_tags: - - CloudWatch.dotnetv3.CloudWatchWrapper + - CloudWatch.dotnetv4.CloudWatchWrapper services: cloudwatch: {ListMetrics, GetMetricStatistics, PutDashboard, PutMetricData, GetMetricData, PutMetricAlarm, DescribeAlarms, DescribeAlarmsForMetric, DescribeAlarmHistory, DeleteAlarms, PutAnomalyDetector, GetMetricWidgetImage, DescribeAnomalyDetectors, diff --git a/dotnetv3/Bedrock-runtime/Actions/HelloBedrockRuntime.cs b/dotnetv3/Bedrock-runtime/Actions/HelloBedrockRuntime.cs index 1ee5a0bf9ea..e29cb38778f 100644 --- a/dotnetv3/Bedrock-runtime/Actions/HelloBedrockRuntime.cs +++ b/dotnetv3/Bedrock-runtime/Actions/HelloBedrockRuntime.cs @@ -28,7 +28,8 @@ private static async Task Invoke(string modelId, string prompt) default: Console.WriteLine($"Unknown model ID: {modelId}. Valid model IDs are: {CLAUDE}."); break; - }; + } + ; } } } \ No newline at end of file diff --git a/dotnetv3/Bedrock-runtime/BedrockRuntimeExamples.sln b/dotnetv3/Bedrock-runtime/BedrockRuntimeExamples.sln index f396e0c4bd8..4c103db3667 100644 --- a/dotnetv3/Bedrock-runtime/BedrockRuntimeExamples.sln +++ b/dotnetv3/Bedrock-runtime/BedrockRuntimeExamples.sln @@ -10,11 +10,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BedrockRuntimeTests", "Test {02823466-F5FF-43A2-B70A-EF3482A0CBDD} = {02823466-F5FF-43A2-B70A-EF3482A0CBDD} {0574B2F4-D4BE-4155-902B-BF3D7CE4804E} = {0574B2F4-D4BE-4155-902B-BF3D7CE4804E} {1E62D4FB-CC59-4F1E-BB22-574CEC08C94B} = {1E62D4FB-CC59-4F1E-BB22-574CEC08C94B} - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F} = {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F} {3D6441FC-0FE8-4D0C-910D-3D9310599C71} = {3D6441FC-0FE8-4D0C-910D-3D9310599C71} {4B5A00D6-B9F1-449F-A9D2-80E860D6BD75} = {4B5A00D6-B9F1-449F-A9D2-80E860D6BD75} {52CDA3F4-F090-4224-978A-5F42388DCF92} = {52CDA3F4-F090-4224-978A-5F42388DCF92} - {63984664-8230-40F3-BFF5-7AC4988D7FE7} = {63984664-8230-40F3-BFF5-7AC4988D7FE7} {8D40F644-A2EB-46F0-B0A0-C7B7B563E6BA} = {8D40F644-A2EB-46F0-B0A0-C7B7B563E6BA} {9018AC00-1D39-41DB-9B3F-A0A7FC60AF18} = {9018AC00-1D39-41DB-9B3F-A0A7FC60AF18} {AAE5224C-4947-44C2-8BFB-70AF1F91A6EE} = {AAE5224C-4947-44C2-8BFB-70AF1F91A6EE} @@ -70,14 +68,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InvokeModel", "Models\Mistr EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Llama3_InvokeModel", "Models\MetaLlama\Llama3_InvokeModel\Llama3_InvokeModel.csproj", "{B753CEB9-EA53-4AE1-997E-B7D54A299D58}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_InvokeModel", "Models\CohereCommand\Command_InvokeModel\Command_InvokeModel.csproj", "{2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_R_InvokeModel", "Models\CohereCommand\Command_R_InvokeModel\Command_R_InvokeModel.csproj", "{BCC66C37-4980-484F-819D-066D2FF2669C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InvokeModelWithResponseStream", "Models\AmazonTitanText\InvokeModelWithResponseStream\InvokeModelWithResponseStream.csproj", "{52CDA3F4-F090-4224-978A-5F42388DCF92}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_InvokeModelWithResponseStream", "Models\CohereCommand\Command_InvokeModelWithResponseStream\Command_InvokeModelWithResponseStream.csproj", "{63984664-8230-40F3-BFF5-7AC4988D7FE7}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_R_InvokeModelWithResponseStream", "Models\CohereCommand\Command_R_InvokeModelWithResponseStream\Command_R_InvokeModelWithResponseStream.csproj", "{02823466-F5FF-43A2-B70A-EF3482A0CBDD}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Llama3_InvokeModelWithResponseStream", "Models\MetaLlama\Llama3_InvokeModelWithResponseStream\Llama3_InvokeModelWithResponseStream.csproj", "{4B5A00D6-B9F1-449F-A9D2-80E860D6BD75}" @@ -172,10 +166,6 @@ Global {B753CEB9-EA53-4AE1-997E-B7D54A299D58}.Debug|Any CPU.Build.0 = Debug|Any CPU {B753CEB9-EA53-4AE1-997E-B7D54A299D58}.Release|Any CPU.ActiveCfg = Release|Any CPU {B753CEB9-EA53-4AE1-997E-B7D54A299D58}.Release|Any CPU.Build.0 = Release|Any CPU - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Release|Any CPU.Build.0 = Release|Any CPU {BCC66C37-4980-484F-819D-066D2FF2669C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BCC66C37-4980-484F-819D-066D2FF2669C}.Debug|Any CPU.Build.0 = Debug|Any CPU {BCC66C37-4980-484F-819D-066D2FF2669C}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -184,10 +174,6 @@ Global {52CDA3F4-F090-4224-978A-5F42388DCF92}.Debug|Any CPU.Build.0 = Debug|Any CPU {52CDA3F4-F090-4224-978A-5F42388DCF92}.Release|Any CPU.ActiveCfg = Release|Any CPU {52CDA3F4-F090-4224-978A-5F42388DCF92}.Release|Any CPU.Build.0 = Release|Any CPU - {63984664-8230-40F3-BFF5-7AC4988D7FE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {63984664-8230-40F3-BFF5-7AC4988D7FE7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {63984664-8230-40F3-BFF5-7AC4988D7FE7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {63984664-8230-40F3-BFF5-7AC4988D7FE7}.Release|Any CPU.Build.0 = Release|Any CPU {02823466-F5FF-43A2-B70A-EF3482A0CBDD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {02823466-F5FF-43A2-B70A-EF3482A0CBDD}.Debug|Any CPU.Build.0 = Debug|Any CPU {02823466-F5FF-43A2-B70A-EF3482A0CBDD}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -249,10 +235,8 @@ Global {D1B0719F-4F84-4DBC-BCAD-E856FB3193D7} = {8BAC2322-AD3C-484A-B51D-8263BC4E6646} {1E62D4FB-CC59-4F1E-BB22-574CEC08C94B} = {BBB79D3E-5DF2-4FF6-B467-52D0EEB91C4B} {B753CEB9-EA53-4AE1-997E-B7D54A299D58} = {65504C76-7E32-4A12-A42E-BCDA4FE79BC1} - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C} {BCC66C37-4980-484F-819D-066D2FF2669C} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C} {52CDA3F4-F090-4224-978A-5F42388DCF92} = {3F96ECB4-1644-43E8-8643-2CDCF9E679F1} - {63984664-8230-40F3-BFF5-7AC4988D7FE7} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C} {02823466-F5FF-43A2-B70A-EF3482A0CBDD} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C} {4B5A00D6-B9F1-449F-A9D2-80E860D6BD75} = {65504C76-7E32-4A12-A42E-BCDA4FE79BC1} {EFC7D088-EF45-464B-97CD-0BBA486B224A} = {BBB79D3E-5DF2-4FF6-B467-52D0EEB91C4B} diff --git a/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/Converse/Converse.cs b/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/Converse/Converse.cs index 21bf4dca724..9f708ca4834 100644 --- a/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/Converse/Converse.cs +++ b/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/Converse/Converse.cs @@ -13,8 +13,8 @@ // Create a Bedrock Runtime client in the AWS Region you want to use. var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); -// Set the model ID, e.g., Titan Text Premier. -var modelId = "amazon.titan-text-premier-v1:0"; +// Set the model ID, e.g., Titan Text Lite +var modelId = "amazon.titan-text-lite-v1"; // Define the user message. var userMessage = "Describe the purpose of a 'hello world' program in one line."; diff --git a/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/ConverseStream/ConverseStream.cs b/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/ConverseStream/ConverseStream.cs index 5a0d0444b38..a71c77bffae 100644 --- a/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/ConverseStream/ConverseStream.cs +++ b/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/ConverseStream/ConverseStream.cs @@ -15,8 +15,8 @@ // Create a Bedrock Runtime client in the AWS Region you want to use. var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); -// Set the model ID, e.g., Titan Text Premier. -var modelId = "amazon.titan-text-premier-v1:0"; +// Set the model ID, e.g., Titan Text Lite. +var modelId = "amazon.titan-text-lite-v1"; // Define the user message. var userMessage = "Describe the purpose of a 'hello world' program in one line."; diff --git a/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/InvokeModel/InvokeModel.cs b/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/InvokeModel/InvokeModel.cs index 9ec0d69dde2..32f52808074 100644 --- a/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/InvokeModel/InvokeModel.cs +++ b/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/InvokeModel/InvokeModel.cs @@ -15,8 +15,8 @@ // Create a Bedrock Runtime client in the AWS Region you want to use. var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); -// Set the model ID, e.g., Titan Text Premier. -var modelId = "amazon.titan-text-premier-v1:0"; +// Set the model ID, e.g., Titan Text Lite. +var modelId = "amazon.titan-text-lite-v1"; // Define the user message. var userMessage = "Describe the purpose of a 'hello world' program in one line."; diff --git a/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs b/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs index 2247c06671e..23729cd11eb 100644 --- a/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs +++ b/dotnetv3/Bedrock-runtime/Models/AmazonTitanText/InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs @@ -16,8 +16,8 @@ // Create a Bedrock Runtime client in the AWS Region you want to use. var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); -// Set the model ID, e.g., Titan Text Premier. -var modelId = "amazon.titan-text-premier-v1:0"; +// Set the model ID, e.g., Titan Text Lite. +var modelId = "amazon.titan-text-lite-v1"; // Define the user message. var userMessage = "Describe the purpose of a 'hello world' program in one line."; diff --git a/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/Command_InvokeModel.csproj b/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/Command_InvokeModel.csproj deleted file mode 100644 index b79f0fd7312..00000000000 --- a/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/Command_InvokeModel.csproj +++ /dev/null @@ -1,12 +0,0 @@ - - - Exe - net8.0 - CohereCommand.$(MSBuildProjectName) - - - - - - - diff --git a/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/InvokeModel.cs b/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/InvokeModel.cs deleted file mode 100644 index 1b671bfc628..00000000000 --- a/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/InvokeModel.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -// snippet-start:[BedrockRuntime.dotnetv3.InvokeModel_CohereCommand] -// Use the native inference API to send a text message to Cohere Command. - -using System; -using System.IO; -using System.Text.Json; -using System.Text.Json.Nodes; -using Amazon; -using Amazon.BedrockRuntime; -using Amazon.BedrockRuntime.Model; - -// Create a Bedrock Runtime client in the AWS Region you want to use. -var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); - -// Set the model ID, e.g., Command Light. -var modelId = "cohere.command-light-text-v14"; - -// Define the user message. -var userMessage = "Describe the purpose of a 'hello world' program in one line."; - -//Format the request payload using the model's native structure. -var nativeRequest = JsonSerializer.Serialize(new -{ - prompt = userMessage, - max_tokens = 512, - temperature = 0.5 -}); - -// Create a request with the model ID and the model's native request payload. -var request = new InvokeModelRequest() -{ - ModelId = modelId, - Body = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(nativeRequest)), - ContentType = "application/json" -}; - -try -{ - // Send the request to the Bedrock Runtime and wait for the response. - var response = await client.InvokeModelAsync(request); - - // Decode the response body. - var modelResponse = await JsonNode.ParseAsync(response.Body); - - // Extract and print the response text. - var responseText = modelResponse["generations"]?[0]?["text"] ?? ""; - Console.WriteLine(responseText); -} -catch (AmazonBedrockRuntimeException e) -{ - Console.WriteLine($"ERROR: Can't invoke '{modelId}'. Reason: {e.Message}"); - throw; -} - -// snippet-end:[BedrockRuntime.dotnetv3.InvokeModel_CohereCommand] - -// Create a partial class to make the top-level script testable. -namespace CohereCommand { public partial class InvokeModel { } } \ No newline at end of file diff --git a/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/Command_InvokeModelWithResponseStream.csproj b/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/Command_InvokeModelWithResponseStream.csproj deleted file mode 100644 index b79f0fd7312..00000000000 --- a/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/Command_InvokeModelWithResponseStream.csproj +++ /dev/null @@ -1,12 +0,0 @@ - - - Exe - net8.0 - CohereCommand.$(MSBuildProjectName) - - - - - - - diff --git a/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs b/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs deleted file mode 100644 index d70e9d9b4c1..00000000000 --- a/dotnetv3/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -// snippet-start:[BedrockRuntime.dotnetv3.InvokeModelWithResponseStream_CohereCommand] -// Use the native inference API to send a text message to Cohere Command -// and print the response stream. - -using System; -using System.IO; -using System.Text.Json; -using System.Text.Json.Nodes; -using Amazon; -using Amazon.BedrockRuntime; -using Amazon.BedrockRuntime.Model; - -// Create a Bedrock Runtime client in the AWS Region you want to use. -var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); - -// Set the model ID, e.g., Command Light. -var modelId = "cohere.command-light-text-v14"; - -// Define the user message. -var userMessage = "Describe the purpose of a 'hello world' program in one line."; - -//Format the request payload using the model's native structure. -var nativeRequest = JsonSerializer.Serialize(new -{ - prompt = userMessage, - max_tokens = 512, - temperature = 0.5 -}); - -// Create a request with the model ID and the model's native request payload. -var request = new InvokeModelWithResponseStreamRequest() -{ - ModelId = modelId, - Body = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(nativeRequest)), - ContentType = "application/json" -}; - -try -{ - // Send the request to the Bedrock Runtime and wait for the response. - var streamingResponse = await client.InvokeModelWithResponseStreamAsync(request); - - // Extract and print the streamed response text in real-time. - foreach (var item in streamingResponse.Body) - { - var chunk = JsonSerializer.Deserialize((item as PayloadPart).Bytes); - var text = chunk["generations"]?[0]?["text"] ?? ""; - Console.Write(text); - } -} -catch (AmazonBedrockRuntimeException e) -{ - Console.WriteLine($"ERROR: Can't invoke '{modelId}'. Reason: {e.Message}"); - throw; -} - -// snippet-end:[BedrockRuntime.dotnetv3.InvokeModelWithResponseStream_CohereCommand] - -// Create a partial class to make the top-level script testable. -namespace CohereCommand { public partial class InvokeModelWithResponseStream { } } \ No newline at end of file diff --git a/dotnetv3/Bedrock-runtime/README.md b/dotnetv3/Bedrock-runtime/README.md index dd5a6ce566a..b55acf775c2 100644 --- a/dotnetv3/Bedrock-runtime/README.md +++ b/dotnetv3/Bedrock-runtime/README.md @@ -56,9 +56,7 @@ functions within the same service. ### Cohere Command - [InvokeModel: Command R and R+](Models/CohereCommand/Command_R_InvokeModel/InvokeModel.cs#L4) -- [InvokeModel: Command and Command Light](Models/CohereCommand/Command_InvokeModel/InvokeModel.cs#L4) - [InvokeModelWithResponseStream: Command R and R+](Models/CohereCommand/Command_R_InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs#L4) -- [InvokeModelWithResponseStream: Command and Command Light](Models/CohereCommand/Command_InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs#L4) ### Meta Llama diff --git a/dotnetv3/Bedrock-runtime/Tests/ActionTest_InvokeModelWithResponseStream.cs b/dotnetv3/Bedrock-runtime/Tests/ActionTest_InvokeModelWithResponseStream.cs index c0520fa0d25..8c2d4c354c9 100644 --- a/dotnetv3/Bedrock-runtime/Tests/ActionTest_InvokeModelWithResponseStream.cs +++ b/dotnetv3/Bedrock-runtime/Tests/ActionTest_InvokeModelWithResponseStream.cs @@ -8,7 +8,6 @@ public class ActionTest_InvokeModelWithResponseStream [Theory, Trait("Category", "Integration")] [InlineData(typeof(Mistral.InvokeModelWithResponseStream))] [InlineData(typeof(MetaLlama3.InvokeModelWithResponseStream))] - [InlineData(typeof(CohereCommand.InvokeModelWithResponseStream))] [InlineData(typeof(CohereCommandR.InvokeModelWithResponseStream))] [InlineData(typeof(AnthropicClaude.InvokeModelWithResponseStream))] [InlineData(typeof(AmazonTitanText.InvokeModelWithResponseStream))] diff --git a/dotnetv3/Bedrock-runtime/Tests/ActionTests_InvokeModel.cs b/dotnetv3/Bedrock-runtime/Tests/ActionTests_InvokeModel.cs index 35358828d1c..4f0af91721e 100644 --- a/dotnetv3/Bedrock-runtime/Tests/ActionTests_InvokeModel.cs +++ b/dotnetv3/Bedrock-runtime/Tests/ActionTests_InvokeModel.cs @@ -8,7 +8,6 @@ public class ActionTest_InvokeModel [Theory, Trait("Category", "Integration")] [InlineData(typeof(Mistral.InvokeModel))] [InlineData(typeof(MetaLlama3.InvokeModel))] - [InlineData(typeof(CohereCommand.InvokeModel))] [InlineData(typeof(CohereCommandR.InvokeModel))] [InlineData(typeof(AnthropicClaude.InvokeModel))] [InlineData(typeof(AmazonTitanText.InvokeModel))] diff --git a/dotnetv3/Bedrock-runtime/Tests/BedrockRuntimeTests.csproj b/dotnetv3/Bedrock-runtime/Tests/BedrockRuntimeTests.csproj index c46d5b1ec25..5f64a8ed65a 100644 --- a/dotnetv3/Bedrock-runtime/Tests/BedrockRuntimeTests.csproj +++ b/dotnetv3/Bedrock-runtime/Tests/BedrockRuntimeTests.csproj @@ -39,8 +39,6 @@ - - diff --git a/dotnetv3/CloudWatch/Actions/CloudWatchWrapper.cs b/dotnetv3/CloudWatch/Actions/CloudWatchWrapper.cs index ac7d9c24ef2..f1962b138bb 100644 --- a/dotnetv3/CloudWatch/Actions/CloudWatchWrapper.cs +++ b/dotnetv3/CloudWatch/Actions/CloudWatchWrapper.cs @@ -243,6 +243,8 @@ public async Task> GetMetricData(int minutesOfData, bool var startTimeUtc = endDateUtc.Value.AddMinutes(-minutesOfData); // The timezone string should be in the format +0000, so use the timezone offset to format it correctly. var timeZoneString = $"{timeZoneOffset.Hours:D2}{timeZoneOffset.Minutes:D2}"; + // Add the plus sign for positive offsets. + timeZoneString = timeZoneString.StartsWith('-') ? timeZoneString : "+" + timeZoneString; var paginatedMetricData = _amazonCloudWatch.Paginators.GetMetricData( new GetMetricDataRequest() { diff --git a/dotnetv3/CloudWatch/README.md b/dotnetv3/CloudWatch/README.md index ed59b50f624..91bf1a7293d 100644 --- a/dotnetv3/CloudWatch/README.md +++ b/dotnetv3/CloudWatch/README.md @@ -42,24 +42,24 @@ Code examples that show you how to perform the essential operations within a ser Code excerpts that show you how to call individual service functions. -- [DeleteAlarms](Actions/CloudWatchWrapper.cs#L396) -- [DeleteAnomalyDetector](Actions/CloudWatchWrapper.cs#L494) -- [DeleteDashboards](Actions/CloudWatchWrapper.cs#L512) -- [DescribeAlarmHistory](Actions/CloudWatchWrapper.cs#L369) -- [DescribeAlarms](Actions/CloudWatchWrapper.cs#L326) -- [DescribeAlarmsForMetric](Actions/CloudWatchWrapper.cs#L349) -- [DescribeAnomalyDetectors](Actions/CloudWatchWrapper.cs#L468) -- [DisableAlarmActions](Actions/CloudWatchWrapper.cs#L414) -- [EnableAlarmActions](Actions/CloudWatchWrapper.cs#L432) +- [DeleteAlarms](Actions/CloudWatchWrapper.cs#L398) +- [DeleteAnomalyDetector](Actions/CloudWatchWrapper.cs#L496) +- [DeleteDashboards](Actions/CloudWatchWrapper.cs#L514) +- [DescribeAlarmHistory](Actions/CloudWatchWrapper.cs#L371) +- [DescribeAlarms](Actions/CloudWatchWrapper.cs#L328) +- [DescribeAlarmsForMetric](Actions/CloudWatchWrapper.cs#L351) +- [DescribeAnomalyDetectors](Actions/CloudWatchWrapper.cs#L470) +- [DisableAlarmActions](Actions/CloudWatchWrapper.cs#L416) +- [EnableAlarmActions](Actions/CloudWatchWrapper.cs#L434) - [GetDashboard](Actions/CloudWatchWrapper.cs#L115) - [GetMetricData](Actions/CloudWatchWrapper.cs#L226) - [GetMetricStatistics](Actions/CloudWatchWrapper.cs#L61) - [GetMetricWidgetImage](Actions/CloudWatchWrapper.cs#L175) - [ListDashboards](Actions/CloudWatchWrapper.cs#L134) - [ListMetrics](Actions/CloudWatchWrapper.cs#L33) -- [PutAnomalyDetector](Actions/CloudWatchWrapper.cs#L450) +- [PutAnomalyDetector](Actions/CloudWatchWrapper.cs#L452) - [PutDashboard](Actions/CloudWatchWrapper.cs#L91) -- [PutMetricAlarm](Actions/CloudWatchWrapper.cs#L265) +- [PutMetricAlarm](Actions/CloudWatchWrapper.cs#L267) - [PutMetricData](Actions/CloudWatchWrapper.cs#L154) diff --git a/dotnetv3/DotNetV3Examples.sln b/dotnetv3/DotNetV3Examples.sln index 105e2a922a7..ecce054b4c5 100644 --- a/dotnetv3/DotNetV3Examples.sln +++ b/dotnetv3/DotNetV3Examples.sln @@ -775,10 +775,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_R_InvokeModelWithRe EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_R_InvokeModel", "Bedrock-runtime\Models\CohereCommand\Command_R_InvokeModel\Command_R_InvokeModel.csproj", "{D1C2204D-F977-4DD4-8AA0-9C24782B55C6}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_InvokeModelWithResponseStream", "Bedrock-runtime\Models\CohereCommand\Command_InvokeModelWithResponseStream\Command_InvokeModelWithResponseStream.csproj", "{03205CCD-1C9C-447F-9AB0-1C552E920FA3}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_InvokeModel", "Bedrock-runtime\Models\CohereCommand\Command_InvokeModel\Command_InvokeModel.csproj", "{288DA49C-7D65-4964-9CD3-491E4E96E582}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AnthropicClaude", "AnthropicClaude", "{072C8EA9-4695-4621-80D1-AAED8794B2C4}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InvokeModelWithResponseStream", "Bedrock-runtime\Models\AnthropicClaude\InvokeModelWithResponseStream\InvokeModelWithResponseStream.csproj", "{B0CBD3CE-4964-4C79-9D51-4DF9A9D911A6}" @@ -1835,14 +1831,6 @@ Global {D1C2204D-F977-4DD4-8AA0-9C24782B55C6}.Debug|Any CPU.Build.0 = Debug|Any CPU {D1C2204D-F977-4DD4-8AA0-9C24782B55C6}.Release|Any CPU.ActiveCfg = Release|Any CPU {D1C2204D-F977-4DD4-8AA0-9C24782B55C6}.Release|Any CPU.Build.0 = Release|Any CPU - {03205CCD-1C9C-447F-9AB0-1C552E920FA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {03205CCD-1C9C-447F-9AB0-1C552E920FA3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {03205CCD-1C9C-447F-9AB0-1C552E920FA3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {03205CCD-1C9C-447F-9AB0-1C552E920FA3}.Release|Any CPU.Build.0 = Release|Any CPU - {288DA49C-7D65-4964-9CD3-491E4E96E582}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {288DA49C-7D65-4964-9CD3-491E4E96E582}.Debug|Any CPU.Build.0 = Debug|Any CPU - {288DA49C-7D65-4964-9CD3-491E4E96E582}.Release|Any CPU.ActiveCfg = Release|Any CPU - {288DA49C-7D65-4964-9CD3-491E4E96E582}.Release|Any CPU.Build.0 = Release|Any CPU {B0CBD3CE-4964-4C79-9D51-4DF9A9D911A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B0CBD3CE-4964-4C79-9D51-4DF9A9D911A6}.Debug|Any CPU.Build.0 = Debug|Any CPU {B0CBD3CE-4964-4C79-9D51-4DF9A9D911A6}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -2292,8 +2280,6 @@ Global {438DF70A-6015-4CF2-A7F3-CDCD037A73B1} = {E4B34C61-78B4-4E2B-98FB-7CA945724740} {010CB380-C946-410E-A9E9-87D245A2E389} = {E4B34C61-78B4-4E2B-98FB-7CA945724740} {D1C2204D-F977-4DD4-8AA0-9C24782B55C6} = {E4B34C61-78B4-4E2B-98FB-7CA945724740} - {03205CCD-1C9C-447F-9AB0-1C552E920FA3} = {E4B34C61-78B4-4E2B-98FB-7CA945724740} - {288DA49C-7D65-4964-9CD3-491E4E96E582} = {E4B34C61-78B4-4E2B-98FB-7CA945724740} {072C8EA9-4695-4621-80D1-AAED8794B2C4} = {6520EB28-F7B4-4581-B3D8-A06E9303B16B} {B0CBD3CE-4964-4C79-9D51-4DF9A9D911A6} = {072C8EA9-4695-4621-80D1-AAED8794B2C4} {612406EC-A21F-414B-A5EF-2B516F3E2EA6} = {072C8EA9-4695-4621-80D1-AAED8794B2C4} diff --git a/dotnetv4/Bedrock-runtime/BedrockRuntimeExamples.sln b/dotnetv4/Bedrock-runtime/BedrockRuntimeExamples.sln index a2947fd6703..003fad144c4 100644 --- a/dotnetv4/Bedrock-runtime/BedrockRuntimeExamples.sln +++ b/dotnetv4/Bedrock-runtime/BedrockRuntimeExamples.sln @@ -10,11 +10,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BedrockRuntimeTests", "Test {02823466-F5FF-43A2-B70A-EF3482A0CBDD} = {02823466-F5FF-43A2-B70A-EF3482A0CBDD} {0574B2F4-D4BE-4155-902B-BF3D7CE4804E} = {0574B2F4-D4BE-4155-902B-BF3D7CE4804E} {1E62D4FB-CC59-4F1E-BB22-574CEC08C94B} = {1E62D4FB-CC59-4F1E-BB22-574CEC08C94B} - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F} = {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F} {3D6441FC-0FE8-4D0C-910D-3D9310599C71} = {3D6441FC-0FE8-4D0C-910D-3D9310599C71} {4B5A00D6-B9F1-449F-A9D2-80E860D6BD75} = {4B5A00D6-B9F1-449F-A9D2-80E860D6BD75} {52CDA3F4-F090-4224-978A-5F42388DCF92} = {52CDA3F4-F090-4224-978A-5F42388DCF92} - {63984664-8230-40F3-BFF5-7AC4988D7FE7} = {63984664-8230-40F3-BFF5-7AC4988D7FE7} {8D40F644-A2EB-46F0-B0A0-C7B7B563E6BA} = {8D40F644-A2EB-46F0-B0A0-C7B7B563E6BA} {9018AC00-1D39-41DB-9B3F-A0A7FC60AF18} = {9018AC00-1D39-41DB-9B3F-A0A7FC60AF18} {AAE5224C-4947-44C2-8BFB-70AF1F91A6EE} = {AAE5224C-4947-44C2-8BFB-70AF1F91A6EE} @@ -70,14 +68,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InvokeModel", "Models\Mistr EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Llama3_InvokeModel", "Models\MetaLlama\Llama3_InvokeModel\Llama3_InvokeModel.csproj", "{B753CEB9-EA53-4AE1-997E-B7D54A299D58}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_InvokeModel", "Models\CohereCommand\Command_InvokeModel\Command_InvokeModel.csproj", "{2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_R_InvokeModel", "Models\CohereCommand\Command_R_InvokeModel\Command_R_InvokeModel.csproj", "{BCC66C37-4980-484F-819D-066D2FF2669C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InvokeModelWithResponseStream", "Models\AmazonTitanText\InvokeModelWithResponseStream\InvokeModelWithResponseStream.csproj", "{52CDA3F4-F090-4224-978A-5F42388DCF92}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_InvokeModelWithResponseStream", "Models\CohereCommand\Command_InvokeModelWithResponseStream\Command_InvokeModelWithResponseStream.csproj", "{63984664-8230-40F3-BFF5-7AC4988D7FE7}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_R_InvokeModelWithResponseStream", "Models\CohereCommand\Command_R_InvokeModelWithResponseStream\Command_R_InvokeModelWithResponseStream.csproj", "{02823466-F5FF-43A2-B70A-EF3482A0CBDD}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Llama3_InvokeModelWithResponseStream", "Models\MetaLlama\Llama3_InvokeModelWithResponseStream\Llama3_InvokeModelWithResponseStream.csproj", "{4B5A00D6-B9F1-449F-A9D2-80E860D6BD75}" @@ -152,10 +146,6 @@ Global {B753CEB9-EA53-4AE1-997E-B7D54A299D58}.Debug|Any CPU.Build.0 = Debug|Any CPU {B753CEB9-EA53-4AE1-997E-B7D54A299D58}.Release|Any CPU.ActiveCfg = Release|Any CPU {B753CEB9-EA53-4AE1-997E-B7D54A299D58}.Release|Any CPU.Build.0 = Release|Any CPU - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Release|Any CPU.Build.0 = Release|Any CPU {BCC66C37-4980-484F-819D-066D2FF2669C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BCC66C37-4980-484F-819D-066D2FF2669C}.Debug|Any CPU.Build.0 = Debug|Any CPU {BCC66C37-4980-484F-819D-066D2FF2669C}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -164,10 +154,6 @@ Global {52CDA3F4-F090-4224-978A-5F42388DCF92}.Debug|Any CPU.Build.0 = Debug|Any CPU {52CDA3F4-F090-4224-978A-5F42388DCF92}.Release|Any CPU.ActiveCfg = Release|Any CPU {52CDA3F4-F090-4224-978A-5F42388DCF92}.Release|Any CPU.Build.0 = Release|Any CPU - {63984664-8230-40F3-BFF5-7AC4988D7FE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {63984664-8230-40F3-BFF5-7AC4988D7FE7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {63984664-8230-40F3-BFF5-7AC4988D7FE7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {63984664-8230-40F3-BFF5-7AC4988D7FE7}.Release|Any CPU.Build.0 = Release|Any CPU {02823466-F5FF-43A2-B70A-EF3482A0CBDD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {02823466-F5FF-43A2-B70A-EF3482A0CBDD}.Debug|Any CPU.Build.0 = Debug|Any CPU {02823466-F5FF-43A2-B70A-EF3482A0CBDD}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -209,10 +195,8 @@ Global {D1B0719F-4F84-4DBC-BCAD-E856FB3193D7} = {8BAC2322-AD3C-484A-B51D-8263BC4E6646} {1E62D4FB-CC59-4F1E-BB22-574CEC08C94B} = {BBB79D3E-5DF2-4FF6-B467-52D0EEB91C4B} {B753CEB9-EA53-4AE1-997E-B7D54A299D58} = {65504C76-7E32-4A12-A42E-BCDA4FE79BC1} - {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C} {BCC66C37-4980-484F-819D-066D2FF2669C} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C} {52CDA3F4-F090-4224-978A-5F42388DCF92} = {3F96ECB4-1644-43E8-8643-2CDCF9E679F1} - {63984664-8230-40F3-BFF5-7AC4988D7FE7} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C} {02823466-F5FF-43A2-B70A-EF3482A0CBDD} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C} {4B5A00D6-B9F1-449F-A9D2-80E860D6BD75} = {65504C76-7E32-4A12-A42E-BCDA4FE79BC1} {EFC7D088-EF45-464B-97CD-0BBA486B224A} = {BBB79D3E-5DF2-4FF6-B467-52D0EEB91C4B} diff --git a/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/Converse/Converse.cs b/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/Converse/Converse.cs index 0986193cb91..020d11760cc 100644 --- a/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/Converse/Converse.cs +++ b/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/Converse/Converse.cs @@ -13,8 +13,8 @@ // Create a Bedrock Runtime client in the AWS Region you want to use. var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); -// Set the model ID, e.g., Titan Text Premier. -var modelId = "amazon.titan-text-premier-v1:0"; +// Set the model ID, e.g., Titan Text Lite. +var modelId = "amazon.titan-text-lite-v1"; // Define the user message. var userMessage = "Describe the purpose of a 'hello world' program in one line."; diff --git a/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/ConverseStream/ConverseStream.cs b/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/ConverseStream/ConverseStream.cs index 80ab82e5b05..af040e8ee2a 100644 --- a/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/ConverseStream/ConverseStream.cs +++ b/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/ConverseStream/ConverseStream.cs @@ -15,8 +15,8 @@ // Create a Bedrock Runtime client in the AWS Region you want to use. var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); -// Set the model ID, e.g., Titan Text Premier. -var modelId = "amazon.titan-text-premier-v1:0"; +// Set the model ID, e.g., Titan Text Lite. +var modelId = "amazon.titan-text-lite-v1"; // Define the user message. var userMessage = "Describe the purpose of a 'hello world' program in one line."; diff --git a/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/InvokeModel/InvokeModel.cs b/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/InvokeModel/InvokeModel.cs index d5c19059944..c9c40d910d1 100644 --- a/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/InvokeModel/InvokeModel.cs +++ b/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/InvokeModel/InvokeModel.cs @@ -15,8 +15,8 @@ // Create a Bedrock Runtime client in the AWS Region you want to use. var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); -// Set the model ID, e.g., Titan Text Premier. -var modelId = "amazon.titan-text-premier-v1:0"; +// Set the model ID, e.g., Titan Text Lite. +var modelId = "amazon.titan-text-lite-v1"; // Define the user message. var userMessage = "Describe the purpose of a 'hello world' program in one line."; diff --git a/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs b/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs index 9aa49c27ba8..d05f6028676 100644 --- a/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs +++ b/dotnetv4/Bedrock-runtime/Models/AmazonTitanText/InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs @@ -16,8 +16,8 @@ // Create a Bedrock Runtime client in the AWS Region you want to use. var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); -// Set the model ID, e.g., Titan Text Premier. -var modelId = "amazon.titan-text-premier-v1:0"; +// Set the model ID, e.g., Titan Text Lite. +var modelId = "amazon.titan-text-lite-v1"; // Define the user message. var userMessage = "Describe the purpose of a 'hello world' program in one line."; diff --git a/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/Command_InvokeModel.csproj b/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/Command_InvokeModel.csproj deleted file mode 100644 index 058b325f013..00000000000 --- a/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/Command_InvokeModel.csproj +++ /dev/null @@ -1,12 +0,0 @@ - - - Exe - net8.0 - CohereCommand.$(MSBuildProjectName) - - - - - - - diff --git a/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/InvokeModel.cs b/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/InvokeModel.cs deleted file mode 100644 index e0b6b9399e7..00000000000 --- a/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModel/InvokeModel.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -// snippet-start:[BedrockRuntime.dotnetv4.InvokeModel_CohereCommand] -// Use the native inference API to send a text message to Cohere Command. - -using System; -using System.IO; -using System.Text.Json; -using System.Text.Json.Nodes; -using Amazon; -using Amazon.BedrockRuntime; -using Amazon.BedrockRuntime.Model; - -// Create a Bedrock Runtime client in the AWS Region you want to use. -var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); - -// Set the model ID, e.g., Command Light. -var modelId = "cohere.command-light-text-v14"; - -// Define the user message. -var userMessage = "Describe the purpose of a 'hello world' program in one line."; - -//Format the request payload using the model's native structure. -var nativeRequest = JsonSerializer.Serialize(new -{ - prompt = userMessage, - max_tokens = 512, - temperature = 0.5 -}); - -// Create a request with the model ID and the model's native request payload. -var request = new InvokeModelRequest() -{ - ModelId = modelId, - Body = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(nativeRequest)), - ContentType = "application/json" -}; - -try -{ - // Send the request to the Bedrock Runtime and wait for the response. - var response = await client.InvokeModelAsync(request); - - // Decode the response body. - var modelResponse = await JsonNode.ParseAsync(response.Body); - - // Extract and print the response text. - var responseText = modelResponse["generations"]?[0]?["text"] ?? ""; - Console.WriteLine(responseText); -} -catch (AmazonBedrockRuntimeException e) -{ - Console.WriteLine($"ERROR: Can't invoke '{modelId}'. Reason: {e.Message}"); - throw; -} - -// snippet-end:[BedrockRuntime.dotnetv4.InvokeModel_CohereCommand] - -// Create a partial class to make the top-level script testable. -namespace CohereCommand { public partial class InvokeModel { } } \ No newline at end of file diff --git a/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/Command_InvokeModelWithResponseStream.csproj b/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/Command_InvokeModelWithResponseStream.csproj deleted file mode 100644 index 058b325f013..00000000000 --- a/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/Command_InvokeModelWithResponseStream.csproj +++ /dev/null @@ -1,12 +0,0 @@ - - - Exe - net8.0 - CohereCommand.$(MSBuildProjectName) - - - - - - - diff --git a/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs b/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs deleted file mode 100644 index 5562ff5e7e2..00000000000 --- a/dotnetv4/Bedrock-runtime/Models/CohereCommand/Command_InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -// snippet-start:[BedrockRuntime.dotnetv4.InvokeModelWithResponseStream_CohereCommand] -// Use the native inference API to send a text message to Cohere Command -// and print the response stream. - -using System; -using System.IO; -using System.Text.Json; -using System.Text.Json.Nodes; -using Amazon; -using Amazon.BedrockRuntime; -using Amazon.BedrockRuntime.Model; - -// Create a Bedrock Runtime client in the AWS Region you want to use. -var client = new AmazonBedrockRuntimeClient(RegionEndpoint.USEast1); - -// Set the model ID, e.g., Command Light. -var modelId = "cohere.command-light-text-v14"; - -// Define the user message. -var userMessage = "Describe the purpose of a 'hello world' program in one line."; - -//Format the request payload using the model's native structure. -var nativeRequest = JsonSerializer.Serialize(new -{ - prompt = userMessage, - max_tokens = 512, - temperature = 0.5 -}); - -// Create a request with the model ID and the model's native request payload. -var request = new InvokeModelWithResponseStreamRequest() -{ - ModelId = modelId, - Body = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(nativeRequest)), - ContentType = "application/json" -}; - -try -{ - // Send the request to the Bedrock Runtime and wait for the response. - var streamingResponse = await client.InvokeModelWithResponseStreamAsync(request); - - // Extract and print the streamed response text in real-time. - foreach (var item in streamingResponse.Body) - { - var chunk = JsonSerializer.Deserialize((item as PayloadPart).Bytes); - var text = chunk["generations"]?[0]?["text"] ?? ""; - Console.Write(text); - } -} -catch (AmazonBedrockRuntimeException e) -{ - Console.WriteLine($"ERROR: Can't invoke '{modelId}'. Reason: {e.Message}"); - throw; -} - -// snippet-end:[BedrockRuntime.dotnetv4.InvokeModelWithResponseStream_CohereCommand] - -// Create a partial class to make the top-level script testable. -namespace CohereCommand { public partial class InvokeModelWithResponseStream { } } \ No newline at end of file diff --git a/dotnetv4/Bedrock-runtime/README.md b/dotnetv4/Bedrock-runtime/README.md index c3b416815b2..6d00c9df8d5 100644 --- a/dotnetv4/Bedrock-runtime/README.md +++ b/dotnetv4/Bedrock-runtime/README.md @@ -40,11 +40,6 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `dotnetv4 - [ConverseStream](Models/AnthropicClaude/ConverseStream/ConverseStream.cs#L4) - [InvokeModel](Models/AnthropicClaude/InvokeModel/InvokeModel.cs#L4) -### Cohere Command - -- [Converse](Models/CohereCommand/Converse/Converse.cs#L4) -- [ConverseStream](Models/CohereCommand/ConverseStream/ConverseStream.cs#L4) - ### Meta Llama - [Converse](Models/MetaLlama/Converse/Converse.cs#L4) diff --git a/dotnetv4/Bedrock-runtime/Tests/ActionTest_InvokeModelWithResponseStream.cs b/dotnetv4/Bedrock-runtime/Tests/ActionTest_InvokeModelWithResponseStream.cs index f9c56201200..6aed27c0065 100644 --- a/dotnetv4/Bedrock-runtime/Tests/ActionTest_InvokeModelWithResponseStream.cs +++ b/dotnetv4/Bedrock-runtime/Tests/ActionTest_InvokeModelWithResponseStream.cs @@ -9,7 +9,6 @@ public class ActionTest_InvokeModelWithResponseStream [InlineData(typeof(AmazonTitanText.InvokeModelWithResponseStream))] [InlineData(typeof(Mistral.InvokeModelWithResponseStream))] [InlineData(typeof(MetaLlama3.InvokeModelWithResponseStream))] - [InlineData(typeof(CohereCommand.InvokeModelWithResponseStream))] [InlineData(typeof(CohereCommandR.InvokeModelWithResponseStream))] [InlineData(typeof(AnthropicClaude.InvokeModelWithResponseStream))] diff --git a/dotnetv4/Bedrock-runtime/Tests/ActionTests_InvokeModel.cs b/dotnetv4/Bedrock-runtime/Tests/ActionTests_InvokeModel.cs index 9512876fc37..90712a19b1d 100644 --- a/dotnetv4/Bedrock-runtime/Tests/ActionTests_InvokeModel.cs +++ b/dotnetv4/Bedrock-runtime/Tests/ActionTests_InvokeModel.cs @@ -9,7 +9,6 @@ public class ActionTest_InvokeModel [InlineData(typeof(AmazonTitanText.InvokeModel))] [InlineData(typeof(Mistral.InvokeModel))] [InlineData(typeof(MetaLlama3.InvokeModel))] - [InlineData(typeof(CohereCommand.InvokeModel))] [InlineData(typeof(CohereCommandR.InvokeModel))] [InlineData(typeof(AnthropicClaude.InvokeModel))] diff --git a/dotnetv4/Bedrock-runtime/Tests/BedrockRuntimeTests.csproj b/dotnetv4/Bedrock-runtime/Tests/BedrockRuntimeTests.csproj index b41309ed432..77d169c2f97 100644 --- a/dotnetv4/Bedrock-runtime/Tests/BedrockRuntimeTests.csproj +++ b/dotnetv4/Bedrock-runtime/Tests/BedrockRuntimeTests.csproj @@ -36,8 +36,6 @@ - - diff --git a/dotnetv4/CloudWatch/Actions/CloudWatchWrapper.cs b/dotnetv4/CloudWatch/Actions/CloudWatchWrapper.cs index f43659a4c6f..334568177c5 100644 --- a/dotnetv4/CloudWatch/Actions/CloudWatchWrapper.cs +++ b/dotnetv4/CloudWatch/Actions/CloudWatchWrapper.cs @@ -243,6 +243,8 @@ public async Task> GetMetricData(int minutesOfData, bool var startTimeUtc = endDateUtc.Value.AddMinutes(-minutesOfData); // The timezone string should be in the format +0000, so use the timezone offset to format it correctly. var timeZoneString = $"{timeZoneOffset.Hours:D2}{timeZoneOffset.Minutes:D2}"; + // Add the plus sign for positive offsets. + timeZoneString = timeZoneString.StartsWith('-') ? timeZoneString : "+" + timeZoneString; var paginatedMetricData = _amazonCloudWatch.Paginators.GetMetricData( new GetMetricDataRequest() { diff --git a/dotnetv4/CloudWatch/README.md b/dotnetv4/CloudWatch/README.md index f7e07658354..e65af0312f7 100644 --- a/dotnetv4/CloudWatch/README.md +++ b/dotnetv4/CloudWatch/README.md @@ -36,6 +36,38 @@ To enable billing metrics and statistics for these examples, make sure to - [Hello CloudWatch](Actions/HelloCloudWatch.cs#L4) (`ListMetrics`) +### Basics + +Code examples that show you how to perform the essential operations within a service. + +- [Learn the basics](Scenarios/CloudWatchScenario.cs) + + +### Single actions + +Code excerpts that show you how to call individual service functions. + +- [DeleteAlarms](Actions/CloudWatchWrapper.cs#L402) +- [DeleteAnomalyDetector](Actions/CloudWatchWrapper.cs#L500) +- [DeleteDashboards](../../dotnetv3/CloudWatch/Actions/CloudWatchWrapper.cs#L514) +- [DescribeAlarmHistory](Actions/CloudWatchWrapper.cs#L375) +- [DescribeAlarms](Actions/CloudWatchWrapper.cs#L332) +- [DescribeAlarmsForMetric](Actions/CloudWatchWrapper.cs#L355) +- [DescribeAnomalyDetectors](Actions/CloudWatchWrapper.cs#L474) +- [DisableAlarmActions](Actions/CloudWatchWrapper.cs#L420) +- [EnableAlarmActions](Actions/CloudWatchWrapper.cs#L438) +- [GetDashboard](Actions/CloudWatchWrapper.cs#L115) +- [GetMetricData](Actions/CloudWatchWrapper.cs#L226) +- [GetMetricStatistics](Actions/CloudWatchWrapper.cs#L61) +- [GetMetricWidgetImage](Actions/CloudWatchWrapper.cs#L175) +- [ListDashboards](Actions/CloudWatchWrapper.cs#L134) +- [ListMetrics](Actions/CloudWatchWrapper.cs#L33) +- [PutAnomalyDetector](Actions/CloudWatchWrapper.cs#L456) +- [PutDashboard](Actions/CloudWatchWrapper.cs#L91) +- [PutMetricAlarm](Actions/CloudWatchWrapper.cs#L271) +- [PutMetricData](Actions/CloudWatchWrapper.cs#L154) + + @@ -52,6 +84,25 @@ To enable billing metrics and statistics for these examples, make sure to This example shows you how to get started using CloudWatch. +#### Learn the basics + +This example shows you how to do the following: + +- List CloudWatch namespaces and metrics. +- Get statistics for a metric and for estimated billing. +- Create and update a dashboard. +- Create and add data to a metric. +- Create and trigger an alarm, then view alarm history. +- Add an anomaly detector. +- Get a metric image, then clean up resources. + + + + + + + + ### Tests diff --git a/dotnetv4/DotNetV4Examples.sln b/dotnetv4/DotNetV4Examples.sln index 8b243f70231..7c8779f8f18 100644 --- a/dotnetv4/DotNetV4Examples.sln +++ b/dotnetv4/DotNetV4Examples.sln @@ -63,10 +63,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Command_R_InvokeModelWithRe EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Command_R_InvokeModel", "Bedrock-runtime\Models\CohereCommand\Command_R_InvokeModel\Command_R_InvokeModel.csproj", "{6FCC8A6C-A172-4AAF-A0FC-66C3BD9E8716}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Command_InvokeModelWithResponseStream", "Bedrock-runtime\Models\CohereCommand\Command_InvokeModelWithResponseStream\Command_InvokeModelWithResponseStream.csproj", "{6E0B8FF0-0D03-4424-86D5-CA01437C6814}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Command_InvokeModel", "Bedrock-runtime\Models\CohereCommand\Command_InvokeModel\Command_InvokeModel.csproj", "{5C91FECD-E8B6-4659-8691-60CA676E8F68}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AnthropicClaude", "AnthropicClaude", "{6FF2EDB6-D1B8-4EE0-B1F0-2BCE66972E39}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InvokeModelWithResponseStream", "Bedrock-runtime\Models\AnthropicClaude\InvokeModelWithResponseStream\InvokeModelWithResponseStream.csproj", "{345DA0D1-C762-49EF-9953-6F4D57CB7FC7}" @@ -247,14 +243,6 @@ Global {6FCC8A6C-A172-4AAF-A0FC-66C3BD9E8716}.Debug|Any CPU.Build.0 = Debug|Any CPU {6FCC8A6C-A172-4AAF-A0FC-66C3BD9E8716}.Release|Any CPU.ActiveCfg = Release|Any CPU {6FCC8A6C-A172-4AAF-A0FC-66C3BD9E8716}.Release|Any CPU.Build.0 = Release|Any CPU - {6E0B8FF0-0D03-4424-86D5-CA01437C6814}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6E0B8FF0-0D03-4424-86D5-CA01437C6814}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6E0B8FF0-0D03-4424-86D5-CA01437C6814}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6E0B8FF0-0D03-4424-86D5-CA01437C6814}.Release|Any CPU.Build.0 = Release|Any CPU - {5C91FECD-E8B6-4659-8691-60CA676E8F68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5C91FECD-E8B6-4659-8691-60CA676E8F68}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5C91FECD-E8B6-4659-8691-60CA676E8F68}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5C91FECD-E8B6-4659-8691-60CA676E8F68}.Release|Any CPU.Build.0 = Release|Any CPU {345DA0D1-C762-49EF-9953-6F4D57CB7FC7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {345DA0D1-C762-49EF-9953-6F4D57CB7FC7}.Debug|Any CPU.Build.0 = Debug|Any CPU {345DA0D1-C762-49EF-9953-6F4D57CB7FC7}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -410,8 +398,6 @@ Global {81EA8494-176C-4178-A1C3-6FA3B1222B74} = {39EAAA32-53A8-4641-873C-976FD5963360} {085F3A30-A788-48D6-8067-74D71C29A941} = {39EAAA32-53A8-4641-873C-976FD5963360} {6FCC8A6C-A172-4AAF-A0FC-66C3BD9E8716} = {39EAAA32-53A8-4641-873C-976FD5963360} - {6E0B8FF0-0D03-4424-86D5-CA01437C6814} = {39EAAA32-53A8-4641-873C-976FD5963360} - {5C91FECD-E8B6-4659-8691-60CA676E8F68} = {39EAAA32-53A8-4641-873C-976FD5963360} {6FF2EDB6-D1B8-4EE0-B1F0-2BCE66972E39} = {4429C078-35C8-4E2B-9C7B-F0C619741B67} {345DA0D1-C762-49EF-9953-6F4D57CB7FC7} = {6FF2EDB6-D1B8-4EE0-B1F0-2BCE66972E39} {C95689B5-C0A1-4C1F-9E97-369D3D397930} = {6FF2EDB6-D1B8-4EE0-B1F0-2BCE66972E39}