MCPcopy Create free account

hub / github.com/cloudwego/eino-examples / functions

Functions1,121 in github.com/cloudwego/eino-examples

↓ 1 callersFunctioncopyDir
(src, dest string)
quickstart/chatwitheino/scripts/sync_eino_ext_skills.go:200
↓ 1 callersFunctioncopyFile
(src, dest string)
quickstart/chatwitheino/scripts/sync_eino_ext_skills.go:226
↓ 1 callersFunctioncountWords
(s string)
adk/common/tool/graphtool/examples/1_chain_summarize/main.go:105
↓ 1 callersFunctioncreateAgent
(ctx context.Context)
adk/intro/http-sse-service/main.go:72
↓ 1 callersFunctioncreateFinanceTools
()
adk/middlewares/dynamictool/toolsearch/tools.go:108
↓ 1 callersFunctioncreateMessagesFromTemplate
()
quickstart/chat/template.go:41
↓ 1 callersFunctioncreateOllamaChatModel
(ctx context.Context)
quickstart/chat/ollama.go:27
↓ 1 callersFunctioncreateOpenAIChatModel
(ctx context.Context)
quickstart/chat/openai.go:28
↓ 1 callersFunctioncreateTemplate
()
quickstart/chat/template.go:27
↓ 1 callersFunctioncreateWeatherTools
()
adk/middlewares/dynamictool/toolsearch/tools.go:76
↓ 1 callersFunctioncustomizedRegister
customizeRegister registers customize routers.
flow/agent/deer-go/router.go:28
↓ 1 callersFunctiondebounce
(func, delay)
quickstart/eino_assistant/cmd/einoagent/task/web/script.js:227
↓ 1 callersFunctiondefaultDDGSearchConfig
(ctx context.Context)
quickstart/eino_assistant/eino/einoagent/tools_node.go:65
↓ 1 callersFunctiondefaultDescription
(name string)
quickstart/chatwitheino/scripts/sync_eino_ext_skills.go:141
↓ 1 callersFunctiondefaultEinoAssistantToolConfig
(ctx context.Context)
quickstart/eino_assistant/pkg/tool/einotool/einotool.go:48
↓ 1 callersFunctiondefaultGitCloneFileConfig
(ctx context.Context)
quickstart/eino_assistant/pkg/tool/gitclone/gitclone.go:39
↓ 1 callersFunctiondefaultOpenFileToolConfig
(ctx context.Context)
quickstart/eino_assistant/pkg/tool/open/open.go:38
↓ 1 callersFunctionemitTextCard
emitTextCard emits a text card with full content (non-streaming path).
quickstart/chatwitheino/a2ui/streamer.go:359
↓ 1 callersFunctionensureSkillMD
(destDir, name string)
quickstart/chatwitheino/scripts/sync_eino_ext_skills.go:118
↓ 1 callersFunctionextractCodeSnippet
(res string)
adk/multiagent/deep/tools/python_runner.go:122
↓ 1 callersFunctionextractCodeSnippet
(res string)
adk/multiagent/integration-excel-agent/tools/python_runner.go:122
↓ 1 callersFunctionextractRepoDir
辅助函数:从 URL 提取 group 和 repo
quickstart/eino_assistant/pkg/tool/gitclone/gitclone.go:162
↓ 1 callersFunctionfirstChunkStreamToolCallChecker
(_ context.Context, sr *schema.StreamReader[*schema.AgenticMessage])
flow/agent/react/agentic/react.go:143
↓ 1 callersFunctionformatBrowserToolPrompt
(ctx context.Context, bs *browseruse.BrowserState)
flow/agent/manus/manus.go:338
↓ 1 callersFunctionformatExecutedSteps
(in []planexecute.ExecutedStep)
adk/human-in-the-loop/8_supervisor-plan-execute/agent.go:147
↓ 1 callersFunctionformatExecutedSteps
(in []planexecute.ExecutedStep)
adk/human-in-the-loop/6_plan-execute-replan/agent.go:110
↓ 1 callersFunctionformatExecutedSteps
(in []planexecute.ExecutedStep)
adk/multiagent/plan-execute-replan/agent/agent.go:63
↓ 1 callersFunctionformatInput
(in []adk.Message)
adk/human-in-the-loop/8_supervisor-plan-execute/agent.go:143
↓ 1 callersFunctionformatInput
(in []adk.Message)
adk/human-in-the-loop/6_plan-execute-replan/agent.go:106
↓ 1 callersFunctionformatInput
(in []adk.Message)
adk/multiagent/plan-execute-replan/agent/agent.go:59
↓ 1 callersFunctiongenToolInfos
(ctx context.Context, config compose.ToolsNodeConfig)
flow/agent/react/agentic/react.go:220
↓ 1 callersFunctiongenToolInfos
把可执行的 Tool 转化为大模型可用的 Tool 信息
flow/agent/multiagent/plan_execute/compose.go:240
↓ 1 callersFunctiongenerate
(ctx context.Context, llm model.ToolCallingChatModel, in []*schema.Message)
quickstart/chat/generate.go:27
↓ 1 callersMethodgenerate
generate orchestrates diagram construction by delegating to renderGraph. The top-level direction is TD (top-down) for readability and consistency.
devops/visualize/mermaid.go:80
↓ 1 callersFunctiongenerateReport
generateReport simulates a long-running background report generation job. It sends the final URL or an error via the notify channel.
compose/graph/async_node/service.go:31
↓ 1 callersFunctiongetAddTodoTool
获取添加 todo 工具 使用 utils.NewTool 创建工具
quickstart/todoagent/main.go:155
↓ 1 callersFunctiongetAllFiles
(path string)
adk/multiagent/deep/generic/file_preview.go:81
↓ 1 callersFunctiongetAllFiles
(path string)
adk/multiagent/integration-excel-agent/generic/file_preview.go:81
↓ 1 callersFunctiongetData
()
flow/agent/react/tools/service.go:141
↓ 1 callersFunctiongetDeadlineStatus
(deadline, completed)
quickstart/eino_assistant/cmd/einoagent/task/web/script.js:75
↓ 1 callersFunctiongetRateLimitDelay
()
adk/human-in-the-loop/7_deep-agents/agent.go:60
↓ 1 callersFunctiongetRateLimitDelay
()
adk/human-in-the-loop/8_supervisor-plan-execute/agent.go:61
↓ 1 callersFunctiongetRateLimitDelay
()
adk/human-in-the-loop/5_supervisor/agent.go:61
↓ 1 callersFunctiongetRateLimitDelay
()
adk/human-in-the-loop/6_plan-execute-replan/agent.go:60
↓ 1 callersFunctiongetReturnDirectlyToolCallID
(input *schema.AgenticMessage, toolReturnDirectly map[string]struct{})
flow/agent/react/agentic/react.go:234
↓ 1 callersMethodhandleAbort
handleAbort immediately stops the current TurnLoop for a session.
quickstart/chatwitheino/server/server.go:545
↓ 1 callersFunctionhandleAction
(s *sse.Stream, event *adk.AgentEvent)
adk/intro/http-sse-service/main.go:252
↓ 1 callersMethodhandleApprove
(ctx context.Context, c *app.RequestContext)
quickstart/chatwitheino/cmd/ch10/main.go:290
↓ 1 callersMethodhandleApprove
handleApprove resumes an interrupted agent run with the user's approval decision. Creates a new TurnLoop with checkpoint/resume to continue from the i
quickstart/chatwitheino/server/server.go:427
↓ 1 callersFunctionhandleChat
(ctx context.Context, c *app.RequestContext, runner *adk.Runner)
adk/intro/http-sse-service/main.go:88
↓ 1 callersMethodhandleChat
(ctx context.Context, c *app.RequestContext)
quickstart/chatwitheino/cmd/ch10/main.go:225
↓ 1 callersMethodhandleChat
handleChat handles a new chat message. It creates or reuses a TurnLoop for the session. If a loop is already running (busy), it pushes with preempt to
quickstart/chatwitheino/server/server.go:283
↓ 1 callersFunctionhandleMessageOutput
(ctx context.Context, s *sse.Stream, event *adk.AgentEvent)
adk/intro/http-sse-service/main.go:144
↓ 1 callersFunctionhandleRegularMessage
(s *sse.Stream, event *adk.AgentEvent, msg *schema.Message)
adk/intro/http-sse-service/main.go:158
↓ 1 callersMethodhandleRender
(c *app.RequestContext)
quickstart/chatwitheino/cmd/ch10/main.go:275
↓ 1 callersMethodhandleRender
(_ context.Context, c *app.RequestContext)
quickstart/chatwitheino/server/server.go:266
↓ 1 callersFunctionhandleStreamingMessage
(ctx context.Context, s *sse.Stream, event *adk.AgentEvent, stream *schema.StreamReader[*schema.Message])
adk/intro/http-sse-service/main.go:178
↓ 1 callersMethodhandleUpload
(c *app.RequestContext)
quickstart/chatwitheino/cmd/ch10/main.go:351
↓ 1 callersMethodhandleUpload
(ctx context.Context, c *app.RequestContext)
quickstart/chatwitheino/server/server.go:789
↓ 1 callersFunctionindexMarkdownFiles
(ctx context.Context, dir string)
quickstart/eino_assistant/cmd/knowledgeindexing/main.go:85
↓ 1 callersFunctioninitAPMPlusCallback
initAPMPlusCallback initializes the Eino APMPlus callback handler. It creates trace spans and collects metrics for Eino applications, which will be se
flow/agent/deer-go/biz/infra/tracing.go:68
↓ 1 callersFunctioninitHertzTracing
initHertzTracing initializes Hertz framework tracing integration It creates trace spans and collects metrics for incoming HTTP requests, which will be
flow/agent/deer-go/biz/infra/tracing.go:88
↓ 1 callersFunctioninterruptingAgent
()
quickstart/chatwitheino/server/server_test.go:97
↓ 1 callersMethodinvoke
invoke is the internal implementation of batch processing.
compose/batch/batch/node.go:108
↓ 1 callersFunctionisFilePath
(path string)
quickstart/eino_assistant/pkg/tool/open/open.go:110
↓ 1 callersFunctionisMaxOutputTokensIncomplete
(msg *schema.AgenticMessage, inspect responseInspector)
adk/agentic/retry_max_output_tokens/retry.go:99
↓ 1 callersFunctionisTokenLimitReason
(reason string)
adk/agentic/retry_max_output_tokens/retry.go:104
↓ 1 callersFunctionisValidGitURL
辅助函数:验证 Git URL 格式
quickstart/eino_assistant/pkg/tool/gitclone/gitclone.go:126
↓ 1 callersMethodload
()
quickstart/eino_assistant/pkg/mem/simple.go:173
↓ 1 callersMethodloadFromDisk
()
quickstart/eino_assistant/pkg/tool/task/storage.go:72
↓ 1 callersFunctionloadJournal
search journal: user ask a question, this specialist load today's journal and ground its answer onto it.
flow/agent/multiagent/host/journal/answer_with_journal_specialist.go:36
↓ 1 callersFunctionmain
()
flow/agent/deer-go/biz/mcps/python/server.py:242
↓ 1 callersFunctionmakeBatchCheckpointID
makeBatchCheckpointID creates a checkpoint ID for a given batch index. Format: "batch_0", "batch_1", etc.
compose/batch/batch/store.go:48
↓ 1 callersFunctionmarshalJSON
(v any)
adk/agentic/retry_max_output_tokens/tools.go:145
↓ 1 callersFunctionmessageAssistantText
(msg *schema.Message)
quickstart/chatwitheino/msgops/extract.go:261
↓ 1 callersFunctionmockCalculatePrice
(ctx context.Context, validation *validationResult)
adk/common/tool/graphtool/examples/3_workflow_order/main.go:111
↓ 1 callersFunctionmockKnowledgeBaseSearch
(ctx context.Context, query string)
adk/common/tool/graphtool/examples/2_graph_research/main.go:49
↓ 1 callersFunctionmockLocalFileSearch
(ctx context.Context, query string)
adk/common/tool/graphtool/examples/2_graph_research/main.go:57
↓ 1 callersFunctionmockLookupCustomer
(ctx context.Context, validation *validationResult)
adk/common/tool/graphtool/examples/3_workflow_order/main.go:127
↓ 1 callersFunctionmockQualityCheck
(in string)
compose/graph/state/state_graph.go:145
↓ 1 callersFunctionmockReview
(in string)
compose/graph/state/state_graph.go:141
↓ 1 callersFunctionmockTranslate
(in string)
compose/graph/state/state_graph.go:137
↓ 1 callersFunctionmockValidateOrder
(ctx context.Context, input *OrderInput)
adk/common/tool/graphtool/examples/3_workflow_order/main.go:80
↓ 1 callersFunctionmockWebSearch
(ctx context.Context, query string)
adk/common/tool/graphtool/examples/2_graph_research/main.go:41
↓ 1 callersFunctionneedsCompletedStatus
(blockType schema.ContentBlockType)
quickstart/chatwitheino/msgops/normalize.go:108
↓ 1 callersFunctionnewARKAgenticModel
(ctx context.Context)
adk/agentic/research_assistant/model.go:51
↓ 1 callersFunctionnewAgent
(ctx context.Context)
adk/intro/agent_with_summarization/agent.go:90
↓ 1 callersFunctionnewAgenticModel
(ctx context.Context)
adk/agentic/research_assistant/model.go:38
↓ 1 callersFunctionnewAgenticModel
(ctx context.Context, provider string)
adk/agentic/retry_max_output_tokens/main.go:120
↓ 1 callersFunctionnewAgenticModel
(ctx context.Context)
quickstart/chatwitheino/chatmodel/model.go:78
↓ 1 callersFunctionnewAgenticModelCallback
()
flow/agent/react/agentic/callback.go:35
↓ 1 callersFunctionnewAnswerWithJournalSpecialist
(ctx context.Context, baseURL, model string)
flow/agent/multiagent/host/journal/answer_with_journal_specialist.go:55
↓ 1 callersFunctionnewAskForClarificationTool
()
adk/multiagent/integration-project-manager/agents/researcher.go:94
↓ 1 callersFunctionnewBrowserTool
(ctx context.Context)
flow/agent/manus/manus.go:430
↓ 1 callersFunctionnewChatModel
(ctx context.Context, baseURL, apiKey, modelName string)
components/retriever/multiquery/main.go:120
↓ 1 callersFunctionnewChatModel
(ctx context.Context)
compose/graph/react_with_interrupt/main.go:120
↓ 1 callersFunctionnewChatModel
(ctx context.Context)
quickstart/chatwitheino/chatmodel/model.go:57
↓ 1 callersFunctionnewChatModel
(ctx context.Context)
quickstart/eino_assistant/eino/einoagent/model.go:27
↓ 1 callersFunctionnewChatTemplate
(_ context.Context)
compose/graph/react_with_interrupt/main.go:113
↓ 1 callersFunctionnewChatTemplate
newChatTemplate component initialization function of node 'ChatTemplate' in graph 'EinoAgent'
quickstart/eino_assistant/eino/einoagent/prompt.go:65
← previousnext →501–600 of 1,121, ranked by callers