MCPcopy Create free account

hub / github.com/ai-hero-dev/ai-sdk-v6-crash-course / functions

Functions388 in github.com/ai-hero-dev/ai-sdk-v6-crash-course

↓ 52 callersFunctionrunLocalDevServer
(opts: { root: string; })
shared/run-local-dev-server.ts:101
↓ 32 callersFunctiongetRelativePath
(fullPath: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/solution/api/file-system-functionality.ts:34
↓ 32 callersFunctiongetRelativePath
(fullPath: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/problem/api/file-system-functionality.ts:34
↓ 32 callersFunctiongetRelativePath
(fullPath: string)
exercises/03-agents/03.01-tool-calling/solution/api/file-system-functionality.ts:34
↓ 32 callersFunctiongetRelativePath
(fullPath: string)
exercises/03-agents/03.01-tool-calling/problem/api/file-system-functionality.ts:34
↓ 32 callersFunctiongetRelativePath
(fullPath: string)
exercises/03-agents/03.04-tool-loop-agent/explainer/api/file-system-functionality.ts:34
↓ 32 callersFunctiongetRelativePath
(fullPath: string)
exercises/03-agents/03.02-message-parts/explainer/file-system-functionality.ts:34
↓ 7 callersFunctionensureBaseDir
()
exercises/03-agents/03.03-showing-tools-in-the-frontend/solution/api/file-system-functionality.ts:12
↓ 7 callersFunctionensureBaseDir
()
exercises/03-agents/03.03-showing-tools-in-the-frontend/problem/api/file-system-functionality.ts:12
↓ 7 callersFunctionensureBaseDir
()
exercises/03-agents/03.01-tool-calling/solution/api/file-system-functionality.ts:12
↓ 7 callersFunctionensureBaseDir
()
exercises/03-agents/03.01-tool-calling/problem/api/file-system-functionality.ts:12
↓ 7 callersFunctionensureBaseDir
()
exercises/03-agents/03.04-tool-loop-agent/explainer/api/file-system-functionality.ts:12
↓ 7 callersFunctionensureBaseDir
()
exercises/03-agents/03.02-message-parts/explainer/file-system-functionality.ts:12
↓ 7 callersFunctionvalidatePath
(filePath: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/solution/api/file-system-functionality.ts:19
↓ 7 callersFunctionvalidatePath
(filePath: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/problem/api/file-system-functionality.ts:19
↓ 7 callersFunctionvalidatePath
(filePath: string)
exercises/03-agents/03.01-tool-calling/solution/api/file-system-functionality.ts:19
↓ 7 callersFunctionvalidatePath
(filePath: string)
exercises/03-agents/03.01-tool-calling/problem/api/file-system-functionality.ts:19
↓ 7 callersFunctionvalidatePath
(filePath: string)
exercises/03-agents/03.04-tool-loop-agent/explainer/api/file-system-functionality.ts:19
↓ 7 callersFunctionvalidatePath
(filePath: string)
exercises/03-agents/03.02-message-parts/explainer/file-system-functionality.ts:19
↓ 4 callersFunctionloadChats
()
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:41
↓ 4 callersFunctionloadChats
()
exercises/04-persistence/04.03-persistence/problem/api/persistence-layer.ts:41
↓ 3 callersFunctionformatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.02-streaming-custom-data-to-the-frontend/solution/api/chat.ts:18
↓ 3 callersFunctionformatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.02-streaming-custom-data-to-the-frontend/problem/api/chat.ts:18
↓ 3 callersFunctionformatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.01-workflow/solution/api/chat.ts:4
↓ 3 callersFunctionformatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.03-creating-your-own-loop/problem/api/chat.ts:17
↓ 3 callersFunctionsaveChats
( chats: DB.Chat[], )
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:56
↓ 3 callersFunctionsaveChats
( chats: DB.Chat[], )
exercises/04-persistence/04.03-persistence/problem/api/persistence-layer.ts:56
↓ 3 callersFunctiontokenize
(text: string)
exercises/02-llm-fundamentals/02.03-data-represented-as-tokens/explainer/main.ts:9
↓ 3 callersFunctionwriteTextPart
( writer: UIMessageStreamWriter, text: string, )
exercises/99-reference/99.09-start-and-finish-parts/explainer/api/chat.ts:12
↓ 2 callersFunctionappendToChatMessages
( chatId: string, messages: UIMessage[], )
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:104
↓ 2 callersFunctionensureDataDirectory
* Ensure the data directory exists
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:29
↓ 2 callersFunctionensureDataDirectory
* Ensure the data directory exists
exercises/04-persistence/04.03-persistence/problem/api/persistence-layer.ts:29
↓ 2 callersFunctionformatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.04-breaking-the-loop-early/solution/api/chat.ts:20
↓ 2 callersFunctionformatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.04-breaking-the-loop-early/problem/api/chat.ts:17
↓ 2 callersFunctionformatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.03-creating-your-own-loop/solution/api/chat.ts:17
↓ 2 callersFunctiongetChat
( chatId: string, )
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:94
↓ 2 callersFunctionstreamModelText
(opts: { textStream: AsyncIterableStream<string>; model: string; writer: UIMessageStreamWriter<MyMessage
exercises/09-advanced-patterns/09.03-comparing-multiple-outputs/solution/api/chat.ts:25
↓ 2 callersFunctiontokenize
(text: string)
exercises/02-llm-fundamentals/02.05-prompt-caching/explainer.1/main.ts:10
↓ 2 callersFunctiontokenize
(text: string)
exercises/02-llm-fundamentals/02.05-prompt-caching/explainer.2/main.ts:10
↓ 1 callersFunctioncallTavilyToGetSearchResults
( queries: string[], )
exercises/09-advanced-patterns/09.04-research-workflow/solution/api/chat.ts:83
↓ 1 callersFunctioncallTavilyToGetSearchResults
( queries: string[], )
exercises/09-advanced-patterns/09.04-research-workflow/problem/api/chat.ts:55
↓ 1 callersFunctioncreateChat
( id: string, initialMessages: UIMessage[] = [], )
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:71
↓ 1 callersFunctiondisplayQueriesInFrontend
( queriesResult: ReturnType<typeof generateQueriesForTavily>, writer: UIMessageStreamWriter<MyMessage>, )
exercises/09-advanced-patterns/09.04-research-workflow/problem/api/chat.ts:42
↓ 1 callersFunctionfileToDataURL
(file: File)
exercises/01-ai-sdk-basics/01.10-passing-images-and-files/solution/client/root.tsx:65
↓ 1 callersFunctionformatDuration
(ms: number)
exercises/07-streaming/07.03-message-metadata/solution/client/components.tsx:6
↓ 1 callersFunctionformatDuration
(ms: number)
exercises/07-streaming/07.03-message-metadata/problem/client/components.tsx:6
↓ 1 callersFunctiongenerateQueriesForTavily
( modelMessages: ModelMessage[], )
exercises/09-advanced-patterns/09.04-research-workflow/solution/api/chat.ts:23
↓ 1 callersFunctiongenerateQueriesForTavily
( modelMessages: ModelMessage[], )
exercises/09-advanced-patterns/09.04-research-workflow/problem/api/chat.ts:23
↓ 1 callersFunctiongetChat
( chatId: string, )
exercises/04-persistence/04.03-persistence/problem/api/persistence-layer.ts:94
↓ 1 callersFunctiongetWeatherInformation
( // need to type like this to avoid circular type dependencies // typing here is not necessary, but provi
exercises/04-persistence/04.04-persistence-in-a-normalized-db/explainer/tools.ts:11
↓ 1 callersFunctionmain
()
exercises/99-reference/99.01-ui-messages-vs-model-messages/explainer/main.ts:30
↓ 1 callersFunctionmapUIMessagePartsToDBParts
( messageParts: MyUIMessagePart[], messageId: string, )
exercises/04-persistence/04.04-persistence-in-a-normalized-db/explainer/mapping.ts:7
↓ 1 callersFunctionrunHonoApp
(opts: { root: string; getModule: (url: string) => Promise<any>; })
shared/run-local-dev-server.ts:30
↓ 1 callersFunctionsearchRecursively
(currentDir: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/solution/api/file-system-functionality.ts:328
↓ 1 callersFunctionsearchRecursively
(currentDir: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/problem/api/file-system-functionality.ts:328
↓ 1 callersFunctionsearchRecursively
(currentDir: string)
exercises/03-agents/03.01-tool-calling/solution/api/file-system-functionality.ts:328
↓ 1 callersFunctionsearchRecursively
(currentDir: string)
exercises/03-agents/03.01-tool-calling/problem/api/file-system-functionality.ts:328
↓ 1 callersFunctionsearchRecursively
(currentDir: string)
exercises/03-agents/03.04-tool-loop-agent/explainer/api/file-system-functionality.ts:328
↓ 1 callersFunctionsearchRecursively
(currentDir: string)
exercises/03-agents/03.02-message-parts/explainer/file-system-functionality.ts:328
↓ 1 callersFunctionstreamFinalSummary
( searchResults: Awaited< ReturnType<typeof callTavilyToGetSearchResults> >, messages: ModelMessage[
exercises/09-advanced-patterns/09.04-research-workflow/solution/api/chat.ts:106
↓ 1 callersFunctionstreamFinalSummary
( searchResults: Awaited< ReturnType<typeof callTavilyToGetSearchResults> >, messages: ModelMessage[
exercises/09-advanced-patterns/09.04-research-workflow/problem/api/chat.ts:78
↓ 1 callersFunctionstreamQueriesToFrontend
( queriesResult: ReturnType<typeof generateQueriesForTavily>, writer: UIMessageStreamWriter<MyMessage>, )
exercises/09-advanced-patterns/09.04-research-workflow/solution/api/chat.ts:54
↓ 1 callersFunctiontokenize
(text: string)
exercises/02-llm-fundamentals/02.04-context-window/explainer/main.ts:11
↓ 1 callersFunctiontokenize
(text: string)
exercises/02-llm-fundamentals/02.01-tokens/explainer/main.ts:11
FunctionApp
()
exercises/09-advanced-patterns/09.04-research-workflow/solution/client/root.tsx:8
FunctionApp
()
exercises/09-advanced-patterns/09.04-research-workflow/problem/client/root.tsx:8
FunctionApp
()
exercises/09-advanced-patterns/09.01-guardrails/solution/client/root.tsx:7
FunctionApp
()
exercises/09-advanced-patterns/09.01-guardrails/problem/client/root.tsx:7
FunctionApp
()
exercises/09-advanced-patterns/09.03-comparing-multiple-outputs/solution/client/root.tsx:8
FunctionApp
()
exercises/09-advanced-patterns/09.03-comparing-multiple-outputs/problem/client/root.tsx:8
FunctionApp
()
exercises/09-advanced-patterns/09.02-model-router/solution/client/root.tsx:8
FunctionApp
()
exercises/09-advanced-patterns/09.02-model-router/problem/client/root.tsx:8
FunctionApp
()
exercises/07-streaming/07.04-error-handling/solution/client/root.tsx:8
FunctionApp
()
exercises/07-streaming/07.04-error-handling/problem/client/root.tsx:8
FunctionApp
()
exercises/07-streaming/07.03-message-metadata/solution/client/root.tsx:8
FunctionApp
()
exercises/07-streaming/07.03-message-metadata/problem/client/root.tsx:8
FunctionApp
()
exercises/07-streaming/07.02-custom-data-parts-with-stream-object/solution/client/root.tsx:8
FunctionApp
()
exercises/07-streaming/07.02-custom-data-parts-with-stream-object/problem/client/root.tsx:8
FunctionApp
()
exercises/07-streaming/07.01-custom-data-parts/solution/client/root.tsx:8
FunctionApp
()
exercises/07-streaming/07.01-custom-data-parts/problem/client/root.tsx:8
FunctionApp
()
exercises/08-agents-and-workflows/08.02-streaming-custom-data-to-the-frontend/solution/client/root.tsx:8
FunctionApp
()
exercises/08-agents-and-workflows/08.02-streaming-custom-data-to-the-frontend/problem/client/root.tsx:7
FunctionApp
()
exercises/08-agents-and-workflows/08.04-breaking-the-loop-early/solution/client/root.tsx:8
FunctionApp
()
exercises/08-agents-and-workflows/08.04-breaking-the-loop-early/problem/client/root.tsx:8
FunctionApp
()
exercises/08-agents-and-workflows/08.01-workflow/solution/client/root.tsx:7
FunctionApp
()
exercises/08-agents-and-workflows/08.01-workflow/problem/client/root.tsx:7
FunctionApp
()
exercises/08-agents-and-workflows/08.03-creating-your-own-loop/solution/client/root.tsx:8
FunctionApp
()
exercises/08-agents-and-workflows/08.03-creating-your-own-loop/problem/client/root.tsx:8
FunctionApp
()
exercises/99-reference/99.06-custom-data-parts-id-reconciliation/explainer/client/root.tsx:8
FunctionApp
()
exercises/99-reference/99.05-custom-data-parts-stream-to-frontend/explainer/client/root.tsx:8
FunctionApp
()
exercises/99-reference/99.09-start-and-finish-parts/explainer/client/root.tsx:7
FunctionApp
()
exercises/99-reference/99.08-streaming-text-parts-by-hand/explainer/client/root.tsx:8
FunctionApp
()
exercises/01-ai-sdk-basics/01.13-devtools-basics/explainer/client/root.tsx:7
FunctionApp
()
exercises/01-ai-sdk-basics/01.08-stream-text-to-ui/solution/client/root.tsx:7
FunctionApp
()
exercises/01-ai-sdk-basics/01.08-stream-text-to-ui/problem/client/root.tsx:6
FunctionApp
()
exercises/01-ai-sdk-basics/01.09-system-prompts/explainer/client/root.tsx:7
FunctionApp
()
exercises/01-ai-sdk-basics/01.10-passing-images-and-files/solution/client/root.tsx:8
FunctionApp
()
exercises/01-ai-sdk-basics/01.10-passing-images-and-files/problem/client/root.tsx:7
FunctionApp
()
exercises/04-persistence/04.03-persistence/solution/client/root.tsx:14
FunctionApp
()
exercises/04-persistence/04.03-persistence/problem/client/root.tsx:14
next →1–100 of 388, ranked by callers