Text Generation
Available Methods
1. Chat Completions (.GENCompletion())
.GENCompletion())string response = await "Explain quantum computing"
.GENCompletion()
.SetModel(OpenAIModel.GPT4o)
.ExecuteAsync();2. Responses API (.GENResponse())
.GENResponse())string response = await "Write a technical spec"
.GENResponse()
.SetModel(OpenAIModel.GPT4o)
.ExecuteAsync();3. Code Generation (.GENCode())
.GENCode())4. Structured Output (.GENStruct<T>())
.GENStruct<T>())Quick Comparison
Method
Use Case
Provider Support
Complexity
Basic Examples
Example 1: Simple Question
Example 2: Story Generation
Example 3: Code Generation
Example 4: Structured Data
Configuration Options
Next Steps
Last updated