🔄 Big News! bazed.ai is now sagentic.ai. Same vision, new name!

Skip to content

@sagentic-ai/sagentic-af / toTool

toTool() ​

ts
toTool(toolLike): Tool

Convert a toolable to a tool.

Parameters ​

• toolLike: ToolLike

Tool or toolable

Returns ​

Tool

Tool

Throws ​

Error if the toolable doesn't have a tool

Source ​

src/tool.ts:122