Pure prompt-building functions for AI features.
FC/IS rule: no I/O, no logging, no exceptions here. All functions are pure transformations from data to prompt strings/messages.
Pure prompt-building functions for AI features. FC/IS rule: no I/O, no logging, no exceptions here. All functions are pure transformations from data to prompt strings/messages.
(admin-entity-messages description existing-entities)Return a messages vector for the admin entity generator.
Args: description - NL entity description existing-entities - seq of EDN strings for existing entity configs
Returns: [{:role :system :content str} {:role :user :content str}]
Return a messages vector for the admin entity generator.
Args:
description - NL entity description
existing-entities - seq of EDN strings for existing entity configs
Returns:
[{:role :system :content str} {:role :user :content str}](build-admin-entity-system-prompt existing-entities)Build the system prompt for the admin entity generator.
Args: existing-entities - seq of EDN strings for existing entity configs
Returns a string.
Build the system prompt for the admin entity generator. Args: existing-entities - seq of EDN strings for existing entity configs Returns a string.
(build-admin-entity-user-prompt description)Build the user message for admin entity generation.
Args: description - NL description of the entity
Returns a string.
Build the user message for admin entity generation. Args: description - NL description of the entity Returns a string.
(build-docs-system-prompt doc-type)Build the system prompt for the documentation wizard.
Args: doc-type - :agents, :openapi, or :readme
Returns a string.
Build the system prompt for the documentation wizard. Args: doc-type - :agents, :openapi, or :readme Returns a string.
(build-docs-user-prompt module-path source-files doc-type)Build the user message for documentation generation.
Args: module-path - path string to the module (e.g. 'libs/user') source-files - map of {relative-path content-str} doc-type - :agents, :openapi, or :readme
Returns a string.
Build the user message for documentation generation.
Args:
module-path - path string to the module (e.g. 'libs/user')
source-files - map of {relative-path content-str}
doc-type - :agents, :openapi, or :readme
Returns a string.(build-error-explainer-system-prompt)Build the system prompt for the error explainer feature.
Returns a string.
Build the system prompt for the error explainer feature. Returns a string.
(build-error-explainer-user-prompt stacktrace source-files)Build the user message for error explaining.
Args: stacktrace - stack trace string source-files - map of {file-path content-str} for referenced files
Returns a string.
Build the user message for error explaining.
Args:
stacktrace - stack trace string
source-files - map of {file-path content-str} for referenced files
Returns a string.(build-scaffolding-system-prompt)Build the system prompt for natural-language module scaffolding.
Returns a string.
Build the system prompt for natural-language module scaffolding. Returns a string.
(build-scaffolding-user-prompt description existing-modules)Build the user message for NL scaffolding.
Args: description - natural language description string existing-modules - seq of existing module name strings (for context)
Returns a string.
Build the user message for NL scaffolding. Args: description - natural language description string existing-modules - seq of existing module name strings (for context) Returns a string.
(build-setup-parse-system-prompt)Build the system prompt for parsing NL config descriptions into setup specs.
Returns a string.
Build the system prompt for parsing NL config descriptions into setup specs. Returns a string.
(build-setup-parse-user-prompt description)Build the user message for setup parsing.
Args: description - NL description of the desired setup
Returns a string.
Build the user message for setup parsing. Args: description - NL description of the desired setup Returns a string.
(build-sql-copilot-system-prompt)Build the system prompt for the SQL copilot feature.
Returns a string.
Build the system prompt for the SQL copilot feature. Returns a string.
(build-sql-copilot-user-prompt description schema-context)Build the user message for SQL copilot.
Args: description - NL description of the query schema-context - string describing available tables and fields
Returns a string.
Build the user message for SQL copilot. Args: description - NL description of the query schema-context - string describing available tables and fields Returns a string.
(build-test-generator-system-prompt)Build the system prompt for the test generator feature.
Returns a string.
Build the system prompt for the test generator feature. Returns a string.
(build-test-generator-user-prompt source-file source-code test-type)Build the user message for test generation.
Args: source-file - path string of the source file source-code - content of the source file test-type - :unit, :integration, or :contract
Returns a string.
Build the user message for test generation. Args: source-file - path string of the source file source-code - content of the source file test-type - :unit, :integration, or :contract Returns a string.
(docs-messages module-path source-files doc-type)Return a messages vector for the documentation wizard.
Args: module-path - module root path string source-files - map of {relative-path content-str} doc-type - :agents, :openapi, or :readme
Returns: [{:role :system :content str} {:role :user :content str}]
Return a messages vector for the documentation wizard.
Args:
module-path - module root path string
source-files - map of {relative-path content-str}
doc-type - :agents, :openapi, or :readme
Returns:
[{:role :system :content str} {:role :user :content str}](error-explainer-messages stacktrace source-files)Return a messages vector for the error explainer feature.
Args: stacktrace - stack trace string source-files - map of {file-path content-str}
Returns: [{:role :system :content str} {:role :user :content str}]
Return a messages vector for the error explainer feature.
Args:
stacktrace - stack trace string
source-files - map of {file-path content-str}
Returns:
[{:role :system :content str} {:role :user :content str}](refactor-fcis-messages ns-name source-code violations)Build messages for FC/IS violation refactoring guidance.
Build messages for FC/IS violation refactoring guidance.
(review-messages ns-name source-code)Build messages for AI code review of a namespace.
Build messages for AI code review of a namespace.
(scaffolding-messages description existing-modules)Return a messages vector for the scaffolding feature.
Args: description - NL description string existing-modules - seq of existing module name strings
Returns: [{:role :system :content str} {:role :user :content str}]
Return a messages vector for the scaffolding feature.
Args:
description - NL description string
existing-modules - seq of existing module name strings
Returns:
[{:role :system :content str} {:role :user :content str}](setup-parse-messages description)Return a messages vector for the setup parser.
Args: description - NL setup description
Returns: [{:role :system :content str} {:role :user :content str}]
Return a messages vector for the setup parser.
Args:
description - NL setup description
Returns:
[{:role :system :content str} {:role :user :content str}](sql-copilot-messages description schema-context)Return a messages vector for the SQL copilot feature.
Args: description - NL description string schema-context - string describing tables/fields
Returns: [{:role :system :content str} {:role :user :content str}]
Return a messages vector for the SQL copilot feature.
Args:
description - NL description string
schema-context - string describing tables/fields
Returns:
[{:role :system :content str} {:role :user :content str}](test-generator-messages source-file source-code test-type)Return a messages vector for the test generator feature.
Args: source-file - path string source-code - file content string test-type - :unit, :integration, or :contract
Returns: [{:role :system :content str} {:role :user :content str}]
Return a messages vector for the test generator feature.
Args:
source-file - path string
source-code - file content string
test-type - :unit, :integration, or :contract
Returns:
[{:role :system :content str} {:role :user :content str}](test-ideas-messages ns-name source-code existing-tests)Build messages for suggesting missing test cases.
Build messages for suggesting missing test cases.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |