MCPcopy Create free account

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

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

↓ 347 callersMethodPrintf
(string, ...any)
components/model/httptransport/curlrt.go:64
↓ 96 callersMethodClose
()
components/model/httptransport/curlrt.go:286
↓ 62 callersMethodString
()
adk/common/tool/follow_up_tool.go:36
↓ 58 callersFunctionErrorf
(format string, args ...interface{})
internal/logs/logger.go:40
↓ 48 callersMethodError
()
quickstart/chatwitheino/scripts/sync_eino_ext_skills.go:198
↓ 44 callersFunctionInfof
(format string, args ...interface{})
internal/logs/logger.go:33
↓ 38 callersMethodInvoke
Invoke processes all inputs through the inner task and returns results. It handles concurrency, errors, and interrupts according to configuration. Pa
compose/batch/batch/node.go:87
↓ 38 callersFunctionNewChatModel
()
adk/common/model/chat_model.go:35
↓ 37 callersMethodCompile
(ctx context.Context, opts ...compose.GraphCompileOption)
compose/batch/batch/types.go:54
↓ 34 callersMethodParse
(ctx context.Context, reader io.Reader, opts ...parser.Option)
components/document/parser/customparser/custom_parser.go:65
↓ 34 callersMethodQuery
(ctx context.Context, sessionID, text string, limit int)
flow/agent/react/memory_example/memory/store.go:32
↓ 32 callersFunctionEvent
(event *adk.AgentEvent)
adk/common/prints/util.go:31
↓ 22 callersMethodAdd
(task *Task)
quickstart/eino_assistant/pkg/tool/task/storage.go:91
↓ 22 callersMethodAppend
Append adds a message to memory and persists it to disk.
quickstart/chatwitheino/mem/store.go:82
↓ 21 callersMethodGetOrCreate
GetOrCreate returns the session for id, creating it if it does not exist.
quickstart/chatwitheino/mem/store.go:157
↓ 20 callersMethodRun
(ctx context.Context, input *adk.TypedAgentInput[*schema.Message], _ ...adk.AgentRunOption)
quickstart/chatwitheino/server/server_test.go:47
↓ 20 callersFunctionSafeInferTool
(toolName, toolDesc string, i utils.InvokeFunc[T, D])
flow/agent/multiagent/plan_execute/tools/tools.go:126
↓ 17 callersFunctionconsistentHashing
consistentHashing implements consistent hashing using Go standard library hash/fnv
adk/multiagent/plan-execute-replan/tools/travel_tools.go:318
↓ 16 callersMethodnodeID
nodeID sanitizes a node key to be a valid Mermaid identifier, and adds a caller-provided prefix to ensure uniqueness when rendering nested graphs.
devops/visualize/mermaid.go:378
↓ 14 callersMethodWait
()
adk/multiagent/integration-excel-agent/utils/utils.go:67
↓ 14 callersMethodWrite
(ctx context.Context, sessionID string, msgs []*schema.Message)
flow/agent/react/memory_example/memory/store.go:30
↓ 13 callersMethodError
()
adk/multiagent/deep/utils/utils.go:37
↓ 13 callersMethodGetMessages
GetMessages returns a snapshot of all messages.
quickstart/chatwitheino/mem/store.go:105
↓ 13 callersFunctionKindFromEnv
KindFromEnv reads MESSAGE_KIND. AgenticMessage is the default representation; set MESSAGE_KIND=message only when explicitly exercising the legacy path
quickstart/chatwitheino/msgops/kind.go:38
↓ 13 callersMethodName
(context.Context)
quickstart/chatwitheino/server/server_test.go:45
↓ 13 callersFunctionconsistentHashing
(s string, min, max int)
adk/human-in-the-loop/6_plan-execute-replan/tools.go:269
↓ 12 callersFunctionNewInMemoryStore
()
adk/common/store/store.go:25
↓ 12 callersMethodReadFile
(ctx context.Context, path string)
adk/multiagent/deep/operator.go:34
↓ 12 callersMethodStream
Stream calls the agent and returns a stream response.
flow/agent/react/agentic/react.go:276
↓ 12 callersMethodWriteFile
(ctx context.Context, path, content string)
adk/multiagent/deep/operator.go:42
↓ 12 callersFunctionsysMsg
(color, msg string)
adk/cancel/graceful-exit/main.go:118
↓ 11 callersFunctionNewWrapTool
(t tool.InvokableTool, preprocess []ToolRequestPreprocess, postprocess []ToolResponsePostprocess)
adk/multiagent/integration-excel-agent/tools/wrap.go:37
↓ 10 callersMethodError
()
adk/multiagent/integration-excel-agent/utils/utils.go:37
↓ 10 callersMethodName
(ctx context.Context)
adk/multiagent/integration-excel-agent/agents/wrap_plan.go:44
↓ 10 callersFunctionNormalizeMessagesForModelInput
NormalizeMessagesForModelInput prepares stored messages before passing them back to Runner/ChatModel. Today this matches NormalizeForSession; keeping
quickstart/chatwitheino/msgops/normalize.go:52
↓ 10 callersMethodgetTurnState
(sessionID string)
quickstart/chatwitheino/server/server.go:156
↓ 9 callersFunctionAppendCozeLoopCallbackIfConfigured
(_ context.Context)
adk/common/trace/coze_loop.go:36
↓ 9 callersFunctionDefaultSessionDir
DefaultSessionDir returns the default session directory for the current kind.
quickstart/chatwitheino/msgops/kind.go:61
↓ 9 callersMethodTitle
Title derives a display title from the first user message.
quickstart/chatwitheino/mem/store.go:115
↓ 8 callersFunctionFatalf
(format string, args ...interface{})
internal/logs/logger.go:52
↓ 8 callersFunctionIsNil
IsNil reports whether a generic message value is nil.
quickstart/chatwitheino/msgops/variant.go:31
↓ 8 callersFunctionNewBatchNode
NewBatchNode creates a new batch processing node. Example: batchNode := batch.NewBatchNode(&batch.NodeConfig[Request, Response]{ Name:
compose/batch/batch/node.go:51
↓ 8 callersMethodString
()
adk/multiagent/deep/generic/full_plan.go:53
↓ 8 callersFunctionformatRunPath
(runPath []adk.RunStep)
adk/intro/http-sse-service/main.go:84
↓ 8 callersFunctionloadTasks
()
quickstart/eino_assistant/cmd/einoagent/task/web/script.js:109
↓ 8 callersMethodnewLoop
newLoop creates a new TurnLoop for the session. Every loop uses the checkpoint store when one is configured so the first /chat interrupt can be persis
quickstart/chatwitheino/server/server.go:570
↓ 8 callersFunctionnewTestServer
--------------------------------------------------------------------------- helper: setup test server + HTTP client ----------------------------------
quickstart/chatwitheino/server/server_test.go:111
↓ 8 callersFunctionsendSSEEvent
(s *sse.Stream, event SSEEvent)
adk/intro/http-sse-service/main.go:297
↓ 7 callersFunctionApplyMessageModelRetry
ApplyMessageModelRetry enables model-call retries for transient rate-limit errors.
quickstart/chatwitheino/helpers/retry.go:32
↓ 7 callersFunctionNewWrapTool
(t tool.InvokableTool, preprocess []ToolRequestPreprocess, postprocess []ToolResponsePostprocess)
adk/multiagent/deep/tools/wrap.go:37
↓ 7 callersFunctionSingleChunkReader
SingleChunkReader returns a StreamReader that emits one string then EOF.
quickstart/chatwitheino/helpers/middleware.go:79
↓ 7 callersMethodString
()
adk/multiagent/integration-excel-agent/generic/full_plan.go:53
↓ 7 callersFunctionToolResults
ToolResults extracts function tool results from a message or streaming chunk.
quickstart/chatwitheino/msgops/extract.go:162
↓ 7 callersFunctionemit
(w io.Writer, msg Message)
quickstart/chatwitheino/a2ui/streamer.go:462
↓ 7 callersFunctionemitToolChip
emitToolChip emits a compact single-line chip for tool calls or tool results.
quickstart/chatwitheino/a2ui/streamer.go:377
↓ 7 callersFunctionprintHeader
(content, color string)
flow/agent/react/agentic/callback.go:159
↓ 7 callersFunctionsanitizeLogValue
sanitizeLogValue removes line breaks and carriage returns to prevent log forging
components/model/httptransport/curlrt.go:57
↓ 7 callersFunctionsysMsgf
(color, format string, args ...any)
adk/cancel/graceful-exit/main.go:122
↓ 6 callersFunctionNewChatModel
(ctx context.Context, opts ...CreateChatModelOption)
adk/multiagent/integration-excel-agent/utils/model.go:31
↓ 6 callersFunctionNewMermaidGenerator
NewMermaidGenerator creates a generator that auto-writes Markdown and attempts PNG/SVG generation. If dir is empty, current working directory is used.
devops/visualize/mermaid.go:68
↓ 6 callersMethodSpin
Spin starts the HTTP server (blocking).
quickstart/chatwitheino/server/server.go:182
↓ 6 callersFunctioncreateSampleDocuments
createSampleDocuments generates test documents with rotating priorities
compose/batch/main.go:135
↓ 6 callersFunctionsimpleReplyAgent
simpleReplyAgent returns a mock that emits a single text message and exits.
quickstart/chatwitheino/server/server_test.go:54
↓ 5 callersMethodGet
(ctx context.Context, checkPointID string)
quickstart/chatwitheino/server/server.go:103
↓ 5 callersFunctionGetDefaultMemory
()
quickstart/eino_assistant/pkg/mem/simple.go:31
↓ 5 callersFunctionGetPromptTemplate
GetPromptTemplate 加载并返回一个提示模板
flow/agent/deer-go/biz/infra/template.go:28
↓ 5 callersFunctionGetSessionValue
(ctx context.Context, key string)
adk/multiagent/integration-excel-agent/utils/utils.go:96
↓ 5 callersMethodOnError
(ctx context.Context, info *callbacks.RunInfo, err error)
flow/agent/react/react.go:218
↓ 5 callersMethodOnStart
(ctx context.Context, info *callbacks.RunInfo, input callbacks.CallbackInput)
flow/agent/react/react.go:204
↓ 5 callersMethodRun
(ctx context.Context, input *adk.AgentInput, options ...adk.AgentRunOption)
adk/intro/custom/myagent.go:37
↓ 5 callersMethodSet
(ctx context.Context, checkPointID string, checkPoint []byte)
quickstart/chatwitheino/server/server.go:112
↓ 5 callersMethodSetPendingInterruptID
SetPendingInterruptID saves the interrupt ID so the approve endpoint can resume it.
quickstart/chatwitheino/mem/store.go:54
↓ 5 callersFunctionText
Text returns the user-facing text found in a message.
quickstart/chatwitheino/msgops/extract.go:27
↓ 5 callersFunctionToolCalls
ToolCalls extracts function tool calls from a message or streaming chunk.
quickstart/chatwitheino/msgops/extract.go:115
↓ 5 callersFunctionWithMaxTokens
(maxTokens int)
adk/multiagent/integration-excel-agent/utils/model.go:100
↓ 5 callersFunctionWithTemperature
(temp float32)
adk/multiagent/integration-excel-agent/utils/model.go:106
↓ 5 callersMethodWithTools
WithTools implements model.ToolCallingChatModel. It creates a new ChatModel wrapping the result of the inner model's WithTools.
flow/agent/react/dynamic_option_example/dynamic/model.go:111
↓ 5 callersFunctionWithTopP
(topP float32)
adk/multiagent/integration-excel-agent/utils/model.go:112
↓ 5 callersFunctionconsistentHashing
(s string, min, max int)
adk/human-in-the-loop/8_supervisor-plan-execute/tools.go:253
↓ 5 callersFunctioncreateSession
createSession creates a session via the Store directly.
quickstart/chatwitheino/server/server_test.go:133
↓ 5 callersFunctioncreateSimpleReviewWorkflow
createSimpleReviewWorkflow creates a basic document review workflow that simulates automated review with random scoring
compose/batch/main.go:150
↓ 5 callersFunctionnewRateLimitedModel
()
adk/human-in-the-loop/8_supervisor-plan-execute/agent.go:73
↓ 5 callersFunctiontruncate
(s string, n int)
flow/agent/react/memory_example/main.go:188
↓ 4 callersMethodAppend
(msg *schema.Message)
quickstart/eino_assistant/pkg/mem/simple.go:145
↓ 4 callersFunctionFormatCommandOutput
(output *commandline.CommandOutput)
adk/multiagent/deep/utils/utils.go:119
↓ 4 callersFunctionFormatCommandOutput
(output *commandline.CommandOutput)
adk/multiagent/integration-excel-agent/utils/utils.go:119
↓ 4 callersFunctionFormatInput
(input []adk.Message)
adk/multiagent/integration-excel-agent/utils/utils.go:55
↓ 4 callersMethodGenerate
Generate generates a response from the agent.
flow/agent/react/agentic/react.go:271
↓ 4 callersFunctionGetCurrentTime
()
adk/multiagent/integration-excel-agent/utils/utils.go:75
↓ 4 callersFunctionGetDishTool
()
flow/agent/react/tools/tools.go:33
↓ 4 callersFunctionGetRestaurantTool
()
flow/agent/react/tools/tools.go:27
↓ 4 callersMethodInvoke
(ctx context.Context, req *TaskRequest)
quickstart/eino_assistant/pkg/tool/task/task.go:126
↓ 4 callersFunctionNewInvokableGraphTool
(compilable Compilable[I, O], name, desc string, opts ...compose.GraphCompileOption, )
adk/common/tool/graphtool/graph_tool.go:42
↓ 4 callersFunctionNormalizeForSession
NormalizeForSession returns a provider-safe message for chatwitheino's JSONL session store. Agentic model implementations attach Responses API item ID
quickstart/chatwitheino/msgops/normalize.go:37
↓ 4 callersFunctionOf
(v T)
internal/gptr/ptr.go:19
↓ 4 callersMethodRun
(ctx context.Context, input *adk.AgentInput, options ...adk.AgentRunOption)
adk/multiagent/integration-excel-agent/agents/wrap_plan.go:52
↓ 4 callersMethodRun
Run executes the Ralph Loop synchronously, returning when the loop completes. The outer loop drives turn iteration and validates completion externally
adk/agent/ralph-loop/ralph_loop.go:132
↓ 4 callersMethodRunCommand
(ctx context.Context, command []string)
adk/multiagent/deep/operator.go:54
↓ 4 callersMethodRunCommand
(ctx context.Context, command []string)
adk/multiagent/integration-excel-agent/operator.go:54
↓ 4 callersFunctionStreamToWriter
StreamToWriter converts an agent event stream into A2UI JSONL messages written to w. It returns the content of the last assistant text response, all i
quickstart/chatwitheino/a2ui/streamer.go:53
next →1–100 of 1,121, ranked by callers