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

Tool

An app tool (tool()).

Carries Input, Output and Deps for inference.

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

RunContext

What your tool or hook receives about the run it is part of.

McpServer

An MCP server binding (mcp()).