Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baby-llm/baby-agent
/ functions
Functions
923 in github.com/baby-llm/baby-agent
⨍
Functions
923
◇
Types & classes
307
↓ 1 callers
Function
bindAbortSignal
(signal: AbortSignal | undefined, ctrl: AbortController)
frontend/src/api.ts:227
↓ 1 callers
Function
buildAssistantParts
(item: ChatMessageVO)
frontend/src/components/assistant-ui/thread.tsx:156
↓ 1 callers
Function
buildHistory
buildHistory 根据 parent_message_id 沿树向上追溯路径, 将路径上每条消息的 rounds 拼接成 LLM history。 allMsgs 为该会话下的全部消息,parentMessageID 为本次请求的父消息 ID。
ch10/server/history.go:12
↓ 1 callers
Function
buildHistoryRepository
(history: ChatMessageVO[])
frontend/src/components/assistant-ui/thread.tsx:107
↓ 1 callers
Function
buildToolParts
(rounds: RoundMessageVO[])
frontend/src/components/assistant-ui/thread.tsx:166
↓ 1 callers
Method
buildTools
()
ch08/agent.go:68
↓ 1 callers
Method
buildTools
()
ch09/agent.go:68
↓ 1 callers
Method
buildTools
()
ch03/agent.go:46
↓ 1 callers
Method
buildTools
()
ch05/agent.go:64
↓ 1 callers
Method
buildTools
()
ch10/agent/agent.go:56
↓ 1 callers
Method
buildTools
()
ch06/agent.go:64
↓ 1 callers
Method
buildTools
()
ch04/agent.go:62
↓ 1 callers
Method
callTool
(ctx context.Context, toolName string, argumentsInJSON string)
ch08/mcp.go:102
↓ 1 callers
Method
callTool
(ctx context.Context, toolName string, argumentsInJSON string)
ch09/mcp.go:102
↓ 1 callers
Method
callTool
(ctx context.Context, toolName string, argumentsInJSON string)
ch05/mcp.go:102
↓ 1 callers
Method
callTool
(ctx context.Context, toolName string, argumentsInJSON string)
ch06/mcp.go:102
↓ 1 callers
Method
callTool
(ctx context.Context, toolName string, argumentsInJSON string)
ch04/mcp.go:103
↓ 1 callers
Function
checkDockerAvailable
checkDockerAvailable checks if docker command is available
ch08/tool/factory.go:9
↓ 1 callers
Function
checkDockerAvailable
checkDockerAvailable checks if docker command is available
ch09/tool/factory.go:9
↓ 1 callers
Method
clearSession
()
ch08/tui/tui.go:413
↓ 1 callers
Method
clearSession
()
ch09/tui/tui.go:413
↓ 1 callers
Method
clearSession
()
ch03/tui/tui.go:373
↓ 1 callers
Method
clearSession
()
ch05/tui/tui.go:334
↓ 1 callers
Method
clearSession
()
ch06/tui/tui.go:354
↓ 1 callers
Method
clearSession
()
ch04/tui/tui.go:372
↓ 1 callers
Function
cloneAssistantParts
(parts: readonly ThreadAssistantMessagePart[])
frontend/src/components/assistant-ui/model-adapter.ts:297
↓ 1 callers
Function
createThread
(title = 'New Chat')
frontend/src/api.ts:87
↓ 1 callers
Function
deleteThread
(threadId: string)
frontend/src/api.ts:111
↓ 1 callers
Method
embedChunks
embedChunks 批量获取向量嵌入
ch07/index/indexer.go:222
↓ 1 callers
Method
ensureSandboxContainer
(ctx context.Context)
ch08/tool/docker_bash.go:98
↓ 1 callers
Method
ensureSandboxContainer
(ctx context.Context)
ch09/tool/docker_bash.go:98
↓ 1 callers
Method
execute
(ctx context.Context, toolName string, argumentsInJSON string)
ch03/agent.go:38
↓ 1 callers
Method
execute
(ctx context.Context, toolName string, argumentsInJSON string)
ch02/agent.go:38
↓ 1 callers
Method
execute
(ctx context.Context, toolName string, argumentsInJSON string)
ch05/agent.go:46
↓ 1 callers
Method
execute
(ctx context.Context, toolName string, argumentsInJSON string)
ch06/agent.go:46
↓ 1 callers
Method
execute
(ctx context.Context, toolName string, argumentsInJSON string)
ch04/agent.go:44
↓ 1 callers
Method
executeTool
executeTool 执行单个 tool call,返回 tool result 和错误。 tool 不存在时返回错误;Execute 失败时返回错误,result 为错误信息。
ch10/agent/agent.go:66
↓ 1 callers
Function
extractRoundChunks
(message: ChatMessageVO)
frontend/src/lib/assistant-ui/message-mapper.ts:156
↓ 1 callers
Function
extractTextContent
(message: ThreadMessage)
frontend/src/components/assistant-ui/model-adapter.ts:142
↓ 1 callers
Function
fetch
(remoteId)
frontend/src/components/assistant-ui/thread-list-adapter.ts:33
↓ 1 callers
Function
fetchThreadMessages
(threadId: string)
frontend/src/api.ts:117
↓ 1 callers
Method
finalizePendingStates
()
ch06/tui/tui.go:390
↓ 1 callers
Function
findPendingToolCallIndex
(parts: readonly ThreadAssistantMessagePart[], toolName: string)
frontend/src/components/assistant-ui/model-adapter.ts:261
↓ 1 callers
Method
findTool
(toolName string)
ch08/agent.go:53
↓ 1 callers
Method
findTool
(toolName string)
ch09/agent.go:53
↓ 1 callers
Method
findTool
(toolName string)
ch10/agent/agent.go:51
↓ 1 callers
Method
formatResults
formatResults 格式化搜索结果为可读字符串
ch07/tool/semantic_search.go:118
↓ 1 callers
Function
formatToolResult
(result: unknown)
frontend/src/components/assistant-ui/tool-call-card.tsx:76
↓ 1 callers
Function
generateConversationTitle
(messages: readonly ThreadMessage[])
frontend/src/components/assistant-ui/thread-list-adapter.ts:93
↓ 1 callers
Function
getLatestBackendMessageId
(messages: readonly ThreadMessage[])
frontend/src/components/assistant-ui/model-adapter.ts:132
↓ 1 callers
Function
getLatestUserQuery
(messages: readonly ThreadMessage[])
frontend/src/components/assistant-ui/model-adapter.ts:123
↓ 1 callers
Method
handleConfirmSelection
()
ch08/tui/tui.go:243
↓ 1 callers
Method
handleConfirmSelection
()
ch09/tui/tui.go:243
↓ 1 callers
Method
handleKey
(msg tea.KeyPressMsg)
ch08/tui/tui.go:159
↓ 1 callers
Method
handleKey
(msg tea.KeyPressMsg)
ch09/tui/tui.go:159
↓ 1 callers
Method
handleKey
(msg tea.KeyPressMsg)
ch03/tui/tui.go:199
↓ 1 callers
Method
handleKey
(msg tea.KeyPressMsg)
ch05/tui/tui.go:150
↓ 1 callers
Method
handleKey
(msg tea.KeyPressMsg)
ch06/tui/tui.go:150
↓ 1 callers
Method
handleKey
(msg tea.KeyPressMsg)
ch04/tui/tui.go:206
↓ 1 callers
Method
handleStreamDone
(msg streamDoneMsg)
ch08/tui/tui.go:365
↓ 1 callers
Method
handleStreamDone
(msg streamDoneMsg)
ch09/tui/tui.go:365
↓ 1 callers
Method
handleStreamDone
(msg streamDoneMsg)
ch03/tui/tui.go:322
↓ 1 callers
Method
handleStreamDone
(msg streamDoneMsg)
ch05/tui/tui.go:290
↓ 1 callers
Method
handleStreamDone
(msg streamDoneMsg)
ch06/tui/tui.go:309
↓ 1 callers
Method
handleStreamDone
(msg streamDoneMsg)
ch04/tui/tui.go:329
↓ 1 callers
Method
handleStreamEvent
(event ch08.MessageVO)
ch08/tui/tui.go:267
↓ 1 callers
Method
handleStreamEvent
(event ch09.MessageVO)
ch09/tui/tui.go:267
↓ 1 callers
Method
handleStreamEvent
(event ch03.MessageVO)
ch03/tui/tui.go:264
↓ 1 callers
Method
handleStreamEvent
(event ch05.MessageVO)
ch05/tui/tui.go:215
↓ 1 callers
Method
handleStreamEvent
(event ch06.MessageVO)
ch06/tui/tui.go:215
↓ 1 callers
Method
handleStreamEvent
(event ch04.MessageVO)
ch04/tui/tui.go:271
↓ 1 callers
Method
handleStreamMsg
(msg streamMsg)
ch08/tui/tui.go:356
↓ 1 callers
Method
handleStreamMsg
(msg streamMsg)
ch09/tui/tui.go:356
↓ 1 callers
Method
handleStreamMsg
(msg streamMsg)
ch03/tui/tui.go:313
↓ 1 callers
Method
handleStreamMsg
(msg streamMsg)
ch05/tui/tui.go:281
↓ 1 callers
Method
handleStreamMsg
(msg streamMsg)
ch06/tui/tui.go:297
↓ 1 callers
Method
handleStreamMsg
(msg streamMsg)
ch04/tui/tui.go:320
↓ 1 callers
Method
handleSubmit
()
ch08/tui/tui.go:224
↓ 1 callers
Method
handleSubmit
()
ch09/tui/tui.go:224
↓ 1 callers
Method
handleSubmit
()
ch03/tui/tui.go:245
↓ 1 callers
Method
handleSubmit
()
ch05/tui/tui.go:196
↓ 1 callers
Method
handleSubmit
()
ch06/tui/tui.go:196
↓ 1 callers
Method
handleSubmit
()
ch04/tui/tui.go:252
↓ 1 callers
Function
initRunningVars
()
ch08/mcp.go:28
↓ 1 callers
Function
initRunningVars
()
ch09/mcp.go:28
↓ 1 callers
Function
initRunningVars
()
ch05/mcp.go:28
↓ 1 callers
Function
initRunningVars
()
ch06/mcp.go:28
↓ 1 callers
Function
initRunningVars
()
ch04/mcp.go:28
↓ 1 callers
Method
initTable
initTable 创建必要的表和索引
ch07/db/pgvector.go:89
↓ 1 callers
Function
isAbortError
(err: unknown)
frontend/src/api.ts:239
↓ 1 callers
Function
isPlainObject
(value: unknown)
frontend/src/components/assistant-ui/model-adapter.ts:293
↓ 1 callers
Function
isTransportErrorItem
(item: StreamQueueItem)
frontend/src/components/assistant-ui/model-adapter.ts:183
↓ 1 callers
Method
load
()
ch08/memory/memory.go:39
↓ 1 callers
Method
load
()
ch09/memory/memory.go:39
↓ 1 callers
Method
load
()
ch06/memory/memory.go:39
↓ 1 callers
Method
logsFooterHeight
()
ch08/tui/tui.go:492
↓ 1 callers
Method
logsFooterHeight
()
ch09/tui/tui.go:492
↓ 1 callers
Method
logsFooterHeight
()
ch03/tui/tui.go:427
↓ 1 callers
Method
logsFooterHeight
()
ch05/tui/tui.go:413
↓ 1 callers
Method
logsFooterHeight
()
ch06/tui/tui.go:450
← previous
next →
401–500 of 923, ranked by callers