Skip to content

Commit bd8b48e

Browse files
chore(doc): auto generate docs
1 parent cb8fb0f commit bd8b48e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

doc/CopilotChat.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Table of Contents *CopilotChat-table-of-contents*
2727
5. 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|
3132
6. 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+
537546
EXAMPLE USAGE *CopilotChat-example-usage*
538547

539548
>lua

0 commit comments

Comments
 (0)