GraphQueryTool
org.llm4s.knowledgegraph.tool.GraphQueryTool
object GraphQueryTool
Agent tool integration for graph-guided question answering.
Wraps GraphQAPipeline as a ToolFunction that an Agent can call to query a knowledge graph using natural language. The tool accepts a question and optional configuration, executes the full QA pipeline, and returns the answer with citations.
Attributes
- Example
-
import org.llm4s.knowledgegraph.tool.GraphQueryTool import org.llm4s.toolapi.ToolRegistry for { tool <- GraphQueryTool.toolSafe(llmClient, graphStore) tools = new ToolRegistry(Seq(tool)) state <- agent.run("Who does Alice work with?", tools) } yield state - Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GraphQueryTool.type
Members list
In this article