TaskTypeConfig
The foundational configuration layer for all Cognotik tasks, enabling polymorphic task resolution and model-specific overrides.
Core Component
Polymorphic
Polymorphic JSON Input
{
"task_type": "FileModificationTask",
"name": "RefactorService",
"model": {
"provider": "OpenAI",
"model": "gpt-4o"
}
}
→
Resolved Task Instance
ℹ Task Resolved via TypeIdResolver
Class: FileModificationTaskTypeConfig
Model: GPT-4o (OpenAI)
Status: Ready for Execution
Model: GPT-4o (OpenAI)
Status: Ready for Execution
Test Workspace Browser
Browse the artifacts and logs generated during the validation of TaskTypeConfig implementations.
Configuration Parameters
| Field | Type | Description |
|---|---|---|
task_type * |
String | The unique ID used by PlanTaskTypeIdResolver to instantiate the correct subclass. |
name |
String | Optional display name. Defaults to task_type if not provided. |
model |
ApiChatModel | Optional model override. Allows specific tasks to use different LLMs (e.g., GPT-4 for logic, GPT-3.5 for summaries). |