mirror of
https://github.com/voson-wang/toon.git
synced 2026-01-29 23:34:10 +08:00
docs: add tip about array length in TOON format
This commit is contained in:
@@ -301,6 +301,9 @@ user:
|
|||||||
|
|
||||||
### Arrays
|
### Arrays
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> TOON includes the array length in brackets (e.g., `items[3]` or `[2]`). This explicit count helps LLMs track the number of elements, reducing errors when generating or validating structured output.
|
||||||
|
|
||||||
#### Primitive Arrays (Inline)
|
#### Primitive Arrays (Inline)
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|||||||
Reference in New Issue
Block a user