Prolog Tools
class PrologTools(prologResult: PrologProjectionResult, prologSchema: PrologSchema, entityNames: Map<String, String> = emptyMap())
Prolog tools that can be invoked by an LLM to query a knowledge base.
Parameters
prolog Result
Prolog facts from projection
prolog Schema
Schema with predicate mappings and rules
entity Names
Mapping of entity IDs to human-readable names
Constructors
Link copied to clipboard
constructor(prologResult: PrologProjectionResult, prologSchema: PrologSchema, entityNames: Map<String, String> = emptyMap())
Functions
Link copied to clipboard
List all known entities with their names. Use this to find the correct entity name to use in queries.
Link copied to clipboard
List available predicates in the knowledge base.
Link copied to clipboard
Query the Prolog knowledge base. Returns all matching results with variable bindings.