You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The loop constructs also allow to build an object:
485
+
```yaml
486
+
--8<-- "./examples/tutorial/for_object.pdl"
487
+
```
488
+
489
+
This results in the following output:
490
+
491
+
```
492
+
{"Bob": 1, "Carol": 2, "David": 3, "Ernest": 4}
493
+
```
494
+
495
+
512
496
## Roles and Chat Templates
513
497
514
498
Consider again the chatbot example ([file](https://github.com/IBM/prompt-declaration-language//blob/main/examples/tutorial/conditionals_loops.pdl)). By default blocks have role `user`, except for model call blocks, which have role `assistant`.
0 commit comments