Alex Yang cdd59f5a21 fix: code
2024-04-12 22:35:07 -05:00
2024-04-12 22:33:30 -05:00
2024-04-12 22:35:07 -05:00
2024-04-12 02:48:04 -05:00
2024-04-12 02:49:58 -05:00
2024-04-12 02:48:04 -05:00
2024-04-12 02:48:04 -05:00
2024-04-12 02:56:18 -05:00
2024-04-12 22:33:30 -05:00

@llamaindex/tool

Transform JS function for LLM tool call.

  • OpenAI
  • 🚧ClaudeAI
  • LlamaIndexTS
  • 🚧LangChainJS

Usage

Node.js

node --import tsx --import @llamaindex/tool/register ./app.ts

Vite (WIP)

import { defineConfig } from 'vite'
import tool from '@llamaindex/tool/vite'

export default defineConfig({
  plugins: [
    tool()
  ]
})

Next.js (WIP)

// next.config.js
const withTool = require('@llamaindex/tool/next')

const config = {
  // Your Next.js config
}
module.exports = withTool(config)
S
Description
No description provided
Readme 229 KiB
Languages
TypeScript 100%