1. AI
Power Guard AI
  • Getting Started
    • hello-powerguard (starts here!)
    • ai-controller-guide
    • chat-controller-guide
    • health-controller-guide
    • models-controller-guide
    • usage-controller-guide
  • AI
    • Generate AI responses for form fields
      POST
    • Generate AI text completion
      POST
    • Generate embeddings for input text
      POST
  • Chat
    • Process chat completions
      POST
    • Process chat completions
      POST
  • Health
    • Check API health status
      GET
  • Models
    • List all available models
      GET
    • Get specific model information
      GET
  • Usage
    • Get API usage statistics
      GET
    • Get API usage statistics
      POST
  • Esquemas
    • Schemas
    • CompletionRequest
    • ChatCompletionChoice
    • EmbeddingRequest
    • ChatCompletionFunction
    • FunctionParameters
    • ChatCompletionMessage
    • Message
    • ChatCompletionResponse
    • QuestionModel
    • ChatCompletionToolCall
    • QuestionRequest
    • ChatCompletionUsage
    • Choice
    • QuestionValidationRules
    • Tool
    • ChoiceMessage
    • ToolFunction
    • CompletionResponse
    • DataItem
    • EmbeddingResponse
    • HealthResponseModel
    • ModelCapabilities
    • ModelInfo
    • ResponseModel
    • Role
    • SingleReadOnlyMemory
    • SingleReadOnlySpan
    • Usage
    • UsageModel
    • UsageRequest
  1. AI

Generate AI responses for form fields

POST
/api/AI/CompleteForm
Takes a form description and questions, then generates appropriate answers in JSON format

Requisição

Parâmetros Bodyapplication/json

Examples

Respostas

🟢200OK
text/plain
Returns generated responses for form questions
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ai.thrust.com.br/api/AI/CompleteForm' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Prompt": "string",
    "Description": "string",
    "Model": "string",
    "Questions": [
        {
            "QuestionIdentifier": "string",
            "QuestionTitle": "string",
            "QuestionHint": "string",
            "QuestionIsRequired": true,
            "QuestionType": "string",
            "Prepend": "string",
            "Append": "string",
            "QuestionValidationRules": {
                "MaxLength": 0,
                "Options": [
                    "string"
                ]
            }
        }
    ]
}'
Response Response Example
{
    "replieds": {
        "property1": "string",
        "property2": "string"
    },
    "errors": {
        "property1": "string",
        "property2": "string"
    }
}
Modificado em 2026-03-30 20:59:39
Página anterior
usage-controller-guide
Próxima página
Generate AI text completion
Built with