kernl
ReferencekernlInterfaces

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

PropertyTypeDescriptionDefined in
agentIdstringOwning 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.modelIdstring-packages/kernl/src/api/resources/threads/types.ts:109
model.providerstring-packages/kernl/src/api/resources/threads/types.ts:108
namespace?stringLogical namespace to create the thread in. Defaults to "kernl" when not provided.packages/kernl/src/api/resources/threads/types.ts:88
parentTaskId?string | nullOptional parent task id that spawned this thread, if any.packages/kernl/src/api/resources/threads/types.ts:103
tid?stringOptional explicit thread id. If omitted, a new id will be generated.packages/kernl/src/api/resources/threads/types.ts:81
title?stringOptional human-readable title for the thread.packages/kernl/src/api/resources/threads/types.ts:93

On this page