Interface: ThreadCreateParams
Defined in: packages/kernl/src/api/resources/threads/types.ts:70
Parameters for creating a new thread via the public Threads resource.
Note: low-level API requires explicit agent + model. For most callers, prefer the agent-scoped helpers (agent.threads.create) which infer these.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
agentId | string | Owning agent id for the new thread. | packages/kernl/src/api/resources/threads/types.ts:74 |
context? | Record<string, unknown> | Initial context object for the thread. | packages/kernl/src/api/resources/threads/types.ts:98 |
metadata? | Record<string, unknown> | Arbitrary JSON-serializable metadata to attach to the thread. | packages/kernl/src/api/resources/threads/types.ts:115 |
model | { modelId: string; provider: string; } | Language model backing this thread. | packages/kernl/src/api/resources/threads/types.ts:107 |
model.modelId | string | - | packages/kernl/src/api/resources/threads/types.ts:109 |
model.provider | string | - | packages/kernl/src/api/resources/threads/types.ts:108 |
namespace? | string | Logical namespace to create the thread in. Defaults to "kernl" when not provided. | packages/kernl/src/api/resources/threads/types.ts:88 |
parentTaskId? | string | null | Optional parent task id that spawned this thread, if any. | packages/kernl/src/api/resources/threads/types.ts:103 |
tid? | string | Optional explicit thread id. If omitted, a new id will be generated. | packages/kernl/src/api/resources/threads/types.ts:81 |
title? | string | Optional human-readable title for the thread. | packages/kernl/src/api/resources/threads/types.ts:93 |