pipelines.agent.tools

Agent tool utilities

source

fromdocs


def fromdocs(
    target, config
):

Creates a tool from method documentation.

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

Returns: Tool


source

FunctionTool


def FunctionTool(
    config
):

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


source

createtool


def createtool(
    target, config:NoneType=None
):

Creates a new Tool.

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

Returns: Tool


source

VectorStoreTool


def VectorStoreTool(
    name:str, description:str, store:VectorStore
):

Tool to execute an VectorStore search.