MCPcopy Create free account

hub / github.com/akveo/ai-cookbook / functions

Functions97 in github.com/akveo/ai-cookbook

↓ 50 callersFunctioncn
(...inputs: ClassValue[])
client/lib/utils.ts:4
↓ 11 callersFunctiondeepCopy
(obj: TAgentState | Partial<TAgentState>)
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:437
↓ 4 callersFunctioncallAgent
(agentInput: RunAgentInputInternal<TAgentState> | ResumeAgentInputInternal<TResumeValue> | ForkAgentInputInter
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:110
↓ 4 callersFunctionuseSidebar
()
client/components/ui/sidebar.tsx:41
↓ 3 callersFunctionformat_values
(values: dict)
agent/app/utils.py:8
↓ 3 callersFunctionrun
* Run the agent. * @param agentInput - Input configuration for running the agent (see {@link RunAgentInput}).
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:58
↓ 2 callersFunctioncreateAppCheckpoint
(checkpoint: Checkpoint<TAgentState, TInterruptValue>)
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:276
↓ 2 callersFunctioncreateServer
()
mcp-servers/booking-mcp/src/booking-mcp-server.ts:4
↓ 2 callersFunctionformat_state_snapshot
(snapshot: StateSnapshot)
agent/app/utils.py:101
↓ 2 callersFunctiongetMessageIcon
(type: string)
client/app/chat/[id]/components/chatbot-node.tsx:14
↓ 2 callersFunctiongetStateDiff
(stateOld: TAgentState, stateNew: TAgentState)
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:403
↓ 2 callersFunctionhandleAction
(action: "approve" | "cancel")
client/app/chat/[id]/components/reminder.tsx:19
↓ 2 callersFunctionremoveAppCheckpointsAfterCheckpoint
(checkpointId: string)
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:102
↓ 2 callersFunctionupdateGraphNodeStateFromMetadata
(appCheckpoint: AppCheckpoint<TAgentState, TInterruptValue>, checkpoint: Checkpoint<TAgentState, TInterruptVal
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:298
↓ 1 callersFunctionbuildTree
(checkpoints: Checkpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/ascii-tree.ts:11
↓ 1 callersFunctioncallAgentRoute
( body: RunAgentInputInternal<TAgentState> | ResumeAgentInputInternal<TResumeValue> | ForkAgentInputInternal
client/hooks/useLangGraphAgent/api.ts:43
↓ 1 callersFunctioncheckpoint_event
Create a checkpoint event for the client.
agent/app/utils.py:5
↓ 1 callersFunctioncustom_event
Create a custom event for the client.
agent/app/utils.py:93
↓ 1 callersFunctionformat_messages
Format message chunk into a serializable dictionary. This is needed because the message class is not serializable.
agent/app/utils.py:63
↓ 1 callersFunctionformat_writes
(writes: dict)
agent/app/utils.py:22
↓ 1 callersFunctiongenerate_events
()
agent/app/server.py:136
↓ 1 callersFunctiongetHistory
(threadId: string)
client/hooks/useLangGraphAgent/actions.ts:7
↓ 1 callersFunctionhandleExampleClick
(message: string)
client/app/chat/[id]/page.tsx:112
↓ 1 callersFunctionhandleThemeChange
(themeToSwitch: string)
client/components/theme-switcher.tsx:21
↓ 1 callersFunctioninit_agent
(use_mcp: bool)
agent/app/agent/graph.py:201
↓ 1 callersFunctioninitialize_mcp_tools
()
agent/app/agent/graph.py:188
↓ 1 callersFunctioninterrupt_event
Create an interrupt event for the client.
agent/app/utils.py:83
↓ 1 callersFunctionmain
()
mcp-servers/booking-mcp/src/stdio-server.ts:4
↓ 1 callersFunctionmain
()
agent/app/server.py:169
↓ 1 callersFunctionmessage_chunk_event
Create a message chunk event for the client.
agent/app/utils.py:60
↓ 1 callersFunctiononCheckpointEnd
(checkpoint: AppCheckpoint<AgentState, InterruptValue>)
client/app/chat/[id]/page.tsx:41
↓ 1 callersFunctiononCheckpointStart
(checkpoint: AppCheckpoint<AgentState, InterruptValue>)
client/app/chat/[id]/page.tsx:37
↓ 1 callersFunctiononCheckpointStateUpdate
(checkpoint: AppCheckpoint<AgentState, InterruptValue>)
client/app/chat/[id]/page.tsx:50
↓ 1 callersFunctionparseSSEMessage
(chunk: string)
client/hooks/useLangGraphAgent/api.ts:9
↓ 1 callersFunctionprintTreeNode
(node: TreeNode, options: PrintOptions = {}, prefix: string = "", isLast: boolean = true)
client/hooks/useLangGraphAgent/ascii-tree.ts:58
↓ 1 callersFunctionprocessCheckpoint
(checkpoint: Checkpoint<TAgentState, TInterruptValue>, appCheckpoints: AppCheckpoint<TAgentState, TInterruptVa
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:244
↓ 1 callersFunctionprocessCustomEvent
(state: Partial<TAgentState>, appCheckpoints: AppCheckpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:368
↓ 1 callersFunctionprocessError
(appCheckpoints: AppCheckpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:394
↓ 1 callersFunctionprocessHistoryCheckpoint
(checkpoint: Checkpoint<TAgentState, TInterruptValue>, appCheckpoints: AppCheckpoint<TAgentState, TInterruptVa
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:210
↓ 1 callersFunctionprocessInterrupts
(interrupts: Interrupt<TInterruptValue>[], appCheckpoints: AppCheckpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:385
↓ 1 callersFunctionprocessMessageChunk
(nodeMessageChunk: NodeMessageChunk, appCheckpoints: AppCheckpoint<TAgentState, TInterruptValue>[])
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:310
↓ 1 callersFunctionrenderCheckpointError
(checkpoint: AppCheckpoint<AgentState, InterruptValue>)
client/app/chat/[id]/page.tsx:123
↓ 1 callersFunctionrenderNode
(checkpoint: AppCheckpoint<AgentState, InterruptValue>, node: GraphNode<AgentState>)
client/app/chat/[id]/page.tsx:132
↓ 1 callersFunctionrestore
* Restores the agent state from the checkpoints history. * @param threadId - The ID of the thread to restore.
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:164
↓ 1 callersFunctionresume
* 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 callersFunctionscrollToBottom
()
client/app/chat/[id]/page.tsx:103
↓ 1 callersFunctionstop
* 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 callersFunctionstopAgent
(threadId: string)
client/hooks/useLangGraphAgent/actions.ts:19
↓ 1 callersFunctionuseIsMobile
()
client/hooks/use-mobile.tsx:5
↓ 1 callersFunctionuseLangGraphAgent
( callbacks?: UseAgentStateCallbacks<TAgentState, TInterruptValue> )
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:44
↓ 1 callersFunctionuseMounted
()
client/components/theme-provider.tsx:7
FunctionAppSidebar
()
client/components/app-sidebar.tsx:21
FunctionBadge
({ className, variant, ...props }: BadgeProps)
client/components/ui/badge.tsx:30
FunctionChatPage
()
client/app/chat/[id]/page.tsx:18
FunctionChatbotNode
({ nodeState }: ChatbotNodeProps)
client/app/chat/[id]/components/chatbot-node.tsx:12
FunctionChatsPage
()
client/app/chat/page.tsx:1
FunctionCheckpointCard
({ thread_id, appCheckpoint: node, replayHandler }: CheckpointCardProps)
client/app/chat/[id]/components/checkpoint-card.tsx:19
FunctionCloudy
()
client/app/chat/[id]/components/weather/cloudy.tsx:6
FunctionFeatureBlock
({ title, description, }: { title: string description: string })
client/app/page.tsx:57
FunctionNodeCard
({ node }: { node: GraphNode<AgentState> })
client/app/chat/[id]/components/node-card.tsx:11
FunctionPOST
(request: NextRequest)
client/app/api/agent/route.ts:10
FunctionRainy
()
client/app/chat/[id]/components/weather/rainy.tsx:7
FunctionReminder
({ interruptValue, onResume }: ReminderProps)
client/app/chat/[id]/components/reminder.tsx:11
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
client/app/layout.tsx:23
FunctionSheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
client/components/ui/sheet.tsx:91
FunctionSheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
client/components/ui/sheet.tsx:77
FunctionSkeleton
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
client/components/ui/skeleton.tsx:3
FunctionSnowy
()
client/app/chat/[id]/components/weather/snowy.tsx:7
FunctionSunny
()
client/app/chat/[id]/components/weather/sunny.tsx:7
FunctionThemeProvider
({ children, ...props }: React.ComponentProps<typeof NextThemesProvider>)
client/components/theme-provider.tsx:13
FunctionThemeSwitcher
()
client/components/theme-switcher.tsx:15
FunctionWeatherNode
({ nodeState }: WeatherNodeProps)
client/app/chat/[id]/components/weather/weather-node.tsx:13
FunctionWelcomePage
()
client/app/page.tsx:6
Functionagent
Endpoint for running the agent.
agent/app/server.py:90
Functionassign_tool
(state: State)
agent/app/agent/graph.py:165
Functionchatbot
(state: State)
agent/app/agent/graph.py:153
Functioncreate_event
Create an event
mcp-servers/calendar-mcp/calendar-mcp-server.py:14
Functioncreate_reminder_tool
Call to create a reminder
agent/app/agent/graph.py:96
FunctiondefaultRenderState
(state: any)
client/hooks/useLangGraphAgent/ascii-tree.ts:50
Functionfork
* Fork the checkpoint with the updated state. * @param agentInput - Input configuration for forking the agent (see {@link ForkAgentInput}).
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:74
FunctionhandleAddChat
()
client/components/app-sidebar.tsx:26
FunctionhandleAddChat
()
client/app/page.tsx:10
FunctionhandleKeyDown
(event: KeyboardEvent)
client/components/ui/sidebar.tsx:101
FunctionhandleResume
(resumeValue: ResumeValue)
client/app/chat/[id]/page.tsx:119
FunctionhandleScrollUpdate
()
client/app/chat/[id]/page.tsx:89
Functionhistory
Endpoint returning complete state history. Used for restoring graph.
agent/app/server.py:62
Functionlifespan
(app: FastAPI)
agent/app/server.py:27
Functionlist_events
List all events
mcp-servers/calendar-mcp/calendar-mcp-server.py:20
Functionmcp_tool
(input: McpToolNodeArgs)
agent/app/agent/graph.py:123
FunctiononChange
()
client/hooks/use-mobile.tsx:10
FunctionprintCheckpointTree
(checkpoints: Checkpoint<TAgentState, TInterruptValue>[], options: PrintOptions = {})
client/hooks/useLangGraphAgent/ascii-tree.ts:84
Functionreminder
(input: ToolNodeArgs)
agent/app/agent/graph.py:115
Functionreplay
* Runs agent from the checkpoint. * @param agentInput - Input configuration for replaying the agent (see {@link ReplayAgentInput}).
client/hooks/useLangGraphAgent/useLangGraphAgent.tsx:83
Functionstate
Endpoint returning current graph state.
agent/app/server.py:50
Functionstop_agent
Endpoint for stopping the running agent.
agent/app/server.py:76
Functionweather
(input: WeatherInput, writer: StreamWriter)
agent/app/agent/graph.py:101
Functionweather_tool
Call to get current weather
agent/app/agent/graph.py:90