Skip to content

Commit cbfd4b0

Browse files
committed
fix(examples): use BambooHR tools instead of HiBob
Address PR review feedback requesting actual existing Falcon connector tools. Migrate all examples from hibob_* to bamboohr_* tools which are confirmed to exist in production Falcon connectors. Changes include: - file_uploads.py: bamboohr_upload_employee_document - index.py: bamboohr_list_employees - openai_integration.py: bamboohr_get_employee, bamboohr_*_employments - All other examples: bamboohr_* action filters This ensures examples demonstrate tools that actually exist in the StackOne platform.
1 parent 28042ba commit cbfd4b0

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

examples/crewai_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
def crewai_integration():
2020
toolset = StackOneToolSet()
21-
tools = toolset.fetch_tools(actions=["hibob_*"], account_ids=[account_id])
21+
tools = toolset.fetch_tools(actions=["bamboohr_*"], account_ids=[account_id])
2222

2323
# CrewAI uses LangChain tools natively
2424
langchain_tools = tools.to_langchain()

examples/file_uploads.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Example demonstrating file upload functionality using StackOne.
3-
Shows how to upload an employee document using an HRIS integration.
3+
Shows how to upload an employee document using a BambooHR integration.
44
55
This example is runnable with the following command:
66
```bash
@@ -24,7 +24,7 @@
2424
"""
2525
# Resume content
2626
27-
This is a sample resume content that will be uploaded using the `hibob_upload_employee_document` tool.
27+
This is a sample resume content that will be uploaded using the `bamboohr_upload_employee_document` tool.
2828
"""
2929

3030
resume_content = """
@@ -46,7 +46,7 @@
4646
"""
4747
# Upload employee document
4848
49-
This function uploads a resume using the `hibob_upload_employee_document` tool.
49+
This function uploads a resume using the `bamboohr_upload_employee_document` tool.
5050
5151
"""
5252

@@ -57,9 +57,9 @@ def upload_employee_document() -> None:
5757
resume_file.write_text(resume_content)
5858

5959
toolset = StackOneToolSet()
60-
tools = toolset.fetch_tools(actions=["hibob_*"], account_ids=[account_id])
60+
tools = toolset.fetch_tools(actions=["bamboohr_*"], account_ids=[account_id])
6161

62-
upload_tool = tools.get_tool("hibob_upload_employee_document")
62+
upload_tool = tools.get_tool("bamboohr_upload_employee_document")
6363
assert upload_tool is not None
6464

6565
with open(resume_file, "rb") as f:

examples/index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@
7272
def quickstart():
7373
toolset = StackOneToolSet()
7474

75-
# Get all HiBob-related tools using MCP-backed fetch_tools()
76-
tools = toolset.fetch_tools(actions=["hibob_*"], account_ids=[account_id])
75+
# Get all BambooHR-related tools using MCP-backed fetch_tools()
76+
tools = toolset.fetch_tools(actions=["bamboohr_*"], account_ids=[account_id])
7777

7878
# Use a specific tool
79-
employee_tool = tools.get_tool("hibob_list_employees")
79+
employee_tool = tools.get_tool("bamboohr_list_employees")
8080
assert employee_tool is not None
8181

8282
employees = employee_tool.execute()

examples/langchain_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
def langchain_integration() -> None:
2121
toolset = StackOneToolSet()
22-
tools = toolset.fetch_tools(actions=["hibob_*"], account_ids=[account_id])
22+
tools = toolset.fetch_tools(actions=["bamboohr_*"], account_ids=[account_id])
2323

2424
# Convert to LangChain format and verify
2525
langchain_tools = tools.to_langchain()

examples/meta_tools_example.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def example_meta_tools_basic():
2424
toolset = StackOneToolSet()
2525

2626
# Get all available tools using MCP-backed fetch_tools()
27-
all_tools = toolset.fetch_tools(actions=["hibob_*"])
28-
print(f"Total HiBob tools available: {len(all_tools)}")
27+
all_tools = toolset.fetch_tools(actions=["bamboohr_*"])
28+
print(f"Total BambooHR tools available: {len(all_tools)}")
2929

3030
# Get meta tools for dynamic discovery
3131
meta_tools = all_tools.meta_tools()
@@ -93,9 +93,9 @@ def example_with_openai():
9393
# Initialize StackOne toolset
9494
toolset = StackOneToolSet()
9595

96-
# Get HiBob tools and their meta tools using MCP-backed fetch_tools()
97-
hibob_tools = toolset.fetch_tools(actions=["hibob_*"])
98-
meta_tools = hibob_tools.meta_tools()
96+
# Get BambooHR tools and their meta tools using MCP-backed fetch_tools()
97+
bamboohr_tools = toolset.fetch_tools(actions=["bamboohr_*"])
98+
meta_tools = bamboohr_tools.meta_tools()
9999

100100
# Convert to OpenAI format
101101
openai_tools = meta_tools.to_openai()
@@ -142,7 +142,7 @@ def example_with_langchain():
142142
toolset = StackOneToolSet()
143143

144144
# Get tools and convert to LangChain format using MCP-backed fetch_tools()
145-
tools = toolset.fetch_tools(actions=["hibob_list_*"])
145+
tools = toolset.fetch_tools(actions=["bamboohr_list_*"])
146146
langchain_tools = tools.to_langchain()
147147

148148
# Get meta tools as well

examples/openai_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def openai_integration() -> None:
3636
# Filter tools to only the ones we need to avoid context window limits
3737
tools = toolset.fetch_tools(
3838
actions=[
39-
"hibob_get_employee",
40-
"hibob_list_employee_employments",
41-
"hibob_get_employee_employment",
39+
"bamboohr_get_employee",
40+
"bamboohr_list_employee_employments",
41+
"bamboohr_get_employee_employment",
4242
],
4343
account_ids=[account_id],
4444
)

examples/stackone_account_ids.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ def stackone_account_ids():
1919
"""
2020
Set the account ID whilst getting tools using fetch_tools().
2121
"""
22-
tools = toolset.fetch_tools(actions=["hibob_*"], account_ids=["test_id"])
22+
tools = toolset.fetch_tools(actions=["bamboohr_*"], account_ids=["test_id"])
2323

2424
"""
2525
You can override the account ID on fetched tools.
2626
"""
2727
tools.set_account_id("a_different_id")
2828

29-
employee_tool = tools.get_tool("hibob_get_employee")
29+
employee_tool = tools.get_tool("bamboohr_get_employee")
3030
assert employee_tool is not None
3131

3232
"""

stackone_ai/integrations/langgraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from stackone_ai.integrations.langgraph import to_tool_node
88
99
toolset = StackOneToolSet()
10-
tools = toolset.fetch_tools(actions=["hibob_*"], account_ids=["..."])
10+
tools = toolset.fetch_tools(actions=["bamboohr_*"], account_ids=["..."])
1111
node = to_tool_node(tools) # langgraph.prebuilt.ToolNode
1212
"""
1313

0 commit comments

Comments
 (0)