Build Framework Rules

Build framework-specific rules using LLM.

This endpoint generates a JSON file with framework-specific rules by:

  1. Validating that the target exists and is a Framework
  2. Generating rules using LLM with a specialized prompt
  3. Saving the rules to tools_api/data/{repository_id}/tool_builder/{target_key}/rules.json

Args: body: Request body with target_key, repository_id, and optional framework_version authenticated_user: Authenticated user making the request handler: Handler for processing the request credentials: Authorization credentials

Returns: BuildFrameworkRulesResponse: Response with status and rules file path

Raises: HTTPException 422: If target doesn't exist, is not a Framework, or validation fails HTTPException 400: For other errors during processing

post/tools/v1/build

Request

  • Base URL: https://api.qualityclouds.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.qualityclouds.ai/tools/v1/build
  • Auth: one of:
    • HTTP bearer
    • OpenID Connect (https://account.qualityclouds.com//realms/ai-production/.well-known/openid-configuration)

Request body

target_keystring required
repository_idstring required
framework_versionstring nullable
num_rules_to_buildinteger nullable
build_instructionsstring nullable
impact_areas_idsstring[] nullable
tool_namestring nullable
ce_type_idsstring[] nullable
agent_feature_idsstring[] nullable
stack_profile_idstring uuid nullable
files_whiteliststring[] nullable

Restrict all generated rules to these glob path patterns. Examples: 'src/controllers//*.php', 'app/Http/', '**/Service.py'. Uses forward slashes and standard glob wildcards ( = single level, ** = recursive). Leave empty or null to let the LLM decide per rule.

Response

Successful Response

status'success'
messagestring required
rules_pathstring required
tool_idstring required

Changes

No recorded changes to this operation across all 1 revision of this API.