BotSharp/docs/llm/template.md

9 lines
392 B
Markdown
Raw Normal View History

2023-08-18 04:27:07 +00:00
# Template
We can define the prompt as a template, and the template can be changed according to variables, so that a instruction file can be used to generate a dynamic prompt.
`BotSharp` uses [liquid](https://shopify.github.io/liquid/) templates to support various complex dynamic prompt engineering.
`ITemplateRender`
```csharp
bool Render(Agent agent, Dictionary<string, object> dict)
```