Returning machine-readable outputs

Report a typo

An AI agent for a smart home processes the command: "Dim the living room lights to 50%." For the application to execute this, the LLM must return the key details in a predefined, machine-readable format:

 {
    "action": "set_light",
    "parameters": {
        "location": "living_room", 
        "value": 50
    }
}

Which technique for controlling LLM outputs is essential for ensuring the model reliably generates this specific JSON structure?

Select one option from the list

Create a free account to access the full topic