A reference to a tool that the user manually attached to their request, either using the #-syntax inline, or as an attachment via the paperclip button.

Fields

@:optionaloptionalread onlyrange:Null<{start:Int, end:Int}>

The start and end index of the reference in the {@link ChatRequest.prompt prompt}. When undefined, the reference was not part of the prompt text.

Note that the indices take the leading #-character into account which means they can be used to modify the prompt as-is.

read onlyname:String

The tool name. Refers to a tool listed in {@link lm.tools}.