void ValidateAttributes()

in src/WebJobs.Extensions.OpenAI/Assistants/AssistantService.cs [212:223]


    void ValidateAttributes(AssistantPostAttribute attribute)
    {
        if (string.IsNullOrEmpty(attribute.Id))
        {
            throw new ArgumentException("The assistant ID must be specified.", nameof(attribute));
        }

        if (string.IsNullOrEmpty(attribute.UserMessage))
        {
            throw new ArgumentException("The assistant must have a user message", nameof(attribute));
        }
    }