Skip to content

Commit 45f674c

Browse files
committed
fix: add list of tools from sparql queries
1 parent cfb3b8c commit 45f674c

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

src/marketplace/applications/sanax/agents/SanaxAgent.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,29 @@ def create_agent(
7676
# First, let's get the template tools that will be available
7777
from src.core.templatablesparqlquery import get_tools
7878
templates_tools = [
79+
# Person queries
80+
"sanax_get_persons_by_name_prefix",
81+
"sanax_search_persons_by_name",
82+
"sanax_list_persons",
7983
"sanax_get_information_about_person",
80-
"sanax_get_company_employees",
84+
85+
# Company queries
86+
"sanax_search_companies_by_name",
87+
"sanax_list_companies",
88+
"sanax_get_company_employees",
89+
90+
# Position queries
8191
"sanax_get_people_holding_position",
82-
"sanax_search_persons_by_name",
83-
"sanax_search_companies_by_name",
84-
"sanax_get_persons_by_name_prefix",
92+
93+
# Location queries
94+
"sanax_search_locations_by_name",
95+
"sanax_list_locations",
8596
"sanax_get_people_located_in_location",
86-
"sanax_count_people_located_in_location",
87-
"sanax_count_people_working_for_company",
97+
98+
# Timeline queries
8899
"sanax_get_people_with_most_recent_job_starts",
89-
"sanax_get_people_with_oldest_job_starts",
90-
"sanax_get_people_with_longest_tenure",
91-
"sanax_search_locations_by_name"
100+
"sanax_get_people_with_oldest_job_starts",
101+
"sanax_get_people_with_longest_tenure"
92102
]
93103
template_tools_list = get_tools(templates_tools)
94104

0 commit comments

Comments
 (0)