Threads AI
GuidesAPI ReferenceHTTP API
API reference

Functions

agenttoolextensionmcpsecretopenThread / open_threadsqlitelocalMemory / local_memorylocalKnowledge / local_knowledgescriptedModel / scripted_modelfakeSandbox / fake_sandboxhost

Agents and runs

AgentRunResultRunStreamRunContextToolMcpServerExtensionHooksSkillSecretStoreConfigErrorConfigErrorCode

Threads and evals

ThreadCaseExpectationSavedCase

Host

HostSchedule

Model adapters

ModelModelContextModelInfoModelRequestModelResponseModelChunkLookupResultLookupCapability

Sandbox adapters

SandboxSandboxAuthoritySandboxContextSandboxInfoSandboxSessionExecOutputExecResult

Memory and knowledge adapters

MemoryProviderKnowledgeProviderScopeBindingMemoryRecordRecordRefMemoryHitKnowledgeSourceDocVersionKnowledgeHitDocSearchBackendSearchHit

Channel adapters

ChannelAdapterChannelCapabilitiesRawRequestRawResponseVerifiedDeliveryInboundDeliveryOutcome

Store

The SQLite log and artifact store (sqlite()).

Sealed in v0.1: no public methods.

Opaque: build it with its factory and pass it on; it has no public members.
Edit on GitHub

Secret

A reference to a host secret, made by secret(name).

ConfigError

Thrown at setup only: TS class ConfigError extends Error, Python exception ConfigError.