[Enhancement]: <Bedrock Converse Claude 3.7 Reasoning Support in Rust>
メンテナーはふだん 2 日以内に返信
@brmur がすでに取り組んでいます。
2025年4月3日 から。
評価
この issue はまだ評価されていません。
説明
Background story
Hello, I am trying to use the Bedrock Converse API in Rust. I have successfully implemented multiple models, but am now trying and failing to include Reasoning in the latest Claude 3.7. I see support for it in other languages, but I cannot find any documentation or examples for enabling thinking mode and setting budget tokens in Rust. I am not sure if support has been added and I am writing the syntax incorrectly, if there is a bug, or if Rust just hasn't been caught up to include a reasoning config yet.
What does this example accomplish?
I want to enable thinking and budget_tokens limits to include reasoning in my Claude 3.7 model.
Which AWS service(s)?
AWS Bedrock Converse
Which AWS SDKs or tools?
- All languages
- .NET
- C++
- Go (v2)
- Java
- Java (v2)
- JavaScript
- JavaScript (v3)
- Kotlin
- PHP
- Python
- Ruby
- Rust
- Swift
- Not applicable
Are there existing code examples to leverage?
Working off of the AWS Bedrock Converse Rust SDK examples here
Do you have any reference code?
// I have tried adding `additional_model_request_fields` as a `JSON` and as a `Document` object, but keep running into errors that it has to be the other type.
let json_value = serde_json::json!({
"reasoning_config": {
"type": "enabled",
"budget_tokens": 3000
}
});
// Convert the JSON value to a string.
let json_string = serde_json::to_string(&json_value)
.map_err(|e| format!("Failed to serialize JSON: {}", e))?;
// Convert the string to a Document.
let additional_model_request_fields = Document::from(json_string.as_str());
let response = client
.converse()
.model_id(model)
.additional_model_request_fields(additional_model_request_fields)
.messages(
Message::builder()
.role(ConversationRole::User)
.content(ContentBlock::Text(prompt_template))
.build()
.map_err(|_| "failed to build message")?,
)
.send()
.await;
- 主要言語
- Java
- スター
- 10.5k
- フォーク
- 5.8k
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 30
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
awsdocs/aws-doc-sdk-examples のほかの issue
-
[Enhancement]: Add Go (v2) example: Converse API with extended/adaptive thinking (Bedrock Runtime)再び着手できるかも @brmur が 80 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンGo-v2 New example request
awsdocs/aws-doc-sdk-examples#8093 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Modify ListObjectVersions to also show how do list versions of only a single object再び着手できるかも @brmur が 164 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンTask
awsdocs/aws-doc-sdk-examples#7914 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Create Rust DynamoDB GetItem single action example再び着手できるかも @brmur が 171 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンNew example request Rust
awsdocs/aws-doc-sdk-examples#7913 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
[Bug]: CloudWatch Logs Large Query Scenario - Offset Bug再び着手できるかも @rlhagerm が 198 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
awsdocs/aws-doc-sdk-examples#7873 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
[Enhancement]: Update S3 Go code examples to use feature/s3/transfermanager instead of deprecated feature/s3/manager再び着手できるかも @brmur が 198 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
awsdocs/aws-doc-sdk-examples#7872 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
awsdocs/aws-doc-sdk-examples の issue をすべて見る
似ている issue
-
面渣逆袭Spring事务传播机制勘误オープン
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
itwanger/toBeBetterJavaer#218 ·
-
Markdown and Astro language servers do not start when the project path contains a non-ASCII character or a space対応中かも @RoiSoleil が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eclipse-wildwebdeveloper/wildwebdeveloper#2277 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
johanhaleby/occurrent#1462 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
SasanLabs/VulnerableApp#912 ·
メンテナーはふだん 1 日以内に返信
-
area/build area/events area/storage area/storage/kafkasql area/storage/sql
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Apicurio/apicurio-registry#11079 ·
メンテナーはふだん 1 日以内に返信