Memco

Interface ToolsOptions

What Session.tools takes.

// For a host that names a memory's tools `<slot>__<tool>`.
const toolset = session.tools({ prefix: 'memco__' })
toolset.tools[0].name // 'memco__search'
interface ToolsOptions {
    prefix?: string;
}
Index
prefix?: string

What every tool name starts with: memco_ unless given.

Give the prefix a host calls the tools by, when it renames them. Every description and rendered result then names the tools that way, so a model is never pointed at a name it was not offered; pass the same prefix to briefing. A tool's error is the exception: it is reported as the service wrote it, since it may quote what the model sent.

Model providers accept tool names of letters, digits, _ and -, at most 64 characters, so a prefix that cannot form one is refused with a MemcoConfigError. null is the same as leaving it out.

On this page