Power Guard AI
  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
  • Esquemas
    • Schemas
      • CompletionRequest
      • ChatCompletionChoice
      • EmbeddingRequest
      • ChatCompletionFunction
      • FunctionParameters
      • ChatCompletionMessage
      • Message
      • ChatCompletionResponse
      • QuestionModel
      • ChatCompletionToolCall
      • ChatCompletionUsage
      • QuestionRequest
      • QuestionValidationRules
      • Choice
      • Tool
      • ChoiceMessage
      • ToolFunction
      • CompletionResponse
      • DataItem
      • EmbeddingResponse
      • HealthResponseModel
      • ModelCapabilities
      • ModelInfo
      • ResponseModel
      • Role
      • SingleReadOnlyMemory
      • SingleReadOnlySpan
      • Usage
      • UsageModel
  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 2025-07-16 20:45:28
Página anterior
usage-controller-guide
Próxima página
Generate AI text completion
Built with