MCPcopy Create free account

hub / github.com/baby-llm/baby-agent / functions

Functions923 in github.com/baby-llm/baby-agent

↓ 70 callersMethodString
()
ch06/memory/memory.go:12
↓ 23 callersMethodName
()
ch06/context/policy.go:14
↓ 19 callersMethodLoad
(ctx context.Context, key string)
ch06/storage/storage.go:6
↓ 16 callersMethodpush
(item: T)
frontend/src/components/assistant-ui/model-adapter.ts:39
↓ 15 callersFunctionGetWorkspaceDir
()
shared/env.go:13
↓ 15 callersMethodRender
()
ch08/tui/entry.go:115
↓ 15 callersMethodRender
()
ch09/tui/entry.go:115
↓ 15 callersMethodToolName
()
ch07/tool/tool.go:18
↓ 13 callersMethodInfo
()
ch07/tool/tool.go:19
↓ 12 callersFunctionNewLLMClient
(modelConf ModelConfig)
shared/client.go:8
↓ 12 callersMethodRun
Run 提供对于单次用户请求 query 的 tool loop,返回本轮结果的输出。Run 会保持当前对话历史,不同主题的对话轮次应该初始化多个 Agent 实例运行。
ch02/agent.go:47
↓ 11 callersMethodExecute
(ctx context.Context, argumentsInJSON string)
ch07/tool/tool.go:20
↓ 11 callersFunctionGetRoleName
GetRoleName 从消息中获取角色名称(不依赖 GetRole())
shared/type.go:8
↓ 11 callersMethodRender
()
ch03/tui/tui.go:80
↓ 11 callersMethodRender
()
ch05/tui/entry.go:80
↓ 11 callersMethodRender
()
ch06/tui/entry.go:96
↓ 11 callersMethodRender
()
ch04/tui/tui.go:80
↓ 10 callersMethodStore
(ctx context.Context, key string, value string)
ch06/storage/storage.go:7
↓ 9 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 8 callersFunctionErr
(code int, msg string)
ch10/vo/vo.go:14
↓ 8 callersFunctionPtr
(v T)
shared/util.go:3
↓ 8 callersMethodrefreshLogsViewportContent
()
ch08/tui/tui.go:523
↓ 8 callersMethodrefreshLogsViewportContent
()
ch09/tui/tui.go:523
↓ 7 callersMethodClose
Close 关闭连接
ch07/rag/type.go:62
↓ 7 callersMethodCount
Count 返回文档块总数
ch07/db/pgvector.go:215
↓ 7 callersMethodUpdate
(ctx context.Context, newMessages []shared.OpenAIMessage)
ch06/memory/memory.go:13
↓ 7 callersMethodrefreshLogsViewportContent
()
ch06/tui/tui.go:481
↓ 6 callersMethodModel
()
ch10/agent/agent.go:47
↓ 6 callersFunctionbuildEngine
(msgs []shared.OpenAIMessage)
ch08/context/policy_test.go:52
↓ 6 callersFunctionbuildEngine
(msgs []shared.OpenAIMessage)
ch09/context/policy_test.go:52
↓ 6 callersFunctionbuildEngine
(msgs []shared.OpenAIMessage)
ch05/context/policy_test.go:52
↓ 6 callersFunctionbuildEngine
(msgs []shared.OpenAIMessage)
ch06/context/policy_test.go:52
↓ 6 callersMethodrefreshLogsViewportContent
()
ch05/tui/tui.go:444
↓ 5 callersMethodIsStdio
()
shared/mcp.go:20
↓ 5 callersFunctionLoadAppConfig
(path string)
shared/config.go:39
↓ 5 callersFunctionLoadMcpServerConfig
(path string)
shared/mcp.go:49
↓ 5 callersFunctionOK
(data any)
ch10/vo/vo.go:10
↓ 5 callersMethodReplacePlaceholders
(replaceMap map[string]string)
shared/mcp.go:28
↓ 5 callersFunctioncontentString
(t *testing.T, msg shared.OpenAIMessage)
ch08/context/policy_test.go:75
↓ 5 callersFunctioncontentString
(t *testing.T, msg shared.OpenAIMessage)
ch09/context/policy_test.go:75
↓ 5 callersFunctioncontentString
(t *testing.T, msg shared.OpenAIMessage)
ch05/context/policy_test.go:75
↓ 5 callersFunctioncontentString
(t *testing.T, msg shared.OpenAIMessage)
ch06/context/policy_test.go:75
↓ 5 callersMethodrefreshLogsViewportContent
()
ch03/tui/tui.go:458
↓ 5 callersMethodrefreshLogsViewportContent
()
ch04/tui/tui.go:482
↓ 4 callersMethodApply
Apply 纯函数,可以读取 engine 状态,返回新的状态(不修改 engine 内部变量)
ch06/context/policy.go:17
↓ 4 callersFunctionCountTokens
(message shared.OpenAIMessage)
ch08/context/share.go:21
↓ 4 callersFunctionCountTokens
(message shared.OpenAIMessage)
ch09/context/share.go:21
↓ 4 callersFunctionCountTokens
(message shared.OpenAIMessage)
ch05/context/share.go:21
↓ 4 callersFunctionCountTokens
(message shared.OpenAIMessage)
ch06/context/share.go:21
↓ 4 callersMethodGetSummaryInputTokenLimit
()
ch06/context/summary.go:15
↓ 4 callersFunctionNewModelConfig
()
shared/config.go:23
↓ 4 callersMethodShouldApply
(ctx context.Context, engine *Engine)
ch06/context/policy.go:15
↓ 4 callersMethodSummarize
(ctx context.Context, runningSummary string, messages []shared.OpenAIMessage)
ch06/context/summary.go:16
↓ 4 callersFunctionassertThreadOperationSupported
( message: string, operation: string, threadId: string, supported: boolean, )
frontend/src/components/assistant-ui/thread-list-adapter.ts:108
↓ 4 callersFunctionfinalize
(callback?: () => void)
frontend/src/api.ts:135
↓ 3 callersMethodCreateConversation
(req vo.CreateConversationReq)
ch10/server/service.go:26
↓ 3 callersMethodEmbed
(ctx context.Context, chunk string)
ch07/rag/type.go:36
↓ 3 callersFunctionErrorf
(format string, args ...interface{})
shared/log/log.go:35
↓ 3 callersMethodGetContextUsage
()
ch08/context/engine.go:110
↓ 3 callersMethodGetContextUsage
()
ch09/context/engine.go:120
↓ 3 callersMethodGetContextUsage
()
ch05/context/engine.go:91
↓ 3 callersMethodGetContextUsage
()
ch06/context/engine.go:105
↓ 3 callersFunctionGetHomeDir
()
shared/env.go:5
↓ 3 callersFunctionNewOffloadPolicy
(storage storage.Storage, usageThreshold float64, keepRecentMessages, previewCharLimit int)
ch08/context/policy_offload.go:27
↓ 3 callersFunctionNewOffloadPolicy
(storage storage.Storage, usageThreshold float64, keepRecentMessages, previewCharLimit int)
ch09/context/policy_offload.go:27
↓ 3 callersFunctionNewOffloadPolicy
(storage storage.Storage, usageThreshold float64, keepRecentMessages, previewCharLimit int)
ch05/context/policy_offload.go:27
↓ 3 callersFunctionNewOffloadPolicy
(storage storage.Storage, usageThreshold float64, keepRecentMessages, previewCharLimit int)
ch06/context/policy_offload.go:27
↓ 3 callersFunctionNewSummaryPolicy
(summarizer Summarizer, keepRecentMessages, summaryBatchSize int, usageThreshold float64)
ch08/context/policy_summary.go:27
↓ 3 callersFunctionNewSummaryPolicy
(summarizer Summarizer, keepRecentMessages, summaryBatchSize int, usageThreshold float64)
ch09/context/policy_summary.go:27
↓ 3 callersFunctionNewSummaryPolicy
(summarizer Summarizer, keepRecentMessages, summaryBatchSize int, usageThreshold float64)
ch05/context/policy_summary.go:27
↓ 3 callersFunctionNewSummaryPolicy
(summarizer Summarizer, keepRecentMessages, summaryBatchSize int, usageThreshold float64)
ch06/context/policy_summary.go:27
↓ 3 callersFunctionNewTruncatePolicy
(keepRecentMessages int, usageThreshold float64)
ch08/context/policy_truncate.go:12
↓ 3 callersFunctionNewTruncatePolicy
(keepRecentMessages int, usageThreshold float64)
ch09/context/policy_truncate.go:12
↓ 3 callersFunctionNewTruncatePolicy
(keepRecentMessages int, usageThreshold float64)
ch05/context/policy_truncate.go:12
↓ 3 callersFunctionNewTruncatePolicy
(keepRecentMessages int, usageThreshold float64)
ch06/context/policy_truncate.go:12
↓ 3 callersMethodclose
(finalItem: T)
frontend/src/components/assistant-ui/model-adapter.ts:49
↓ 3 callersFunctiongetEnvDefault
(key, defaultValue string)
shared/config.go:32
↓ 3 callersMethodlogsViewportHeight
()
ch08/tui/tui.go:503
↓ 3 callersMethodlogsViewportHeight
()
ch09/tui/tui.go:503
↓ 3 callersMethodlogsViewportHeight
()
ch03/tui/tui.go:438
↓ 3 callersMethodlogsViewportHeight
()
ch05/tui/tui.go:424
↓ 3 callersMethodlogsViewportHeight
()
ch06/tui/tui.go:461
↓ 3 callersMethodlogsViewportHeight
()
ch04/tui/tui.go:462
↓ 3 callersMethodscrollDown
(n int)
ch08/tui/tui.go:481
↓ 3 callersMethodscrollDown
(n int)
ch09/tui/tui.go:481
↓ 3 callersMethodscrollDown
(n int)
ch03/tui/tui.go:416
↓ 3 callersMethodscrollDown
(n int)
ch05/tui/tui.go:402
↓ 3 callersMethodscrollDown
(n int)
ch06/tui/tui.go:439
↓ 3 callersMethodscrollDown
(n int)
ch04/tui/tui.go:440
↓ 3 callersMethodscrollUp
(n int)
ch08/tui/tui.go:474
↓ 3 callersMethodscrollUp
(n int)
ch09/tui/tui.go:474
↓ 3 callersMethodscrollUp
(n int)
ch03/tui/tui.go:409
↓ 3 callersMethodscrollUp
(n int)
ch05/tui/tui.go:395
↓ 3 callersMethodscrollUp
(n int)
ch06/tui/tui.go:432
↓ 3 callersMethodscrollUp
(n int)
ch04/tui/tui.go:433
↓ 3 callersMethodstopActiveStream
()
ch08/tui/tui.go:438
↓ 3 callersMethodstopActiveStream
()
ch09/tui/tui.go:438
↓ 3 callersMethodstopActiveStream
()
ch05/tui/tui.go:360
↓ 3 callersMethodstopActiveStream
()
ch06/tui/tui.go:380
↓ 3 callersMethodstopActiveStream
()
ch04/tui/tui.go:398
next →1–100 of 923, ranked by callers