MCPcopy Create free account

hub / github.com/TanStack/ai / functions

Functions5,196 in github.com/TanStack/ai

↓ 20 callersFunctionlogSuccess
(message: string)
packages/ai-code-mode-skills/test-cli/test-utils.ts:87
↓ 20 callersFunctionmakeStructuredOutputCompatible
( schema: Record<string, any>, originalRequired?: Array<string>, )
packages/openai-base/src/utils/schema-converter.ts:60
↓ 20 callersFunctionnow
()
packages/ai-acp/src/stream/translate.ts:113
↓ 20 callersMethodread
( runId: string, options?: RunEventLogReadOptions, )
packages/ai-sandbox-cloudflare/src/run-log-do.ts:118
↓ 20 callersFunctionupdateConversation
( conversationId: string, updates: Partial<Conversation>, )
packages/ai-devtools/src/store/ai-context.tsx:811
↓ 19 callersMethodabs
Map the conventional `/workspace` virtual root to the sandbox workdir.
packages/ai-sandbox-vercel/src/handle.ts:195
↓ 19 callersMethodcallTool
( name: string, args?: Record<string, unknown>, )
packages/ai-mcp/src/client.ts:212
↓ 19 callersFunctioncollect
( events: Array<AcpStreamEvent>, ctx: TranslateContext = makeCtx(), )
packages/ai-acp/tests/translate.test.ts:34
↓ 19 callersFunctioncreateCodeMode
( config: CodeModeToolConfig, )
packages/ai-code-mode/src/create-code-mode.ts:27
↓ 19 callersFunctioncreateGeminiImage
( model: TModel, apiKey: string, config?: Omit<GeminiImageConfig, 'apiKey'>, )
packages/ai-gemini/src/adapters/image.ts:438
↓ 19 callersFunctioncreateSubscribeAdapter
(chunksToSend: Array<StreamChunk>)
packages/ai-client/tests/chat-client.test.ts:275
↓ 19 callersMethodemitSnapshot
()
packages/ai-client/src/devtools.ts:455
↓ 19 callersFunctiongetDeltas
(chunks: Array<StreamChunk>)
packages/ai/tests/test-utils.ts:244
↓ 19 callersFunctionidPart
(value: unknown)
packages/ai-event-client/src/envelope.ts:73
↓ 19 callersMethodisEnabled
Whether a category is enabled. Cheap, safe to call on hot paths.
packages/ai/src/logger/internal-logger.ts:44
↓ 19 callersFunctionisStandardSchema
(schema: unknown)
packages/ai/src/activities/chat/tools/schema-converter.ts:73
↓ 19 callersMethodrun
()
packages/ai/src/activities/chat/index.ts:762
↓ 19 callersFunctionsetupMockSdkClient
( streamChunks: Array<Record<string, unknown>>, nonStreamResponse?: Record<string, unknown>, )
packages/openai-base/tests/chat-completions-text.test.ts:79
↓ 19 callersFunctiontoAudioFile
( audio: string | File | Blob | ArrayBuffer, audioFormat?: string, )
packages/ai-grok/src/utils/audio.ts:13
↓ 19 callersFunctionvalidateImageSize
( model: string, size: string | undefined, )
packages/ai-openai/src/image/image-provider-options.ts:228
↓ 19 callersMethodwait
(delay: number, maybeOptions?: SchedulerWaitOptions)
examples/sandbox-cloudflare/worker-configuration.d.ts:1082
↓ 18 callersFunctionaddActivityEvent
( conversationId: string, activity: | 'imageEvents' | 'audioEvents' | 'speechEvents'
packages/ai-devtools/src/store/ai-context.tsx:1081
↓ 18 callersFunctioncreateAdapter
()
packages/ai-fal/tests/video-adapter.test.ts:49
↓ 18 callersFunctioncreateCodeModeTool
( config: CodeModeToolConfig, )
packages/ai-code-mode/src/create-code-mode-tool.ts:84
↓ 18 callersFunctioncreateGeneration
( options: Omit<CreateGenerationOptions<TInput, TResult>, 'onResult'> & { onResult?: (result: TResult) =
packages/ai-svelte/src/create-generation.svelte.ts:112
↓ 18 callersFunctioncreateSkillManagementTools
({ storage, trustStrategy, registry, config, baseBindings, }: CreateSkillManagementToolsOptions)
packages/ai-code-mode-skills/src/create-skill-management-tools.ts:50
↓ 18 callersMethodcreateVideoJob
( options: VideoGenerationOptions< GrokVideoProviderOptions, GrokVideoModelSizeByName[TModel],
packages/ai-grok/src/adapters/video.ts:175
↓ 18 callersFunctionexpectedEnvelope
( eventType: string, visibility: 'client-state' | 'user-visible' = 'client-state', )
packages/ai-client/tests/events.test.ts:24
↓ 18 callersFunctionfetchHttpStream
( url: string | (() => string), options: | FetchConnectionOptions | (() => FetchConnectionOptions
packages/ai-client/src/connection-adapters.ts:574
↓ 18 callersFunctionisStrictModeCompatible
(schema: unknown)
packages/openai-base/src/utils/schema-converter.ts:124
↓ 18 callersFunctionlogStep
(step: number, message: string)
packages/ai-code-mode-skills/test-cli/test-utils.ts:115
↓ 18 callersFunctionmakeSkill
(overrides: Partial<Skill> = {})
packages/ai-code-mode-skills/tests/memory-storage.test.ts:9
↓ 18 callersFunctionmakeToolCall
( id: string, name: string, args: string = '{}', )
packages/ai/tests/tool-call-manager.test.ts:508
↓ 18 callersFunctionnow
()
packages/ai-opencode/src/stream/translate.ts:117
↓ 18 callersFunctionuseGeneration
( options: Omit<UseGenerationOptions<TInput, TResult>, 'onResult'> & { onResult?: (result: TResult) => T
packages/ai-vue/src/use-generation.ts:108
↓ 17 callersMethodaddToolCallStartEvent
* Add a TOOL_CALL_START event to begin tracking a tool call (AG-UI)
packages/ai/src/activities/chat/tools/tool-calls.ts:232
↓ 17 callersMethodaddUserMessage
* Add a user message to the conversation. * Supports both simple string content and multimodal content arrays. * * @param content - The messa
packages/ai/src/activities/chat/stream/processor.ts:240
↓ 17 callersFunctionbrandProviderTool
( tool: Omit<T, '~provider' | '~toolKind'>, )
packages/ai/src/tools/provider-tool.ts:35
↓ 17 callersMethodchatStream
( options: TextOptions<GrokBuildTextProviderOptions>, )
packages/ai-grok-build/src/adapters/text.ts:197
↓ 17 callersFunctioncontentGuardMiddleware
( options: ContentGuardMiddlewareOptions, )
packages/ai/src/middlewares/content-guard.ts:101
↓ 17 callersFunctionconvertMessagesToModelMessages
( messages: Array<UIMessage | ModelMessage>, )
packages/ai/src/activities/chat/messages.ts:81
↓ 17 callersFunctioncreateClientStub
( overrides: { createResult?: Partial<GenerateVideosOperation> pollResult?: Partial<GenerateVideosOp
packages/ai-gemini/tests/video-adapter.test.ts:22
↓ 17 callersFunctioncreateCloudflareIsolateDriver
( config: CloudflareIsolateDriverConfig, )
packages/ai-isolate-cloudflare/src/isolate-driver.ts:298
↓ 17 callersFunctioncreateMcpAppBridge
( options: CreateMcpAppBridgeOptions, )
packages/ai-client/src/mcp-app-bridge.ts:57
↓ 17 callersMethodemitEvent
* Emit an event with automatic clientId and timestamp for client/tool events
packages/ai-client/src/events.ts:329
↓ 17 callersFunctionjsonSchemaToTypeScript
( schema: Record<string, unknown>, typeName: string, )
packages/ai-code-mode/src/type-generator/json-schema-to-ts.ts:77
↓ 17 callersFunctionlogSection
(title: string)
packages/ai-code-mode-skills/test-cli/test-utils.ts:78
↓ 17 callersFunctionmcpSkill
(name: string, config: McpConfig)
packages/ai-sandbox/src/workspace.ts:98
↓ 17 callersMethodmiddleware
Log inputs/outputs around a middleware hook invocation. Chat-only.
packages/ai/src/logger/internal-logger.ts:77
↓ 17 callersFunctionmodelMessageToUIMessage
( modelMessage: ModelMessage, id?: string, )
packages/ai/src/activities/chat/messages.ts:402
↓ 17 callersFunctionmodelMessagesToUIMessages
( modelMessages: Array<ModelMessage>, )
packages/ai/src/activities/chat/messages.ts:575
↓ 17 callersFunctionnow
()
packages/ai-codex/src/stream/translate.ts:171
↓ 17 callersFunctionuseGeneration
( options: Omit<UseGenerationOptions<TInput, TResult>, 'onResult'> & { onResult?: (result: TResult) => T
packages/ai-react/src/use-generation.ts:97
↓ 16 callersMethodafterEmit
(streamId?: string)
packages/ai-client/src/devtools.ts:1664
↓ 16 callersFunctionchatOpts
* Builds chat options for tests. `chatStream`'s `TextOptions` requires fields * (e.g. `logger`) that the adapter only consults when provided; the cas
packages/ai-mistral/tests/mistral-adapter.test.ts:21
↓ 16 callersMethodchatStream
( options: TextOptions<TProviderOptions>, )
packages/ai-mistral/src/adapters/text.ts:185
↓ 16 callersFunctionchunk
(n: number)
packages/ai-sandbox-cloudflare/tests/run-log-do.test.ts:57
↓ 16 callersFunctioncollect
( events: Array<CodexThreadEvent>, ctx: TranslateContext = makeCtx(), )
packages/ai-codex/tests/translate.test.ts:28
↓ 16 callersFunctioncollectChunks
( stream: AsyncIterable<StreamChunk>, )
packages/ai/tests/stream-generation.test.ts:11
↓ 16 callersFunctioncreateFakeXhrFactory
()
packages/ai-client/tests/connection-adapters-xhr.test.ts:63
↓ 16 callersFunctioncreateHoverTarget
(input: { messageIds?: Array<string | null | undefined> partIds?: Array<string | null | undefined> origi
packages/ai-devtools/src/components/hooks/preview-model.ts:22
↓ 16 callersFunctioncreateMCPClientFromTransport
(transport: Transport, prefix?: string)
packages/ai-mcp/src/client.ts:248
↓ 16 callersFunctioncreateStream
(chunks: Array<Record<string, unknown>>)
packages/ai-gemini/tests/gemini-adapter.test.ts:64
↓ 16 callersFunctiondrainExecuteToolCalls
Helper to drain the async generator from executeToolCalls and return its result
packages/ai/tests/tool-call-manager.test.ts:521
↓ 16 callersMethodexecute
(code: string)
packages/ai-isolate-cloudflare/src/isolate-driver.ts:98
↓ 16 callersFunctionfakeSource
( toolNames: ReadonlyArray<string>, opts?: FakeSourceOpts, )
packages/ai/tests/chat-mcp.test.ts:21
↓ 16 callersFunctionfillPrompt
(page: Page, text: string)
testing/e2e/tests/helpers.ts:162
↓ 16 callersMethodgetActiveTools
* Returns the set of tools that should be sent to the LLM: * eager tools + discovered lazy tools + discovery tool (if undiscovered tools remain).
packages/ai/src/activities/chat/tools/lazy-tool-manager.ts:77
↓ 16 callersFunctiongetHoverDataAttributes
(target: { messageIds?: Array<string> partIds?: Array<string> })
packages/ai-devtools/src/components/hooks/preview-model.ts:82
↓ 16 callersMethodheaders
(extra?: Record<string, string>)
packages/ai-sandbox-sprites/src/client.ts:176
↓ 16 callersFunctionmakeToolCall
( overrides: { id: string } & Partial<Omit<ToolCall, 'function'>> & { function?: Partial<ToolCall['fun
packages/ai/tests/middlewares/fake-otel.ts:227
↓ 16 callersFunctionresolveMediaPrompt
(prompt: MediaPrompt)
packages/ai/src/utilities/media-prompt.ts:45
↓ 16 callersFunctionresolveSecret
(secrets: Secrets, ref: SecretRef)
packages/ai-sandbox/src/secrets.ts:62
↓ 16 callersMethodsetMessagesManually
* Manually set messages
packages/ai-client/src/chat-client.ts:1427
↓ 16 callersMethodspritePath
(name: string, suffix = '')
packages/ai-sandbox-sprites/src/client.ts:184
↓ 16 callersMethodstop
()
packages/ai-vue/tests/use-audio-recorder.test.ts:32
↓ 16 callersMethodstop
()
packages/ai-react/tests/use-audio-recorder.test.tsx:20
↓ 16 callersMethodupdateState
(updates: Partial<RealtimeClientState>)
packages/ai-client/src/realtime-client.ts:317
↓ 15 callersMethodaddToolApprovalResponse
* Respond to a tool approval request
packages/ai-client/src/chat-client.ts:1260
↓ 15 callersMethodaddToolResult
* Add the result of a client-side tool execution
packages/ai-client/src/chat-client.ts:1192
↓ 15 callersFunctioncreateAlwaysTrustedStrategy
()
packages/ai-code-mode-skills/src/trust-strategies.ts:61
↓ 15 callersFunctioncreateHook
( id: string, hookName: string, outputKind: HookOutputKind | undefined, updatedAt: number, runIds: A
packages/ai-devtools/tests/hook-dashboard-model.test.ts:100
↓ 15 callersFunctioncreateHookRegistryState
()
packages/ai-devtools/src/store/hook-registry.ts:148
↓ 15 callersFunctioncreateMCPClient
(options: MCPClientOptions)
packages/ai-mcp/src/client.ts:231
↓ 15 callersFunctioncreateMockTool
(name: TName)
packages/ai-code-mode/tests/create-code-mode-tool.test.ts:25
↓ 15 callersFunctioncreateOpenRouterText
( model: TModel, apiKey: string, config?: Omit<SDKOptions, 'apiKey'>, )
packages/ai-openrouter/src/adapters/text.ts:1431
↓ 15 callersFunctioncreateRegisteredEvent
()
packages/ai-devtools/tests/hook-registry.test.ts:516
↓ 15 callersFunctioncreateReportBinding
* Helper to create a ToolBinding that emits a report:ui event
examples/ts-code-mode-web/src/lib/reports/create-report-bindings.ts:35
↓ 15 callersFunctionev
()
packages/ai-devtools/src/components/conversation/IterationCard.tsx:160
↓ 15 callersFunctionflattenModalityTokenCounts
( modalities?: Array<ModalityTokenCount>, )
packages/ai-gemini/src/usage.ts:30
↓ 15 callersMethodgenerateId
()
packages/ai-fal/src/adapters/video.ts:258
↓ 15 callersFunctiongitSkill
(input: { repo: string secret?: SecretRef into?: string })
packages/ai-sandbox/src/workspace.ts:107
↓ 15 callersFunctioninstrumentCtx
Build the base context for middleware instrumentation events.
packages/ai/src/activities/chat/middleware/compose.ts:27
↓ 15 callersFunctionisSecretRef
(x: unknown)
packages/ai-sandbox/src/secrets.ts:53
↓ 15 callersFunctioniters
()
packages/ai-devtools/src/components/conversation/IterationTimeline.tsx:151
↓ 15 callersFunctionmakeChatMock
()
packages/ai-client/tests/mcp-app-bridge.test.ts:15
↓ 15 callersFunctionmakeHandle
( deps: Partial<FakeClientOptions> & { urlAuth?: 'public' | 'sprite' } = {}, )
packages/ai-sandbox-sprites/tests/handle.test.ts:97
↓ 15 callersFunctionmakeSkill
(overrides: Partial<Skill> = {})
packages/ai-code-mode-skills/tests/skills-to-bindings.test.ts:9
↓ 15 callersFunctionopenDevtools
(page: Page)
testing/e2e/tests/devtools-helpers.ts:15
↓ 15 callersFunctionrequest
( overrides: Partial<OpencodePermissionRequest> = {}, )
packages/ai-opencode/tests/permissions.test.ts:8
← previousnext →201–300 of 5,196, ranked by callers