A prompt defined with llm-prompt is a template, with placeholders that the module will fill in. The llm-prompt module provides helper functions to create prompts that can incorporate data from your application. OpenRouter also supports this, and requires the decide-model to be set on it. Decisions can be synchronous calls without significant wait times for the user, since they return very quickly (in the low hundreds of milliseconds, typically), and are extremely cheap. For video and audio, the user should be steered towards the correct models to use, because most models do not support video and audio. This can happen with just some tools, while others have succeeded.
The various chat APIs will execute the functions defined in tools slot with the arguments supplied by the LLM. The default return value is text except for when tools are called, in which case it is a record of the return values of the tools called. This is mostly for those who want to use Google Cloud specifically, most users should use Gemini instead, which is easier to set up.
The way to call tools is to attach a list of tools to the tools slot in the prompt. However, even for LLMs that handle tool use, there is sometimes a difference in the capabilities, for example in the ability to handle nested argument types. Because not all providers support tool use when streaming, streaming-tool-use indicates the ability to use tool uses in llm-chat-streaming.
If set, the name of the runtime, used as the value of the RTS command line option for tools. This version is provided by AdaCore, and they support users using it. This version is provided by AdaCore, but they do not support users using it.
The list is passed to tools via the GPR_PROJECT_PATH process environment variable in the process used to run the gnat and gpr_query tools. Setting this in the project file reinitializes all options for the compiler, so it must occur before any compiler-specific project variable. Here is the list of variables valid defined by Ada mode; Project files in Wisi User Guide for the variables defined by wisi. Wisi defines some project variables, Ada mode defines some, others are defined by the compiler and the cross reference view the referenced page tool. Any time you have a main project that depends on other projects that are not in the same directory tree, you will have this problem. If you’ve already created it and run the tutorial, restore the compilation error in hello_pkg.adb; delete Ada.Text_IO.
The `setup’ macro simplifies repetitive configuration patterns, by providing context-sensitive local macros in `setup’ bodies. In order to avoid this problem, the basic completion style should be specified for the file completion category, such that basic is tried before orderless. The underlying issue is that completing-read always allows you to exit with the empty string, which is called the null completion, even if the REQUIRE-MATCH argument is non-nil.
For all callbacks, the callback will be executed in the buffer the function was first called from. Because of this tradeoff, we have decided to warn the user when using non-free LLMs (which is every LLM supported right now except the fake one). For example, not every model supports reasoning, but if the user chooses a model without it, and the client sets a reasoning level, this won’t result in an error. Mostly this is of use to programmatic clients of the llm package, but end users can also use it to understand what will be sent to the LLMs.
The function llm-capabilities will return a list with tool-use in it if the LLM supports tool use. Not every LLM can handle tool use, and those that do not will ignore the tools entirely. These errors follow a hierarchy, allowing you to catch errors at different levels of specificity. Similarly, don’t directly create a prompt with make-llm-chat-prompt, because it is easy to create something that wouldn’t work for all providers. Do not attempt to read or manipulate llm-chat-prompt-interactions after initially setting it up for the first time, because you are likely to make changes that only work for some providers.