Liking cljdoc? Tell your friends :D

wagoe.ai.core.prompts

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.
raw docstring

admin-entity-messagesclj

(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}]
sourceraw docstring

build-admin-entity-system-promptclj

(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.
sourceraw docstring

build-admin-entity-user-promptclj

(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.
sourceraw docstring

build-docs-system-promptclj

(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.
sourceraw docstring

build-docs-user-promptclj

(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.
sourceraw docstring

build-error-explainer-system-promptclj

(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.
sourceraw docstring

build-error-explainer-user-promptclj

(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.
sourceraw docstring

build-scaffolding-system-promptclj

(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.
sourceraw docstring

build-scaffolding-user-promptclj

(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.
sourceraw docstring

build-setup-parse-system-promptclj

(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.
sourceraw docstring

build-setup-parse-user-promptclj

(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.
sourceraw docstring

build-sql-copilot-system-promptclj

(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.
sourceraw docstring

build-sql-copilot-user-promptclj

(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.
sourceraw docstring

build-test-generator-system-promptclj

(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.
sourceraw docstring

build-test-generator-user-promptclj

(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.
sourceraw docstring

docs-messagesclj

(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}]
sourceraw docstring

error-explainer-messagesclj

(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}]
sourceraw docstring

refactor-fcis-messagesclj

(refactor-fcis-messages ns-name source-code violations)

Build messages for FC/IS violation refactoring guidance.

Build messages for FC/IS violation refactoring guidance.
sourceraw docstring

review-messagesclj

(review-messages ns-name source-code)

Build messages for AI code review of a namespace.

Build messages for AI code review of a namespace.
sourceraw docstring

scaffolding-messagesclj

(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}]
sourceraw docstring

setup-parse-messagesclj

(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}]
sourceraw docstring

sql-copilot-messagesclj

(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}]
sourceraw docstring

test-generator-messagesclj

(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}]
sourceraw docstring

test-ideas-messagesclj

(test-ideas-messages ns-name source-code existing-tests)

Build messages for suggesting missing test cases.

Build messages for suggesting missing test cases.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close