Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudwego/eino-examples
/ functions
Functions
1,121 in github.com/cloudwego/eino-examples
⨍
Functions
1,121
◇
Types & classes
448
↓ 347 callers
Method
Printf
(string, ...any)
components/model/httptransport/curlrt.go:64
↓ 96 callers
Method
Close
()
components/model/httptransport/curlrt.go:286
↓ 62 callers
Method
String
()
adk/common/tool/follow_up_tool.go:36
↓ 58 callers
Function
Errorf
(format string, args ...interface{})
internal/logs/logger.go:40
↓ 48 callers
Method
Error
()
quickstart/chatwitheino/scripts/sync_eino_ext_skills.go:198
↓ 44 callers
Function
Infof
(format string, args ...interface{})
internal/logs/logger.go:33
↓ 38 callers
Method
Invoke
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 callers
Function
NewChatModel
()
adk/common/model/chat_model.go:35
↓ 37 callers
Method
Compile
(ctx context.Context, opts ...compose.GraphCompileOption)
compose/batch/batch/types.go:54
↓ 34 callers
Method
Parse
(ctx context.Context, reader io.Reader, opts ...parser.Option)
components/document/parser/customparser/custom_parser.go:65
↓ 34 callers
Method
Query
(ctx context.Context, sessionID, text string, limit int)
flow/agent/react/memory_example/memory/store.go:32
↓ 32 callers
Function
Event
(event *adk.AgentEvent)
adk/common/prints/util.go:31
↓ 22 callers
Method
Add
(task *Task)
quickstart/eino_assistant/pkg/tool/task/storage.go:91
↓ 22 callers
Method
Append
Append adds a message to memory and persists it to disk.
quickstart/chatwitheino/mem/store.go:82
↓ 21 callers
Method
GetOrCreate
GetOrCreate returns the session for id, creating it if it does not exist.
quickstart/chatwitheino/mem/store.go:157
↓ 20 callers
Method
Run
(ctx context.Context, input *adk.TypedAgentInput[*schema.Message], _ ...adk.AgentRunOption)
quickstart/chatwitheino/server/server_test.go:47
↓ 20 callers
Function
SafeInferTool
(toolName, toolDesc string, i utils.InvokeFunc[T, D])
flow/agent/multiagent/plan_execute/tools/tools.go:126
↓ 17 callers
Function
consistentHashing
consistentHashing implements consistent hashing using Go standard library hash/fnv
adk/multiagent/plan-execute-replan/tools/travel_tools.go:318
↓ 16 callers
Method
nodeID
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 callers
Method
Wait
()
adk/multiagent/integration-excel-agent/utils/utils.go:67
↓ 14 callers
Method
Write
(ctx context.Context, sessionID string, msgs []*schema.Message)
flow/agent/react/memory_example/memory/store.go:30
↓ 13 callers
Method
Error
()
adk/multiagent/deep/utils/utils.go:37
↓ 13 callers
Method
GetMessages
GetMessages returns a snapshot of all messages.
quickstart/chatwitheino/mem/store.go:105
↓ 13 callers
Function
KindFromEnv
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 callers
Method
Name
(context.Context)
quickstart/chatwitheino/server/server_test.go:45
↓ 13 callers
Function
consistentHashing
(s string, min, max int)
adk/human-in-the-loop/6_plan-execute-replan/tools.go:269
↓ 12 callers
Function
NewInMemoryStore
()
adk/common/store/store.go:25
↓ 12 callers
Method
ReadFile
(ctx context.Context, path string)
adk/multiagent/deep/operator.go:34
↓ 12 callers
Method
Stream
Stream calls the agent and returns a stream response.
flow/agent/react/agentic/react.go:276
↓ 12 callers
Method
WriteFile
(ctx context.Context, path, content string)
adk/multiagent/deep/operator.go:42
↓ 12 callers
Function
sysMsg
(color, msg string)
adk/cancel/graceful-exit/main.go:118
↓ 11 callers
Function
NewWrapTool
(t tool.InvokableTool, preprocess []ToolRequestPreprocess, postprocess []ToolResponsePostprocess)
adk/multiagent/integration-excel-agent/tools/wrap.go:37
↓ 10 callers
Method
Error
()
adk/multiagent/integration-excel-agent/utils/utils.go:37
↓ 10 callers
Method
Name
(ctx context.Context)
adk/multiagent/integration-excel-agent/agents/wrap_plan.go:44
↓ 10 callers
Function
NormalizeMessagesForModelInput
NormalizeMessagesForModelInput prepares stored messages before passing them back to Runner/ChatModel. Today this matches NormalizeForSession; keeping
quickstart/chatwitheino/msgops/normalize.go:52
↓ 10 callers
Method
getTurnState
(sessionID string)
quickstart/chatwitheino/server/server.go:156
↓ 9 callers
Function
AppendCozeLoopCallbackIfConfigured
(_ context.Context)
adk/common/trace/coze_loop.go:36
↓ 9 callers
Function
DefaultSessionDir
DefaultSessionDir returns the default session directory for the current kind.
quickstart/chatwitheino/msgops/kind.go:61
↓ 9 callers
Method
Title
Title derives a display title from the first user message.
quickstart/chatwitheino/mem/store.go:115
↓ 8 callers
Function
Fatalf
(format string, args ...interface{})
internal/logs/logger.go:52
↓ 8 callers
Function
IsNil
IsNil reports whether a generic message value is nil.
quickstart/chatwitheino/msgops/variant.go:31
↓ 8 callers
Function
NewBatchNode
NewBatchNode creates a new batch processing node. Example: batchNode := batch.NewBatchNode(&batch.NodeConfig[Request, Response]{ Name:
compose/batch/batch/node.go:51
↓ 8 callers
Method
String
()
adk/multiagent/deep/generic/full_plan.go:53
↓ 8 callers
Function
formatRunPath
(runPath []adk.RunStep)
adk/intro/http-sse-service/main.go:84
↓ 8 callers
Function
loadTasks
()
quickstart/eino_assistant/cmd/einoagent/task/web/script.js:109
↓ 8 callers
Method
newLoop
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 callers
Function
newTestServer
--------------------------------------------------------------------------- helper: setup test server + HTTP client ----------------------------------
quickstart/chatwitheino/server/server_test.go:111
↓ 8 callers
Function
sendSSEEvent
(s *sse.Stream, event SSEEvent)
adk/intro/http-sse-service/main.go:297
↓ 7 callers
Function
ApplyMessageModelRetry
ApplyMessageModelRetry enables model-call retries for transient rate-limit errors.
quickstart/chatwitheino/helpers/retry.go:32
↓ 7 callers
Function
NewWrapTool
(t tool.InvokableTool, preprocess []ToolRequestPreprocess, postprocess []ToolResponsePostprocess)
adk/multiagent/deep/tools/wrap.go:37
↓ 7 callers
Function
SingleChunkReader
SingleChunkReader returns a StreamReader that emits one string then EOF.
quickstart/chatwitheino/helpers/middleware.go:79
↓ 7 callers
Method
String
()
adk/multiagent/integration-excel-agent/generic/full_plan.go:53
↓ 7 callers
Function
ToolResults
ToolResults extracts function tool results from a message or streaming chunk.
quickstart/chatwitheino/msgops/extract.go:162
↓ 7 callers
Function
emit
(w io.Writer, msg Message)
quickstart/chatwitheino/a2ui/streamer.go:462
↓ 7 callers
Function
emitToolChip
emitToolChip emits a compact single-line chip for tool calls or tool results.
quickstart/chatwitheino/a2ui/streamer.go:377
↓ 7 callers
Function
printHeader
(content, color string)
flow/agent/react/agentic/callback.go:159
↓ 7 callers
Function
sanitizeLogValue
sanitizeLogValue removes line breaks and carriage returns to prevent log forging
components/model/httptransport/curlrt.go:57
↓ 7 callers
Function
sysMsgf
(color, format string, args ...any)
adk/cancel/graceful-exit/main.go:122
↓ 6 callers
Function
NewChatModel
(ctx context.Context, opts ...CreateChatModelOption)
adk/multiagent/integration-excel-agent/utils/model.go:31
↓ 6 callers
Function
NewMermaidGenerator
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 callers
Method
Spin
Spin starts the HTTP server (blocking).
quickstart/chatwitheino/server/server.go:182
↓ 6 callers
Function
createSampleDocuments
createSampleDocuments generates test documents with rotating priorities
compose/batch/main.go:135
↓ 6 callers
Function
simpleReplyAgent
simpleReplyAgent returns a mock that emits a single text message and exits.
quickstart/chatwitheino/server/server_test.go:54
↓ 5 callers
Method
Get
(ctx context.Context, checkPointID string)
quickstart/chatwitheino/server/server.go:103
↓ 5 callers
Function
GetDefaultMemory
()
quickstart/eino_assistant/pkg/mem/simple.go:31
↓ 5 callers
Function
GetPromptTemplate
GetPromptTemplate 加载并返回一个提示模板
flow/agent/deer-go/biz/infra/template.go:28
↓ 5 callers
Function
GetSessionValue
(ctx context.Context, key string)
adk/multiagent/integration-excel-agent/utils/utils.go:96
↓ 5 callers
Method
OnError
(ctx context.Context, info *callbacks.RunInfo, err error)
flow/agent/react/react.go:218
↓ 5 callers
Method
OnStart
(ctx context.Context, info *callbacks.RunInfo, input callbacks.CallbackInput)
flow/agent/react/react.go:204
↓ 5 callers
Method
Run
(ctx context.Context, input *adk.AgentInput, options ...adk.AgentRunOption)
adk/intro/custom/myagent.go:37
↓ 5 callers
Method
Set
(ctx context.Context, checkPointID string, checkPoint []byte)
quickstart/chatwitheino/server/server.go:112
↓ 5 callers
Method
SetPendingInterruptID
SetPendingInterruptID saves the interrupt ID so the approve endpoint can resume it.
quickstart/chatwitheino/mem/store.go:54
↓ 5 callers
Function
Text
Text returns the user-facing text found in a message.
quickstart/chatwitheino/msgops/extract.go:27
↓ 5 callers
Function
ToolCalls
ToolCalls extracts function tool calls from a message or streaming chunk.
quickstart/chatwitheino/msgops/extract.go:115
↓ 5 callers
Function
WithMaxTokens
(maxTokens int)
adk/multiagent/integration-excel-agent/utils/model.go:100
↓ 5 callers
Function
WithTemperature
(temp float32)
adk/multiagent/integration-excel-agent/utils/model.go:106
↓ 5 callers
Method
WithTools
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 callers
Function
WithTopP
(topP float32)
adk/multiagent/integration-excel-agent/utils/model.go:112
↓ 5 callers
Function
consistentHashing
(s string, min, max int)
adk/human-in-the-loop/8_supervisor-plan-execute/tools.go:253
↓ 5 callers
Function
createSession
createSession creates a session via the Store directly.
quickstart/chatwitheino/server/server_test.go:133
↓ 5 callers
Function
createSimpleReviewWorkflow
createSimpleReviewWorkflow creates a basic document review workflow that simulates automated review with random scoring
compose/batch/main.go:150
↓ 5 callers
Function
newRateLimitedModel
()
adk/human-in-the-loop/8_supervisor-plan-execute/agent.go:73
↓ 5 callers
Function
truncate
(s string, n int)
flow/agent/react/memory_example/main.go:188
↓ 4 callers
Method
Append
(msg *schema.Message)
quickstart/eino_assistant/pkg/mem/simple.go:145
↓ 4 callers
Function
FormatCommandOutput
(output *commandline.CommandOutput)
adk/multiagent/deep/utils/utils.go:119
↓ 4 callers
Function
FormatCommandOutput
(output *commandline.CommandOutput)
adk/multiagent/integration-excel-agent/utils/utils.go:119
↓ 4 callers
Function
FormatInput
(input []adk.Message)
adk/multiagent/integration-excel-agent/utils/utils.go:55
↓ 4 callers
Method
Generate
Generate generates a response from the agent.
flow/agent/react/agentic/react.go:271
↓ 4 callers
Function
GetCurrentTime
()
adk/multiagent/integration-excel-agent/utils/utils.go:75
↓ 4 callers
Function
GetDishTool
()
flow/agent/react/tools/tools.go:33
↓ 4 callers
Function
GetRestaurantTool
()
flow/agent/react/tools/tools.go:27
↓ 4 callers
Method
Invoke
(ctx context.Context, req *TaskRequest)
quickstart/eino_assistant/pkg/tool/task/task.go:126
↓ 4 callers
Function
NewInvokableGraphTool
(compilable Compilable[I, O], name, desc string, opts ...compose.GraphCompileOption, )
adk/common/tool/graphtool/graph_tool.go:42
↓ 4 callers
Function
NormalizeForSession
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 callers
Function
Of
(v T)
internal/gptr/ptr.go:19
↓ 4 callers
Method
Run
(ctx context.Context, input *adk.AgentInput, options ...adk.AgentRunOption)
adk/multiagent/integration-excel-agent/agents/wrap_plan.go:52
↓ 4 callers
Method
Run
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 callers
Method
RunCommand
(ctx context.Context, command []string)
adk/multiagent/deep/operator.go:54
↓ 4 callers
Method
RunCommand
(ctx context.Context, command []string)
adk/multiagent/integration-excel-agent/operator.go:54
↓ 4 callers
Function
StreamToWriter
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