BaseToolkit

class BaseToolkit:

Base class for toolkits.

Parameters:

  • timeout (Optional[float]): The timeout for the toolkit.

init

def __init__(self, timeout: Optional[float] = None):

init_subclass

def __init_subclass__(cls, **kwargs):

get_tools

def get_tools(self):

Returns:

List[FunctionTool]: A list of FunctionTool objects representing the functions in the toolkit.

run_mcp_server

def run_mcp_server(self, mode: Literal['stdio', 'sse', 'streamable-http']):

Run the MCP server in the specified mode.

Parameters:

  • mode (Literal["stdio", "sse", "streamable-http"]): The mode to run the MCP server in.