We have {{ count }} items: {{ items.join(', ') }}
z.object({
total: z.number().max(count),
items: z.array(z.enum(items))
})
```
--------------------------------
### Azure OpenAI Configuration Example
Source: https://microsoft.github.io/poml/stable/vscode/configuration
Example configuration for using Azure OpenAI, including provider, model deployment name, API key, URL, and API version.
```json
{
"poml.languageModel.provider": "microsoft",
"poml.languageModel.model": "my-gpt4-deployment",
"poml.languageModel.apiKey": "your-azure-api-key",
"poml.languageModel.apiUrl": "https://your-resource.openai.azure.com/",
"poml.languageModel.apiVersion": "2024-02-15-preview"
}
```
--------------------------------
### Chat Prompt Example
Source: https://microsoft.github.io/poml/stable/python/reference/prompt
Provides an example of creating a prompt intended for chat interactions using the `chat` parameter.
```python
from prompt import example
example(caption='Chat Prompt', chat=True)
```
--------------------------------
### Jinja2/f-string Prompt Template Example
Source: https://microsoft.github.io/poml/stable/python/integration/langchain
Example of a basic prompt template using Langchain's PromptTemplate, suitable for string interpolation and simple logic.
```python
from langchain.prompts import PromptTemplate
prompt_template = PromptTemplate.from_template(
"Answer the question as if you are {person}, fully embodying their style, "
"wit, personality, and habits of speech. The question is: {question}"
)
```
--------------------------------
### ExampleOutput()
Source: https://microsoft.github.io/poml/stable/typescript/reference/components
Represents an example output, typically spoken by an AI in a chat context. Can be customized with a caption.
```APIDOC
## ExampleOutput()
### Description
ExampleOutput (`