Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ai-hero-dev/ai-sdk-v6-crash-course
/ functions
Functions
388 in github.com/ai-hero-dev/ai-sdk-v6-crash-course
⨍
Functions
388
◇
Types & classes
4
↓ 52 callers
Function
runLocalDevServer
(opts: { root: string; })
shared/run-local-dev-server.ts:101
↓ 32 callers
Function
getRelativePath
(fullPath: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/solution/api/file-system-functionality.ts:34
↓ 32 callers
Function
getRelativePath
(fullPath: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/problem/api/file-system-functionality.ts:34
↓ 32 callers
Function
getRelativePath
(fullPath: string)
exercises/03-agents/03.01-tool-calling/solution/api/file-system-functionality.ts:34
↓ 32 callers
Function
getRelativePath
(fullPath: string)
exercises/03-agents/03.01-tool-calling/problem/api/file-system-functionality.ts:34
↓ 32 callers
Function
getRelativePath
(fullPath: string)
exercises/03-agents/03.04-tool-loop-agent/explainer/api/file-system-functionality.ts:34
↓ 32 callers
Function
getRelativePath
(fullPath: string)
exercises/03-agents/03.02-message-parts/explainer/file-system-functionality.ts:34
↓ 7 callers
Function
ensureBaseDir
()
exercises/03-agents/03.03-showing-tools-in-the-frontend/solution/api/file-system-functionality.ts:12
↓ 7 callers
Function
ensureBaseDir
()
exercises/03-agents/03.03-showing-tools-in-the-frontend/problem/api/file-system-functionality.ts:12
↓ 7 callers
Function
ensureBaseDir
()
exercises/03-agents/03.01-tool-calling/solution/api/file-system-functionality.ts:12
↓ 7 callers
Function
ensureBaseDir
()
exercises/03-agents/03.01-tool-calling/problem/api/file-system-functionality.ts:12
↓ 7 callers
Function
ensureBaseDir
()
exercises/03-agents/03.04-tool-loop-agent/explainer/api/file-system-functionality.ts:12
↓ 7 callers
Function
ensureBaseDir
()
exercises/03-agents/03.02-message-parts/explainer/file-system-functionality.ts:12
↓ 7 callers
Function
validatePath
(filePath: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/solution/api/file-system-functionality.ts:19
↓ 7 callers
Function
validatePath
(filePath: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/problem/api/file-system-functionality.ts:19
↓ 7 callers
Function
validatePath
(filePath: string)
exercises/03-agents/03.01-tool-calling/solution/api/file-system-functionality.ts:19
↓ 7 callers
Function
validatePath
(filePath: string)
exercises/03-agents/03.01-tool-calling/problem/api/file-system-functionality.ts:19
↓ 7 callers
Function
validatePath
(filePath: string)
exercises/03-agents/03.04-tool-loop-agent/explainer/api/file-system-functionality.ts:19
↓ 7 callers
Function
validatePath
(filePath: string)
exercises/03-agents/03.02-message-parts/explainer/file-system-functionality.ts:19
↓ 4 callers
Function
loadChats
()
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:41
↓ 4 callers
Function
loadChats
()
exercises/04-persistence/04.03-persistence/problem/api/persistence-layer.ts:41
↓ 3 callers
Function
formatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.02-streaming-custom-data-to-the-frontend/solution/api/chat.ts:18
↓ 3 callers
Function
formatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.02-streaming-custom-data-to-the-frontend/problem/api/chat.ts:18
↓ 3 callers
Function
formatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.01-workflow/solution/api/chat.ts:4
↓ 3 callers
Function
formatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.03-creating-your-own-loop/problem/api/chat.ts:17
↓ 3 callers
Function
saveChats
( chats: DB.Chat[], )
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:56
↓ 3 callers
Function
saveChats
( chats: DB.Chat[], )
exercises/04-persistence/04.03-persistence/problem/api/persistence-layer.ts:56
↓ 3 callers
Function
tokenize
(text: string)
exercises/02-llm-fundamentals/02.03-data-represented-as-tokens/explainer/main.ts:9
↓ 3 callers
Function
writeTextPart
( writer: UIMessageStreamWriter, text: string, )
exercises/99-reference/99.09-start-and-finish-parts/explainer/api/chat.ts:12
↓ 2 callers
Function
appendToChatMessages
( chatId: string, messages: UIMessage[], )
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:104
↓ 2 callers
Function
ensureDataDirectory
* Ensure the data directory exists
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:29
↓ 2 callers
Function
ensureDataDirectory
* Ensure the data directory exists
exercises/04-persistence/04.03-persistence/problem/api/persistence-layer.ts:29
↓ 2 callers
Function
formatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.04-breaking-the-loop-early/solution/api/chat.ts:20
↓ 2 callers
Function
formatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.04-breaking-the-loop-early/problem/api/chat.ts:17
↓ 2 callers
Function
formatMessageHistory
(messages: UIMessage[])
exercises/08-agents-and-workflows/08.03-creating-your-own-loop/solution/api/chat.ts:17
↓ 2 callers
Function
getChat
( chatId: string, )
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:94
↓ 2 callers
Function
streamModelText
(opts: { textStream: AsyncIterableStream<string>; model: string; writer: UIMessageStreamWriter<MyMessage
exercises/09-advanced-patterns/09.03-comparing-multiple-outputs/solution/api/chat.ts:25
↓ 2 callers
Function
tokenize
(text: string)
exercises/02-llm-fundamentals/02.05-prompt-caching/explainer.1/main.ts:10
↓ 2 callers
Function
tokenize
(text: string)
exercises/02-llm-fundamentals/02.05-prompt-caching/explainer.2/main.ts:10
↓ 1 callers
Function
callTavilyToGetSearchResults
( queries: string[], )
exercises/09-advanced-patterns/09.04-research-workflow/solution/api/chat.ts:83
↓ 1 callers
Function
callTavilyToGetSearchResults
( queries: string[], )
exercises/09-advanced-patterns/09.04-research-workflow/problem/api/chat.ts:55
↓ 1 callers
Function
createChat
( id: string, initialMessages: UIMessage[] = [], )
exercises/04-persistence/04.03-persistence/solution/api/persistence-layer.ts:71
↓ 1 callers
Function
displayQueriesInFrontend
( queriesResult: ReturnType<typeof generateQueriesForTavily>, writer: UIMessageStreamWriter<MyMessage>, )
exercises/09-advanced-patterns/09.04-research-workflow/problem/api/chat.ts:42
↓ 1 callers
Function
fileToDataURL
(file: File)
exercises/01-ai-sdk-basics/01.10-passing-images-and-files/solution/client/root.tsx:65
↓ 1 callers
Function
formatDuration
(ms: number)
exercises/07-streaming/07.03-message-metadata/solution/client/components.tsx:6
↓ 1 callers
Function
formatDuration
(ms: number)
exercises/07-streaming/07.03-message-metadata/problem/client/components.tsx:6
↓ 1 callers
Function
generateQueriesForTavily
( modelMessages: ModelMessage[], )
exercises/09-advanced-patterns/09.04-research-workflow/solution/api/chat.ts:23
↓ 1 callers
Function
generateQueriesForTavily
( modelMessages: ModelMessage[], )
exercises/09-advanced-patterns/09.04-research-workflow/problem/api/chat.ts:23
↓ 1 callers
Function
getChat
( chatId: string, )
exercises/04-persistence/04.03-persistence/problem/api/persistence-layer.ts:94
↓ 1 callers
Function
getWeatherInformation
( // 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 callers
Function
main
()
exercises/99-reference/99.01-ui-messages-vs-model-messages/explainer/main.ts:30
↓ 1 callers
Function
mapUIMessagePartsToDBParts
( messageParts: MyUIMessagePart[], messageId: string, )
exercises/04-persistence/04.04-persistence-in-a-normalized-db/explainer/mapping.ts:7
↓ 1 callers
Function
runHonoApp
(opts: { root: string; getModule: (url: string) => Promise<any>; })
shared/run-local-dev-server.ts:30
↓ 1 callers
Function
searchRecursively
(currentDir: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/solution/api/file-system-functionality.ts:328
↓ 1 callers
Function
searchRecursively
(currentDir: string)
exercises/03-agents/03.03-showing-tools-in-the-frontend/problem/api/file-system-functionality.ts:328
↓ 1 callers
Function
searchRecursively
(currentDir: string)
exercises/03-agents/03.01-tool-calling/solution/api/file-system-functionality.ts:328
↓ 1 callers
Function
searchRecursively
(currentDir: string)
exercises/03-agents/03.01-tool-calling/problem/api/file-system-functionality.ts:328
↓ 1 callers
Function
searchRecursively
(currentDir: string)
exercises/03-agents/03.04-tool-loop-agent/explainer/api/file-system-functionality.ts:328
↓ 1 callers
Function
searchRecursively
(currentDir: string)
exercises/03-agents/03.02-message-parts/explainer/file-system-functionality.ts:328
↓ 1 callers
Function
streamFinalSummary
( searchResults: Awaited< ReturnType<typeof callTavilyToGetSearchResults> >, messages: ModelMessage[
exercises/09-advanced-patterns/09.04-research-workflow/solution/api/chat.ts:106
↓ 1 callers
Function
streamFinalSummary
( searchResults: Awaited< ReturnType<typeof callTavilyToGetSearchResults> >, messages: ModelMessage[
exercises/09-advanced-patterns/09.04-research-workflow/problem/api/chat.ts:78
↓ 1 callers
Function
streamQueriesToFrontend
( queriesResult: ReturnType<typeof generateQueriesForTavily>, writer: UIMessageStreamWriter<MyMessage>, )
exercises/09-advanced-patterns/09.04-research-workflow/solution/api/chat.ts:54
↓ 1 callers
Function
tokenize
(text: string)
exercises/02-llm-fundamentals/02.04-context-window/explainer/main.ts:11
↓ 1 callers
Function
tokenize
(text: string)
exercises/02-llm-fundamentals/02.01-tokens/explainer/main.ts:11
Function
App
()
exercises/09-advanced-patterns/09.04-research-workflow/solution/client/root.tsx:8
Function
App
()
exercises/09-advanced-patterns/09.04-research-workflow/problem/client/root.tsx:8
Function
App
()
exercises/09-advanced-patterns/09.01-guardrails/solution/client/root.tsx:7
Function
App
()
exercises/09-advanced-patterns/09.01-guardrails/problem/client/root.tsx:7
Function
App
()
exercises/09-advanced-patterns/09.03-comparing-multiple-outputs/solution/client/root.tsx:8
Function
App
()
exercises/09-advanced-patterns/09.03-comparing-multiple-outputs/problem/client/root.tsx:8
Function
App
()
exercises/09-advanced-patterns/09.02-model-router/solution/client/root.tsx:8
Function
App
()
exercises/09-advanced-patterns/09.02-model-router/problem/client/root.tsx:8
Function
App
()
exercises/07-streaming/07.04-error-handling/solution/client/root.tsx:8
Function
App
()
exercises/07-streaming/07.04-error-handling/problem/client/root.tsx:8
Function
App
()
exercises/07-streaming/07.03-message-metadata/solution/client/root.tsx:8
Function
App
()
exercises/07-streaming/07.03-message-metadata/problem/client/root.tsx:8
Function
App
()
exercises/07-streaming/07.02-custom-data-parts-with-stream-object/solution/client/root.tsx:8
Function
App
()
exercises/07-streaming/07.02-custom-data-parts-with-stream-object/problem/client/root.tsx:8
Function
App
()
exercises/07-streaming/07.01-custom-data-parts/solution/client/root.tsx:8
Function
App
()
exercises/07-streaming/07.01-custom-data-parts/problem/client/root.tsx:8
Function
App
()
exercises/08-agents-and-workflows/08.02-streaming-custom-data-to-the-frontend/solution/client/root.tsx:8
Function
App
()
exercises/08-agents-and-workflows/08.02-streaming-custom-data-to-the-frontend/problem/client/root.tsx:7
Function
App
()
exercises/08-agents-and-workflows/08.04-breaking-the-loop-early/solution/client/root.tsx:8
Function
App
()
exercises/08-agents-and-workflows/08.04-breaking-the-loop-early/problem/client/root.tsx:8
Function
App
()
exercises/08-agents-and-workflows/08.01-workflow/solution/client/root.tsx:7
Function
App
()
exercises/08-agents-and-workflows/08.01-workflow/problem/client/root.tsx:7
Function
App
()
exercises/08-agents-and-workflows/08.03-creating-your-own-loop/solution/client/root.tsx:8
Function
App
()
exercises/08-agents-and-workflows/08.03-creating-your-own-loop/problem/client/root.tsx:8
Function
App
()
exercises/99-reference/99.06-custom-data-parts-id-reconciliation/explainer/client/root.tsx:8
Function
App
()
exercises/99-reference/99.05-custom-data-parts-stream-to-frontend/explainer/client/root.tsx:8
Function
App
()
exercises/99-reference/99.09-start-and-finish-parts/explainer/client/root.tsx:7
Function
App
()
exercises/99-reference/99.08-streaming-text-parts-by-hand/explainer/client/root.tsx:8
Function
App
()
exercises/01-ai-sdk-basics/01.13-devtools-basics/explainer/client/root.tsx:7
Function
App
()
exercises/01-ai-sdk-basics/01.08-stream-text-to-ui/solution/client/root.tsx:7
Function
App
()
exercises/01-ai-sdk-basics/01.08-stream-text-to-ui/problem/client/root.tsx:6
Function
App
()
exercises/01-ai-sdk-basics/01.09-system-prompts/explainer/client/root.tsx:7
Function
App
()
exercises/01-ai-sdk-basics/01.10-passing-images-and-files/solution/client/root.tsx:8
Function
App
()
exercises/01-ai-sdk-basics/01.10-passing-images-and-files/problem/client/root.tsx:7
Function
App
()
exercises/04-persistence/04.03-persistence/solution/client/root.tsx:14
Function
App
()
exercises/04-persistence/04.03-persistence/problem/client/root.tsx:14
next →
1–100 of 388, ranked by callers