Skip to content

Commit d7d9596

Browse files
committed
Fix examples
Signed-off-by: Louis Mandel <[email protected]>
1 parent 1e88ce2 commit d7d9596

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

examples/demo/8-tools.pdl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ text:
1313
text: You are Granite, developed by IBM. You are a helpful AI assistant with access to the following tools. When a tool is required to answer the user's query, respond with <|tool_call|> followed by a JSON list of tools used. If a tool does not exist in the provided list of tools, notify the user that you do not have the ability to fulfill the request.
1414
contribute: [context]
1515
- role: tools
16-
text: ${ tools }
16+
content:
17+
text: ${ tools }
1718
contribute: [context]
1819
- "Out of 1400 participants, 400 passed the test. What percentage is that?\n"
1920
- def: actions

examples/demo/9-react.pdl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ text:
3030
text: You are Granite, developed by IBM. You are a helpful AI assistant with access to the following tools. When a tool is required to answer the user's query, respond with <|tool_call|> followed by a JSON list of tools used. If a tool does not exist in the provided list of tools, notify the user that you do not have the ability to fulfill the request.
3131
contribute: [context]
3232
- role: tools
33-
text: ${ tools }
33+
content:
34+
text: ${ tools }
3435
contribute: [context]
3536
- text:
3637
|

examples/react/demo.pdl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ text:
3030
text: You are Granite, developed by IBM. You are a helpful AI assistant with access to the following tools. When a tool is required to answer the user's query, respond with <|tool_call|> followed by a JSON list of tools used. If a tool does not exist in the provided list of tools, notify the user that you do not have the ability to fulfill the request.
3131
contribute: [context]
3232
- role: tools
33-
text: ${ tools }
33+
content:
34+
text: ${ tools }
3435
contribute: [context]
3536
- text:
3637
|

examples/tools/calc.pdl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ text:
1313
text: You are Granite, developed by IBM. You are a helpful AI assistant with access to the following tools. When a tool is required to answer the user's query, respond with <|tool_call|> followed by a JSON list of tools used. If a tool does not exist in the provided list of tools, notify the user that you do not have the ability to fulfill the request.
1414
contribute: [context]
1515
- role: tools
16-
text: ${ tools }
16+
content:
17+
text: ${ tools }
1718
contribute: [context]
1819
- "Out of 1400 participants, 400 passed the test. What percentage is that?\n"
1920
- def: actions

0 commit comments

Comments
 (0)