Skip to main content

Module codemode

Module codemode 

Source
Expand description

What other parts of a session know about the codemode tool, which yapi-ext implements: its name, schema and prompt text, and how to tell the genuine tool from another extension’s tool of the same name.

Constants§

GUIDELINE
Its rule in the system prompt.
NAME
The tool’s name.
SNIPPET
Its line in the system prompt’s tool list.

Functions§

is_codemode_tool
Whether tool is the codemode tool, as pi’s isCodemodeTool, rather than another extension’s tool of that name.
parameters
Its argument schema.