@rcrsr/rill-agent-ext-ahi
v0.21.0
Published
rill extension for Agent Host Interface (AHI) integration
Downloads
194
Maintainers
Readme
@rcrsr/rill-agent-ext-ahi
rill extension for the Agent Host Interface (AHI). Mounts a dict of <agentName> callables so a rill agent can call other agents over HTTP. Uses static URL resolution with ${VAR_NAME} environment variable substitution.
Install
npm install @rcrsr/rill-agent-ext-ahiQuick Start
import { createAhiExtension } from '@rcrsr/rill-agent-ext-ahi';
const ext = createAhiExtension({
agents: {
summarizer: { url: 'http://localhost:3001' },
classifier: { url: 'http://localhost:3002' },
},
timeout: 10000,
});Mount the extension in rill-config.json under extensions.mounts (with its
agents map under extensions.config), then hoist the mount with
use<ext:...> and call an agent by member access:
use<ext:ahi> => $ahi
$ahi.summarizer([text: "Long article content..."]) => $result
$result -> logahi is the mount name; summarizer is a configured agent. Calling the mount
name directly without the use<ext:ahi> => $ahi hoist raises
RILL_R006 Unknown function.
Documentation
See full documentation for configuration, error mapping, and in-process binding.
License
MIT
