pipelines.agent.tools

Agent tool utilities

source

fromdocs

 fromdocs (target, config)

*Creates a tool from method documentation.

Args: target: target object or function config: tool configuration

Returns: Tool*


source

FunctionTool

 FunctionTool (config)

Creates a FunctionTool. A FunctionTool takes descriptive configuration and injects it along with a target function into an LLM prompt.


source

createtool

 createtool (target, config=None)

*Creates a new Tool.

Args: target: target object or function config: optional tool configuration

Returns: Tool*


source

VectorStoreTool

 VectorStoreTool (name:str, description:str,
                  store:onprem.ingest.base.VectorStore)

Tool to execute an VectorStore search.