llm_generate
Generate creative or long-form content with automatic routing to optimal AI models based on task complexity. Supports writing, summarization, and brainstorming with cost optimization and provider fallback.
Instructions
Generate creative or long-form content — routes to the best generation model.
Best for: writing, summarization, brainstorming, content creation.
Args:
prompt: What to generate.
complexity: Task complexity — "simple", "moderate", or "complex". Drives model
selection. Simple tasks (short summaries) use cheap models; complex tasks
(long-form, nuanced writing) use premium models.
system_prompt: Optional system instructions (tone, format, audience).
temperature: Sampling temperature (higher = more creative).
max_tokens: Maximum output tokens.
context: Optional conversation context to help the model understand the broader task.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| complexity | No | ||
| system_prompt | No | ||
| temperature | No | ||
| max_tokens | No | ||
| context | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |