Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akveo/ai-cookbook
/ functions
Functions
97 in github.com/akveo/ai-cookbook
⨍
Functions
97
◇
Types & classes
37
↳
Endpoints
4
↓ 50 callers
Function
cn
(...inputs: ClassValue[])
client/lib/utils.ts:4
↓ 11 callers
Function
deepCopy
(obj: TAgentState | Partial<TAgentState>)
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:437
↓ 4 callers
Function
callAgent
(agentInput: RunAgentInputInternal<TAgentState> | ResumeAgentInputInternal<TResumeValue> | ForkAgentInputInter
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:110
↓ 4 callers
Function
useSidebar
()
client/components/ui/sidebar.tsx:41
↓ 3 callers
Function
format_values
(values: dict)
agent/app/utils.py:8
↓ 3 callers
Function
run
* Run the agent. * @param agentInput - Input configuration for running the agent (see {@link RunAgentInput}).
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:58
↓ 2 callers
Function
createAppCheckpoint
(checkpoint: Checkpoint<TAgentState, TInterruptValue>)
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:276
↓ 2 callers
Function
createServer
()
mcp-servers/booking-mcp/src/booking-mcp-server.ts:4
↓ 2 callers
Function
format_state_snapshot
(snapshot: StateSnapshot)
agent/app/utils.py:101
↓ 2 callers
Function
getMessageIcon
(type: string)
client/app/chat/[id]/components/chatbot-node.tsx:14
↓ 2 callers
Function
getStateDiff
(stateOld: TAgentState, stateNew: TAgentState)
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:403
↓ 2 callers
Function
handleAction
(action: "approve" | "cancel")
client/app/chat/[id]/components/reminder.tsx:19
↓ 2 callers
Function
removeAppCheckpointsAfterCheckpoint
(checkpointId: string)
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:102
↓ 2 callers
Function
updateGraphNodeStateFromMetadata
(appCheckpoint: AppCheckpoint<TAgentState, TInterruptValue>, checkpoint: Checkpoint<TAgentState, TInterruptVal
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:298
↓ 1 callers
Function
buildTree
(checkpoints: Checkpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/ascii-tree.ts:11
↓ 1 callers
Function
callAgentRoute
( body: RunAgentInputInternal<TAgentState> | ResumeAgentInputInternal<TResumeValue> | ForkAgentInputInternal
client/hooks/useLangGraphAgent/api.ts:43
↓ 1 callers
Function
checkpoint_event
Create a checkpoint event for the client.
agent/app/utils.py:5
↓ 1 callers
Function
custom_event
Create a custom event for the client.
agent/app/utils.py:93
↓ 1 callers
Function
format_messages
Format message chunk into a serializable dictionary. This is needed because the message class is not serializable.
agent/app/utils.py:63
↓ 1 callers
Function
format_writes
(writes: dict)
agent/app/utils.py:22
↓ 1 callers
Function
generate_events
()
agent/app/server.py:136
↓ 1 callers
Function
getHistory
(threadId: string)
client/hooks/useLangGraphAgent/actions.ts:7
↓ 1 callers
Function
handleExampleClick
(message: string)
client/app/chat/[id]/page.tsx:112
↓ 1 callers
Function
handleThemeChange
(themeToSwitch: string)
client/components/theme-switcher.tsx:21
↓ 1 callers
Function
init_agent
(use_mcp: bool)
agent/app/agent/graph.py:201
↓ 1 callers
Function
initialize_mcp_tools
()
agent/app/agent/graph.py:188
↓ 1 callers
Function
interrupt_event
Create an interrupt event for the client.
agent/app/utils.py:83
↓ 1 callers
Function
main
()
mcp-servers/booking-mcp/src/stdio-server.ts:4
↓ 1 callers
Function
main
()
agent/app/server.py:169
↓ 1 callers
Function
message_chunk_event
Create a message chunk event for the client.
agent/app/utils.py:60
↓ 1 callers
Function
onCheckpointEnd
(checkpoint: AppCheckpoint<AgentState, InterruptValue>)
client/app/chat/[id]/page.tsx:41
↓ 1 callers
Function
onCheckpointStart
(checkpoint: AppCheckpoint<AgentState, InterruptValue>)
client/app/chat/[id]/page.tsx:37
↓ 1 callers
Function
onCheckpointStateUpdate
(checkpoint: AppCheckpoint<AgentState, InterruptValue>)
client/app/chat/[id]/page.tsx:50
↓ 1 callers
Function
parseSSEMessage
(chunk: string)
client/hooks/useLangGraphAgent/api.ts:9
↓ 1 callers
Function
printTreeNode
(node: TreeNode, options: PrintOptions = {}, prefix: string = "", isLast: boolean = true)
client/hooks/useLangGraphAgent/ascii-tree.ts:58
↓ 1 callers
Function
processCheckpoint
(checkpoint: Checkpoint<TAgentState, TInterruptValue>, appCheckpoints: AppCheckpoint<TAgentState, TInterruptVa
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:244
↓ 1 callers
Function
processCustomEvent
(state: Partial<TAgentState>, appCheckpoints: AppCheckpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:368
↓ 1 callers
Function
processError
(appCheckpoints: AppCheckpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:394
↓ 1 callers
Function
processHistoryCheckpoint
(checkpoint: Checkpoint<TAgentState, TInterruptValue>, appCheckpoints: AppCheckpoint<TAgentState, TInterruptVa
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:210
↓ 1 callers
Function
processInterrupts
(interrupts: Interrupt<TInterruptValue>[], appCheckpoints: AppCheckpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:385
↓ 1 callers
Function
processMessageChunk
(nodeMessageChunk: NodeMessageChunk, appCheckpoints: AppCheckpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:310
↓ 1 callers
Function
renderCheckpointError
(checkpoint: AppCheckpoint<AgentState, InterruptValue>)
client/app/chat/[id]/page.tsx:123
↓ 1 callers
Function
renderNode
(checkpoint: AppCheckpoint<AgentState, InterruptValue>, node: GraphNode<AgentState>)
client/app/chat/[id]/page.tsx:132
↓ 1 callers
Function
restore
* Restores the agent state from the checkpoints history. * @param threadId - The ID of the thread to restore.
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:164
↓ 1 callers
Function
resume
* Resume the agent. Action should be called after the agent has been interrupted. * @param agentInput - Input configuration for resuming the agent
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:66
↓ 1 callers
Function
scrollToBottom
()
client/app/chat/[id]/page.tsx:103
↓ 1 callers
Function
stop
* Stops the agent execution. Agent will not stop immediately. It will stop before emitting the last event (see {@link AgentEvent}). * @param thread
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:92
↓ 1 callers
Function
stopAgent
(threadId: string)
client/hooks/useLangGraphAgent/actions.ts:19
↓ 1 callers
Function
useIsMobile
()
client/hooks/use-mobile.tsx:5
↓ 1 callers
Function
useLangGraphAgent
( callbacks?: UseAgentStateCallbacks<TAgentState, TInterruptValue> )
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:44
↓ 1 callers
Function
useMounted
()
client/components/theme-provider.tsx:7
Function
AppSidebar
()
client/components/app-sidebar.tsx:21
Function
Badge
({ className, variant, ...props }: BadgeProps)
client/components/ui/badge.tsx:30
Function
ChatPage
()
client/app/chat/[id]/page.tsx:18
Function
ChatbotNode
({ nodeState }: ChatbotNodeProps)
client/app/chat/[id]/components/chatbot-node.tsx:12
Function
ChatsPage
()
client/app/chat/page.tsx:1
Function
CheckpointCard
({ thread_id, appCheckpoint: node, replayHandler }: CheckpointCardProps)
client/app/chat/[id]/components/checkpoint-card.tsx:19
Function
Cloudy
()
client/app/chat/[id]/components/weather/cloudy.tsx:6
Function
FeatureBlock
({ title, description, }: { title: string description: string })
client/app/page.tsx:57
Function
NodeCard
({ node }: { node: GraphNode<AgentState> })
client/app/chat/[id]/components/node-card.tsx:11
Function
POST
(request: NextRequest)
client/app/api/agent/route.ts:10
Function
Rainy
()
client/app/chat/[id]/components/weather/rainy.tsx:7
Function
Reminder
({ interruptValue, onResume }: ReminderProps)
client/app/chat/[id]/components/reminder.tsx:11
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
client/app/layout.tsx:23
Function
SheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
client/components/ui/sheet.tsx:91
Function
SheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
client/components/ui/sheet.tsx:77
Function
Skeleton
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
client/components/ui/skeleton.tsx:3
Function
Snowy
()
client/app/chat/[id]/components/weather/snowy.tsx:7
Function
Sunny
()
client/app/chat/[id]/components/weather/sunny.tsx:7
Function
ThemeProvider
({ children, ...props }: React.ComponentProps<typeof NextThemesProvider>)
client/components/theme-provider.tsx:13
Function
ThemeSwitcher
()
client/components/theme-switcher.tsx:15
Function
WeatherNode
({ nodeState }: WeatherNodeProps)
client/app/chat/[id]/components/weather/weather-node.tsx:13
Function
WelcomePage
()
client/app/page.tsx:6
Function
agent
Endpoint for running the agent.
agent/app/server.py:90
Function
assign_tool
(state: State)
agent/app/agent/graph.py:165
Function
chatbot
(state: State)
agent/app/agent/graph.py:153
Function
create_event
Create an event
mcp-servers/calendar-mcp/calendar-mcp-server.py:14
Function
create_reminder_tool
Call to create a reminder
agent/app/agent/graph.py:96
Function
defaultRenderState
(state: any)
client/hooks/useLangGraphAgent/ascii-tree.ts:50
Function
fork
* Fork the checkpoint with the updated state. * @param agentInput - Input configuration for forking the agent (see {@link ForkAgentInput}).
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:74
Function
handleAddChat
()
client/components/app-sidebar.tsx:26
Function
handleAddChat
()
client/app/page.tsx:10
Function
handleKeyDown
(event: KeyboardEvent)
client/components/ui/sidebar.tsx:101
Function
handleResume
(resumeValue: ResumeValue)
client/app/chat/[id]/page.tsx:119
Function
handleScrollUpdate
()
client/app/chat/[id]/page.tsx:89
Function
history
Endpoint returning complete state history. Used for restoring graph.
agent/app/server.py:62
Function
lifespan
(app: FastAPI)
agent/app/server.py:27
Function
list_events
List all events
mcp-servers/calendar-mcp/calendar-mcp-server.py:20
Function
mcp_tool
(input: McpToolNodeArgs)
agent/app/agent/graph.py:123
Function
onChange
()
client/hooks/use-mobile.tsx:10
Function
printCheckpointTree
(checkpoints: Checkpoint<TAgentState, TInterruptValue>[], options: PrintOptions = {})
client/hooks/useLangGraphAgent/ascii-tree.ts:84
Function
reminder
(input: ToolNodeArgs)
agent/app/agent/graph.py:115
Function
replay
* Runs agent from the checkpoint. * @param agentInput - Input configuration for replaying the agent (see {@link ReplayAgentInput}).
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:83
Function
state
Endpoint returning current graph state.
agent/app/server.py:50
Function
stop_agent
Endpoint for stopping the running agent.
agent/app/server.py:76
Function
weather
(input: WeatherInput, writer: StreamWriter)
agent/app/agent/graph.py:101
Function
weather_tool
Call to get current weather
agent/app/agent/graph.py:90