Let’s use the following Prolog rules in the file family.pl:parent(john, bianca, mary).
parent(john, bianca, michael).
parent(peter, patricia, jennifer).
partner(X, Y) :- parent(X, Y, _).
schema = PrologRunnable.create_schema("parent", ["men", "women", "child"])config = PrologConfig( rules_file=TEST_SCRIPT, query_schema=schema,)prolog_tool = PrologTool( prolog_config=config, name="family_query", description=""" Query family relationships using Prolog. parent(X, Y, Z) implies only that Z is a child of X and Y. Input can be a query string like 'parent(john, X, Y)' or 'john, X, Y'" You have to specify 3 parameters: men, woman, child. Do not use quotes. """,)