diff --git a/src/content/docs/blades/tutorials/03-prompts.md b/src/content/docs/blades/tutorials/03-prompts.md index 7db4fdcb8..44cbb5b5d 100644 --- a/src/content/docs/blades/tutorials/03-prompts.md +++ b/src/content/docs/blades/tutorials/03-prompts.md @@ -45,8 +45,8 @@ The tool role, representing the result of executing an external tool, function, ### Message In `Blades`, all message roles support input of multiple message types: - `TextPart`: Plain text content -- `FilePart`: File content -- `DataPart`: File reference +- `FilePart`: File reference +- `DataPart`: File content - `ToolPart`: Tool output content You can use the method corresponding to each role to add one or more pieces of information. Here, `blades.UserMessage` is used as an example: @@ -197,4 +197,4 @@ func main() { - Clear System Instructions: Provide clear, specific instructions in system messages to help the model better understand task requirements. - Use Templates Appropriately: Leverage templating functionality to improve code reusability and maintainability, especially in scenarios requiring dynamic Prompt generation. - Manage Context Length: Pay attention to controlling Prompt length to avoid exceeding the model's maximum context limit. -- Error Handling: Always check for errors during template rendering and Prompt construction to ensure application robustness. \ No newline at end of file +- Error Handling: Always check for errors during template rendering and Prompt construction to ensure application robustness.