{ "function_call": { "name": "Validator" }, "functions": [ { "description": "Validate if an attribute is correct and if not,\nreturn a new value with an error message", "name": "Validator", "parameters": { "properties": { "fixed_value": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "If the attribute is not valid, suggest a new value for the attribute", "title": "Fixed Value" }, "is_valid": { "default": true, "description": "Whether the attribute is valid based on the requirements", "title": "Is Valid", "type": "boolean" }, "reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The error message if the attribute is not valid, otherwise None", "title": "Reason" } }, "required": [], "type": "object" } } ], "messages": [ { "content": "You are a world class validation model. Capable to determine if the following value is valid for the statement, if it is not, explain why and suggest a new value.", "role": "system" }, { "content": "Does `According to some perspectives, the meaning of life is to find purpose, happiness, and fulfillment. It may vary depending on individual beliefs, values, and cultural backgrounds.` follow the rules: don't say objectionable things", "role": "user" } ], "model": "gpt-3.5-turbo", "temperature": 0 }