You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- In `task_run`, `model` is optional. If omitted, sub-Agent reuses parent Agent's `ModelProvider` instance by default.
108
+
- If you call `agent.delegateTask(...)` directly, model resolution is:
109
+
-`model` omitted: reuse parent `ModelProvider` instance (no `modelFactory` required)
110
+
-`model` is `string`: keep parent provider type and only override model ID (for custom providers, this path requires `modelFactory`)
111
+
-`model` is `{ provider, model }`: explicitly choose provider + model (if provider differs from parent, custom providers usually require `modelFactory`)
112
+
-`model` is `ModelProvider`: use that instance directly
113
+
114
+
```typescript
115
+
// Direct call with explicit model override
116
+
awaitagent.delegateTask({
117
+
templateId: 'researcher',
118
+
prompt: 'Analyze competitors and produce a pricing matrix.',
119
+
model: 'gpt-4.1', // same provider type as parent, model id overridden
-`model` is `string`: keep parent provider type and override only model ID (for custom providers, this path requires `modelFactory`).
149
+
-`model` is `{ provider, model }`: explicitly choose provider + model (for custom providers, this path usually requires `modelFactory` when provider differs).
150
+
-`model` is `ModelProvider`: use the provided instance directly.
151
+
133
152
#### `agent.status()`
134
153
135
154
Returns current Agent status.
@@ -237,6 +256,8 @@ interface AgentConfig {
237
256
tools?:string[]; // Tool names to enable
238
257
exposeThinking?:boolean; // Emit thinking events
239
258
retainThinking?:boolean; // Keep thinking in message history
259
+
multimodalContinuation?:'history'; // Preserve multimodal context across turns
0 commit comments