Polyweave

@polyweave/tools (1.0.3)

Published 2026-07-10 19:11:06 +00:00 by Dvorak

Installation

@polyweave:registry=https://hub.kl1.tenere.ai/api/packages/Polyweave/npm/
npm install @polyweave/tools@1.0.3
"@polyweave/tools": "1.0.3"

About this package

tools

Tool calling wrappers for Polyweave.

Synopsis

import { createToolDuplex, toolRouter } from '@polyweave/tools';

const handler = toolRouter({
  myTool: (params) => ({ result: params.input }),
});

const duplex = createToolDuplex(handler);

Install

npm install @polyweave/tools

API

createToolDuplex(handler)

Creates a duplex tool adapter from a handler.

toolRouter

Synchronous tool routing with schema-based dispatch.

streamingToolRouter

Streaming-aware tool router supporting PROGRESS frames.

asyncToolRouter

Async tool router for long-running operations.

installer

Tool schema installer for registering tools with providers.

toolLoop

Re-entrant tool execution loop for stateful agent sessions.

createWriteFileToolDuplex(workspace), createReadFileToolDuplex(workspace), createRunCommandToolDuplex(workspace)

Built-in workspace tool duplex adapters for file I/O and command execution.

Tests

npm test

Requirements

Node.js 18 or later. ESM only.

License

MIT

Dependencies

Development Dependencies

ID Version
@rigor/core *

Peer Dependencies

ID Version
@polyweave/core *

Keywords

polyweave tools function-calling
Details
npm
2026-07-10 19:11:06 +00:00
399
John Dvorak
SEE LICENSE IN LICENSE
6.9 KiB
Assets (1)
tools-1.0.3.tgz 6.9 KiB
Versions (5) View all
1.0.8 2026-07-11
1.0.5 2026-07-11
1.0.4 2026-07-11
1.0.3 2026-07-10
1.0.2 2026-07-10