sdk-migration
Installation
SKILL.md
SDK Migration Guide
Migrating from 0.x to 1.0
Version 1.0 aligns the Python SDK's response types with the API wire format.
Response models are now Pydantic BaseModel instances instead of dataclasses,
and their fields match the JSON returned by the Subconscious API 1:1.
Summary of breaking changes
Usageis now a flat Pydantic model (input_tokens,output_tokens,duration_ms). The oldmodelsandplatform_toolsfields are removed.ModelUsageandPlatformToolUsageare deleted entirely.ReasoningNodeis removed. UseReasoningTaskinstead.ReasoningTask.subtaskis renamed tosubtasks.ReasoningTask.tooluseis nowOptional[AgentToolUse]instead ofList[Any].RunResult.reasoningis nowOptional[List[ReasoningTask]]instead ofOptional[ReasoningNode].Runhas a newerror: Optional[RunError]field for failed runs.Run,RunResult,Usage,RunError,ReasoningTask, andAgentToolUseare PydanticBaseModelinstead of@dataclass.Engineliteral expanded: added"tim-edge","tim-oss-local","tim-1.5","tim-gpt-heavy-tc".