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
↓ 70 callers
Method
String
()
ch06/memory/memory.go:12
↓ 23 callers
Method
Name
()
ch06/context/policy.go:14
↓ 19 callers
Method
Load
(ctx context.Context, key string)
ch06/storage/storage.go:6
↓ 16 callers
Method
push
(item: T)
frontend/src/components/assistant-ui/model-adapter.ts:39
↓ 15 callers
Function
GetWorkspaceDir
()
shared/env.go:13
↓ 15 callers
Method
Render
()
ch08/tui/entry.go:115
↓ 15 callers
Method
Render
()
ch09/tui/entry.go:115
↓ 15 callers
Method
ToolName
()
ch07/tool/tool.go:18
↓ 13 callers
Method
Info
()
ch07/tool/tool.go:19
↓ 12 callers
Function
NewLLMClient
(modelConf ModelConfig)
shared/client.go:8
↓ 12 callers
Method
Run
Run 提供对于单次用户请求 query 的 tool loop,返回本轮结果的输出。Run 会保持当前对话历史,不同主题的对话轮次应该初始化多个 Agent 实例运行。
ch02/agent.go:47
↓ 11 callers
Method
Execute
(ctx context.Context, argumentsInJSON string)
ch07/tool/tool.go:20
↓ 11 callers
Function
GetRoleName
GetRoleName 从消息中获取角色名称(不依赖 GetRole())
shared/type.go:8
↓ 11 callers
Method
Render
()
ch03/tui/tui.go:80
↓ 11 callers
Method
Render
()
ch05/tui/entry.go:80
↓ 11 callers
Method
Render
()
ch06/tui/entry.go:96
↓ 11 callers
Method
Render
()
ch04/tui/tui.go:80
↓ 10 callers
Method
Store
(ctx context.Context, key string, value string)
ch06/storage/storage.go:7
↓ 9 callers
Function
cn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 8 callers
Function
Err
(code int, msg string)
ch10/vo/vo.go:14
↓ 8 callers
Function
Ptr
(v T)
shared/util.go:3
↓ 8 callers
Method
refreshLogsViewportContent
()
ch08/tui/tui.go:523
↓ 8 callers
Method
refreshLogsViewportContent
()
ch09/tui/tui.go:523
↓ 7 callers
Method
Close
Close 关闭连接
ch07/rag/type.go:62
↓ 7 callers
Method
Count
Count 返回文档块总数
ch07/db/pgvector.go:215
↓ 7 callers
Method
Update
(ctx context.Context, newMessages []shared.OpenAIMessage)
ch06/memory/memory.go:13
↓ 7 callers
Method
refreshLogsViewportContent
()
ch06/tui/tui.go:481
↓ 6 callers
Method
Model
()
ch10/agent/agent.go:47
↓ 6 callers
Function
buildEngine
(msgs []shared.OpenAIMessage)
ch08/context/policy_test.go:52
↓ 6 callers
Function
buildEngine
(msgs []shared.OpenAIMessage)
ch09/context/policy_test.go:52
↓ 6 callers
Function
buildEngine
(msgs []shared.OpenAIMessage)
ch05/context/policy_test.go:52
↓ 6 callers
Function
buildEngine
(msgs []shared.OpenAIMessage)
ch06/context/policy_test.go:52
↓ 6 callers
Method
refreshLogsViewportContent
()
ch05/tui/tui.go:444
↓ 5 callers
Method
IsStdio
()
shared/mcp.go:20
↓ 5 callers
Function
LoadAppConfig
(path string)
shared/config.go:39
↓ 5 callers
Function
LoadMcpServerConfig
(path string)
shared/mcp.go:49
↓ 5 callers
Function
OK
(data any)
ch10/vo/vo.go:10
↓ 5 callers
Method
ReplacePlaceholders
(replaceMap map[string]string)
shared/mcp.go:28
↓ 5 callers
Function
contentString
(t *testing.T, msg shared.OpenAIMessage)
ch08/context/policy_test.go:75
↓ 5 callers
Function
contentString
(t *testing.T, msg shared.OpenAIMessage)
ch09/context/policy_test.go:75
↓ 5 callers
Function
contentString
(t *testing.T, msg shared.OpenAIMessage)
ch05/context/policy_test.go:75
↓ 5 callers
Function
contentString
(t *testing.T, msg shared.OpenAIMessage)
ch06/context/policy_test.go:75
↓ 5 callers
Method
refreshLogsViewportContent
()
ch03/tui/tui.go:458
↓ 5 callers
Method
refreshLogsViewportContent
()
ch04/tui/tui.go:482
↓ 4 callers
Method
Apply
Apply 纯函数,可以读取 engine 状态,返回新的状态(不修改 engine 内部变量)
ch06/context/policy.go:17
↓ 4 callers
Function
CountTokens
(message shared.OpenAIMessage)
ch08/context/share.go:21
↓ 4 callers
Function
CountTokens
(message shared.OpenAIMessage)
ch09/context/share.go:21
↓ 4 callers
Function
CountTokens
(message shared.OpenAIMessage)
ch05/context/share.go:21
↓ 4 callers
Function
CountTokens
(message shared.OpenAIMessage)
ch06/context/share.go:21
↓ 4 callers
Method
GetSummaryInputTokenLimit
()
ch06/context/summary.go:15
↓ 4 callers
Function
NewModelConfig
()
shared/config.go:23
↓ 4 callers
Method
ShouldApply
(ctx context.Context, engine *Engine)
ch06/context/policy.go:15
↓ 4 callers
Method
Summarize
(ctx context.Context, runningSummary string, messages []shared.OpenAIMessage)
ch06/context/summary.go:16
↓ 4 callers
Function
assertThreadOperationSupported
( message: string, operation: string, threadId: string, supported: boolean, )
frontend/src/components/assistant-ui/thread-list-adapter.ts:108
↓ 4 callers
Function
finalize
(callback?: () => void)
frontend/src/api.ts:135
↓ 3 callers
Method
CreateConversation
(req vo.CreateConversationReq)
ch10/server/service.go:26
↓ 3 callers
Method
Embed
(ctx context.Context, chunk string)
ch07/rag/type.go:36
↓ 3 callers
Function
Errorf
(format string, args ...interface{})
shared/log/log.go:35
↓ 3 callers
Method
GetContextUsage
()
ch08/context/engine.go:110
↓ 3 callers
Method
GetContextUsage
()
ch09/context/engine.go:120
↓ 3 callers
Method
GetContextUsage
()
ch05/context/engine.go:91
↓ 3 callers
Method
GetContextUsage
()
ch06/context/engine.go:105
↓ 3 callers
Function
GetHomeDir
()
shared/env.go:5
↓ 3 callers
Function
NewOffloadPolicy
(storage storage.Storage, usageThreshold float64, keepRecentMessages, previewCharLimit int)
ch08/context/policy_offload.go:27
↓ 3 callers
Function
NewOffloadPolicy
(storage storage.Storage, usageThreshold float64, keepRecentMessages, previewCharLimit int)
ch09/context/policy_offload.go:27
↓ 3 callers
Function
NewOffloadPolicy
(storage storage.Storage, usageThreshold float64, keepRecentMessages, previewCharLimit int)
ch05/context/policy_offload.go:27
↓ 3 callers
Function
NewOffloadPolicy
(storage storage.Storage, usageThreshold float64, keepRecentMessages, previewCharLimit int)
ch06/context/policy_offload.go:27
↓ 3 callers
Function
NewSummaryPolicy
(summarizer Summarizer, keepRecentMessages, summaryBatchSize int, usageThreshold float64)
ch08/context/policy_summary.go:27
↓ 3 callers
Function
NewSummaryPolicy
(summarizer Summarizer, keepRecentMessages, summaryBatchSize int, usageThreshold float64)
ch09/context/policy_summary.go:27
↓ 3 callers
Function
NewSummaryPolicy
(summarizer Summarizer, keepRecentMessages, summaryBatchSize int, usageThreshold float64)
ch05/context/policy_summary.go:27
↓ 3 callers
Function
NewSummaryPolicy
(summarizer Summarizer, keepRecentMessages, summaryBatchSize int, usageThreshold float64)
ch06/context/policy_summary.go:27
↓ 3 callers
Function
NewTruncatePolicy
(keepRecentMessages int, usageThreshold float64)
ch08/context/policy_truncate.go:12
↓ 3 callers
Function
NewTruncatePolicy
(keepRecentMessages int, usageThreshold float64)
ch09/context/policy_truncate.go:12
↓ 3 callers
Function
NewTruncatePolicy
(keepRecentMessages int, usageThreshold float64)
ch05/context/policy_truncate.go:12
↓ 3 callers
Function
NewTruncatePolicy
(keepRecentMessages int, usageThreshold float64)
ch06/context/policy_truncate.go:12
↓ 3 callers
Method
close
(finalItem: T)
frontend/src/components/assistant-ui/model-adapter.ts:49
↓ 3 callers
Function
getEnvDefault
(key, defaultValue string)
shared/config.go:32
↓ 3 callers
Method
logsViewportHeight
()
ch08/tui/tui.go:503
↓ 3 callers
Method
logsViewportHeight
()
ch09/tui/tui.go:503
↓ 3 callers
Method
logsViewportHeight
()
ch03/tui/tui.go:438
↓ 3 callers
Method
logsViewportHeight
()
ch05/tui/tui.go:424
↓ 3 callers
Method
logsViewportHeight
()
ch06/tui/tui.go:461
↓ 3 callers
Method
logsViewportHeight
()
ch04/tui/tui.go:462
↓ 3 callers
Method
scrollDown
(n int)
ch08/tui/tui.go:481
↓ 3 callers
Method
scrollDown
(n int)
ch09/tui/tui.go:481
↓ 3 callers
Method
scrollDown
(n int)
ch03/tui/tui.go:416
↓ 3 callers
Method
scrollDown
(n int)
ch05/tui/tui.go:402
↓ 3 callers
Method
scrollDown
(n int)
ch06/tui/tui.go:439
↓ 3 callers
Method
scrollDown
(n int)
ch04/tui/tui.go:440
↓ 3 callers
Method
scrollUp
(n int)
ch08/tui/tui.go:474
↓ 3 callers
Method
scrollUp
(n int)
ch09/tui/tui.go:474
↓ 3 callers
Method
scrollUp
(n int)
ch03/tui/tui.go:409
↓ 3 callers
Method
scrollUp
(n int)
ch05/tui/tui.go:395
↓ 3 callers
Method
scrollUp
(n int)
ch06/tui/tui.go:432
↓ 3 callers
Method
scrollUp
(n int)
ch04/tui/tui.go:433
↓ 3 callers
Method
stopActiveStream
()
ch08/tui/tui.go:438
↓ 3 callers
Method
stopActiveStream
()
ch09/tui/tui.go:438
↓ 3 callers
Method
stopActiveStream
()
ch05/tui/tui.go:360
↓ 3 callers
Method
stopActiveStream
()
ch06/tui/tui.go:380
↓ 3 callers
Method
stopActiveStream
()
ch04/tui/tui.go:398
next →
1–100 of 923, ranked by callers