Skip to content

Commit

Permalink
added complete example
Browse files Browse the repository at this point in the history
  • Loading branch information
smyja committed Mar 27, 2023
1 parent 6ce6663 commit 027208d
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 2 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,45 @@ spec=("""
<rail version="0.1">
<output>
<object name="movie" format="length: 2">
<string
name="summary"
description="the summary section of the movie"
format="length: 200 240"
on-fail-length="noop"
/>
<object name="cast" description="The cast in the movie" format="length: 3">
<list name="starring">
<string format="two-words"
on-fail-two-words="reask"
description="The starring section for the movie and roles"
/>
</list>
<list name="guest_starring">
<string format="two-words"
on-fail-two-words="reask"
description="The Guest starring section and roles"
/>
</list>
<list name="co-starring">
<string format="two-words"
on-fail-two-words="reask"
description="the starring section"
/>
</list>
</object>
</object>
</output>
<prompt>
Query string here.
Expand Down
41 changes: 39 additions & 2 deletions examples/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,45 @@
spec=("""
<rail version="0.1">
<output>
</output>
<output>
<object name="movie" format="length: 2">
<string
name="summary"
description="the summary section of the movie"
format="length: 200 240"
on-fail-length="noop"
/>
<object name="cast" description="The cast in the movie" format="length: 3">
<list name="starring">
<string format="two-words"
on-fail-two-words="reask"
description="The starring section for the movie and roles"
/>
</list>
<list name="guest_starring">
<string format="two-words"
on-fail-two-words="reask"
description="The Guest starring section and roles"
/>
</list>
<list name="co-starring">
<string format="two-words"
on-fail-two-words="reask"
description="the starring section"
/>
</list>
</object>
</object>
</output>
<prompt>
Expand Down

0 comments on commit 027208d

Please sign in to comment.