[Enhancement]: <Bedrock Converse Claude 3.7 Reasoning Support in Rust>
Los mantenedores suelen responder en 2 días
@brmur ya está trabajando en esto.
Desde el 3/4/2025.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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;
- Lenguaje dominante
- Java
- Estrellas
- 10.5k
- Forks
- 5.8k
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 30
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de awsdocs/aws-doc-sdk-examples
-
[Enhancement]: Add Go (v2) example: Converse API with extended/adaptive thinking (Bedrock Runtime)Quizá libre de nuevo @brmur la tomó hace 80 días y no hay ningún pull request abierto. AbiertoGo-v2 New example request
awsdocs/aws-doc-sdk-examples#8093 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Modify ListObjectVersions to also show how do list versions of only a single objectQuizá libre de nuevo @brmur la tomó hace 164 días y no hay ningún pull request abierto. AbiertoTask
awsdocs/aws-doc-sdk-examples#7914 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Create Rust DynamoDB GetItem single action exampleQuizá libre de nuevo @brmur la tomó hace 171 días y no hay ningún pull request abierto. AbiertoNew example request Rust
awsdocs/aws-doc-sdk-examples#7913 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
[Bug]: CloudWatch Logs Large Query Scenario - Offset BugQuizá libre de nuevo @rlhagerm la tomó hace 198 días y no hay ningún pull request abierto. Abierto
awsdocs/aws-doc-sdk-examples#7873 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
[Enhancement]: Update S3 Go code examples to use feature/s3/transfermanager instead of deprecated feature/s3/managerQuizá libre de nuevo @brmur la tomó hace 198 días y no hay ningún pull request abierto. Abierto
awsdocs/aws-doc-sdk-examples#7872 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de awsdocs/aws-doc-sdk-examples
Issues similares
-
面渣逆袭Spring事务传播机制勘误Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
itwanger/toBeBetterJavaer#218 ·
-
Markdown and Astro language servers do not start when the project path contains a non-ASCII character or a spacePosiblemente ocupada @RoiSoleil la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eclipse-wildwebdeveloper/wildwebdeveloper#2277 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
johanhaleby/occurrent#1462 ·
Los mantenedores suelen responder en 1 día
-
Enhancing the Issue TemplateAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
SasanLabs/VulnerableApp#912 ·
Los mantenedores suelen responder en 1 día
-
area/build area/events area/storage area/storage/kafkasql area/storage/sql
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Apicurio/apicurio-registry#11079 ·
Los mantenedores suelen responder en 1 día