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
      • Generate AI text completion
      • Generate embeddings for input text
    • Chat
      • Process chat completions
      • Process chat completions
    • Health
      • Check API health status
    • Models
      • List all available models
      • Get specific model information
    • Usage
      • Get API usage statistics
      • Get API usage statistics
    • 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

    ChatCompletionResponse

    {
        "id": "string",
        "object": "string",
        "created": 0,
        "model": "string",
        "choices": [
            {
                "index": 0,
                "message": {
                    "content": "string",
                    "role": "string",
                    "tool_calls": [
                        {
                            "type": "string",
                            "function": {
                                "name": "string",
                                "arguments": "string"
                            },
                            "id": "string"
                        }
                    ]
                },
                "finish_reason": "string"
            }
        ],
        "usage": {
            "prompt_tokens": 0,
            "completion_tokens": 0,
            "total_tokens": 0
        }
    }
    Built with