@@ -27,6 +27,7 @@ Table of Contents *CopilotChat-table-of-contents*
27275. API Reference | CopilotChat-api-reference |
2828 - Core | CopilotChat-core |
2929 - Chat Window | CopilotChat-chat-window |
30+ - Prompt parser | CopilotChat-prompt-parser |
3031 - Example Usage | CopilotChat-example-usage |
31326. Development | CopilotChat-development |
3233 - Setup | CopilotChat-setup |
@@ -473,9 +474,6 @@ CORE *CopilotChat-core*
473474 -- Basic Chat Functions
474475 chat.ask(prompt, config) -- Ask a question with optional config
475476 chat.response() -- Get the last response text
476- chat.resolve_prompt() -- Resolve prompt references
477- chat.resolve_tools() -- Resolve tools that are available for automatic use by LLM
478- chat.resolve_model() -- Resolve model from prompt (WARN: async, requires plenary.async.run)
479477
480478 -- Window Management
481479 chat.open(config) -- Open chat window with optional config
@@ -534,6 +532,17 @@ You can also access the chat window UI methods through the `chat.chat` object:
534532<
535533
536534
535+ PROMPT PARSER *CopilotChat-prompt-parser*
536+
537+ >lua
538+ local parser = require("CopilotChat.prompts")
539+
540+ parser.resolve_prompt() -- Resolve prompt references
541+ parser.resolve_tools() -- Resolve tools that are available for automatic use by LLM
542+ parser.resolve_model() -- Resolve model from prompt (WARN: async, requires plenary.async.run)
543+ <
544+
545+
537546EXAMPLE USAGE *CopilotChat-example-usage*
538547
539548>lua
0 commit comments