Skip to content

createPrivacyAdvisorTools()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / createPrivacyAdvisorTools

createPrivacyAdvisorTools(config): DynamicStructuredTool<ToolInputSchemaBase, any, any, any>[]

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:22515

Create all tools for the Privacy Advisor agent

ToolsConfig

Tool configuration

DynamicStructuredTool<ToolInputSchemaBase, any, any, any>[]

Array of LangChain tools

const tools = createPrivacyAdvisorTools({
heliusApiKey: process.env.HELIUS_API_KEY!,
cluster: 'mainnet-beta',
})
// Use with LangChain agent
const agent = await createOpenAIToolsAgent({
llm: model,
tools,
prompt,
})