Skip to content

Commit b7cda95

Browse files
committed
Small fix
Signed-off-by: Jing Chen <[email protected]>
1 parent a745413 commit b7cda95

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

.github/workflows/run-examples-prep.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ jobs:
5050
with:
5151
python-version: ${{ matrix.python-version }}
5252
runner-os: ${{ runner.os }}
53-
# update-results: ${{ steps.parse-run-examples-config.outputs.update_results }}
54-
# check: ${{ steps.changed-pdl-files.outputs.all_changed_files }}
55-
update-results: 'true'
56-
check: '[]'
53+
update-results: ${{ steps.parse-run-examples-config.outputs.update_results }}
54+
check: ${{ steps.changed-pdl-files.outputs.all_changed_files }}
5755
head-ref: ${{ github.head_ref }}
5856

5957
# Patch config with update_results to false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
How many years ago was the discoverer of the Hudson River born? Keep in mind we are in 2025. When searching for a birthday for a person, simply ask for the name of that person.
2+
Thought: I need to find out who discovered the Hudson River and then calculate how many years ago their birthdate was.
3+
Action:
4+
[{"name": "Search", "arguments": {"topic": "Henry Hudson"}}]
5+
Observation: Henry Hudson (c. 1565 – disappeared 23 June 1611) was an English sea explorer and navigator during the early 17th century, best known for his explorations of present-day Canada and parts of the Northeastern United States.
6+
In 1607 and 1608, Hudson made two attempts on behalf of English merchants to find a rumoured Northeast Passage to Cathay via a route above the Arctic Circle. In 1609, he landed in North America on behalf of the Dutch East India Company and explored the region around the modern New York metropolitan area. Looking for a Northwest Passage to Asia on his ship Halve Maen ("Half Moon"), he sailed up the Hudson River, which was later named after him, and thereby laid the foundation for Dutch colonization of the region. His contributions to the exploration of the New World were significant and lasting. His voyages helped to establish European contact with the native peoples of North America and contributed to the development of trade and commerce.
7+
On his final expedition, while still searching for the Northwest Passage, Hudson became the first European to see Hudson Strait and the immense Hudson Bay. In 1611, after wintering on the shore of James Bay, Hudson wanted to press on to the west, but most of his crew mutinied. The mutineers cast Hudson, his son, and six others adrift; what then happened to the Hudsons and their companions is unknown.
8+
Thought: Henry Hudson discovered the Hudson River in 1609. He was born around 1565.
9+
Action:
10+
[{"name": "Calc", "arguments": {"expr": "2025 - 1565"}}]
11+
Observation: 460
12+
Henry Hudson was born around 1565, so he was approximately 460 years ago.Action:
13+
[{"name": "Finish", "arguments": {"topic": "460"}}]
14+
Observation:
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
How many years ago was the discoverer of the Hudson River born? Keep in mind we are in 2025. When searching for a birthday for a person, simply ask for the name of that person.
2+
Thought: I need to find out who discovered the Hudson River and then calculate how many years ago their birthdate was.
3+
Action:
4+
[{"name": "Search", "arguments": {"topic": "Henry Hudson"}}]
5+
Observation: Henry Hudson (c. 1565 – disappeared 23 June 1611) was an English sea explorer and navigator during the early 17th century, best known for his explorations of present-day Canada and parts of the Northeastern United States.
6+
In 1607 and 1608, Hudson made two attempts on behalf of English merchants to find a rumoured Northeast Passage to Cathay via a route above the Arctic Circle. In 1609, he landed in North America on behalf of the Dutch East India Company and explored the region around the modern New York metropolitan area. Looking for a Northwest Passage to Asia on his ship Halve Maen ("Half Moon"), he sailed up the Hudson River, which was later named after him, and thereby laid the foundation for Dutch colonization of the region. His contributions to the exploration of the New World were significant and lasting. His voyages helped to establish European contact with the native peoples of North America and contributed to the development of trade and commerce.
7+
On his final expedition, while still searching for the Northwest Passage, Hudson became the first European to see Hudson Strait and the immense Hudson Bay. In 1611, after wintering on the shore of James Bay, Hudson wanted to press on to the west, but most of his crew mutinied. The mutineers cast Hudson, his son, and six others adrift; what then happened to the Hudsons and their companions is unknown.
8+
Thought: Henry Hudson discovered the Hudson River in 1609. He was born around 1565.
9+
Action:
10+
[{"name": "Calc", "arguments": {"expr": "2025 - 1565"}}]
11+
Observation: 460
12+
Henry Hudson was born around 1565, so he was approximately 460 years ago.Action:
13+
[{"name": "Finish", "arguments": {"topic": "460"}}]

tests/test_examples_run.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
update_results: false
2-
check: []
2+
check:
3+
- examples/chatbot/chatbot.pdl
4+
- examples/demo/9-react.pdl
5+
- examples/react/demo.pdl
36
skip:
47
- examples/cldk/cldk-assistant.pdl
58
- examples/gsm8k/gsm8.pdl

0 commit comments

Comments
 (0)