Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/content/docs/blades/tutorials/03-prompts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
- Error Handling: Always check for errors during template rendering and Prompt construction to ensure application robustness.