Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cloudwego/eino
/ functions
Functions
3,994 in github.com/cloudwego/eino
⨍
Functions
3,994
◇
Types & classes
1,204
↓ 33 callers
Function
initRunCtx
(ctx context.Context, agentName string, input *AgentInput)
adk/runctx.go:386
↓ 33 callers
Method
load
(channel)
compose/graph_manager.go:35
↓ 32 callers
Method
EqualsWithoutID
(other *InterruptCtx)
internal/core/interrupt.go:140
↓ 32 callers
Function
newLoaderConfig
(backend Backend, files []string, maxBytes int, onWarning func(filePath string, err error))
adk/middlewares/agentsmd/loader.go:80
↓ 31 callers
Method
AddGraphNode
AddGraphNode adds a nested graph node to the workflow and returns it.
compose/workflow.go:153
↓ 31 callers
Method
Description
(ctx context.Context)
adk/interface.go:455
↓ 31 callers
Method
Get
(ctx context.Context, name string)
adk/middlewares/skill/skill.go:68
↓ 31 callers
Method
send
(chunk T, err error)
schema/stream.go:410
↓ 30 callers
Function
WithStatePreHandler
WithStatePreHandler modify node's input of I according to state S and input or store input information into state, and it's thread-safe. notice: this
compose/graph_add_node_options.go:96
↓ 30 callers
Function
concatStreamReader
(sr *schema.StreamReader[T])
compose/stream_concat.go:50
↓ 30 callers
Method
markDone
markDone marks the execution as finished through any non-cancel path (normal completion, business interrupt, or error). This is safe to call even if a
adk/cancel.go:555
↓ 30 callers
Function
prepareAgent
(a Agent)
adk/turn_loop_test.go:192
↓ 29 callers
Function
NewSequentialAgent
NewSequentialAgent creates an agent that runs sub-agents sequentially. NOT RECOMMENDED: Workflow agents are built on agent transfer with full context
adk/workflow.go:686
↓ 29 callers
Function
withCancelContext
withCancelContext stores a cancelContext in the Go context.
adk/cancel.go:286
↓ 28 callers
Method
Build
Build constructs the final TypedFinalizeFunc by chaining all registered handlers and post-processing the summary message as DefaultFinalize does. For
adk/middlewares/summarization/finalizer_builder.go:99
↓ 28 callers
Function
GetMessageID
GetMessageID returns the eino-internal message ID from the given message, or "".
adk/wrappers.go:496
↓ 28 callers
Method
beginActiveTurn
()
adk/turn_loop.go:510
↓ 27 callers
Function
EventFromMessage
EventFromMessage creates an AgentEvent containing the given message and optional stream. role identifies the origin of this event: - schema.Assistant
adk/interface.go:286
↓ 27 callers
Method
OnStart
(ctx context.Context, info *RunInfo, input CallbackInput)
internal/callbacks/interface.go:39
↓ 27 callers
Function
ResumeWithData
ResumeWithData prepares a context to resume a single, specific component with data. It is the primary function for the "Explicit Targeted Resume" stra
compose/resume.go:106
↓ 27 callers
Function
WithGraphName
WithGraphName sets a name for the graph. The name is used for debugging and logging purposes. If not set, a default name will be used.
compose/graph_compile_options.go:65
↓ 27 callers
Function
packStreamReader
(sr *schema.StreamReader[T])
compose/stream_reader.go:111
↓ 27 callers
Function
withTypedChatModelAgentExecCtx
(ctx context.Context, execCtx *typedChatModelAgentExecCtx[M])
adk/chatmodel.go:75
↓ 26 callers
Function
NewAgent
NewAgent creates a ReAct agent that feeds tool response into next round of Chat Model generation. IMPORTANT!! For models that don't output tool calls
flow/agent/react/react.go:284
↓ 26 callers
Method
shouldCancel
shouldCancel returns true if a cancel has been requested (cancelChan is closed).
adk/cancel.go:466
↓ 25 callers
Function
FromMessages
FromMessages creates a new DefaultChatTemplate from the given templates and format type. eg. template := prompt.FromMessages(schema.FString, &schema
components/prompt/chat_template.go:42
↓ 25 callers
Function
WithLambdaOption
WithLambdaOption is a functional option type for lambda component.
compose/graph_call_options.go:213
↓ 25 callers
Function
formatContent
(content string, vs map[string]any, formatType FormatType)
schema/message.go:630
↓ 25 callers
Method
getMode
()
adk/cancel.go:439
↓ 25 callers
Function
newTestStore
()
adk/turn_loop_test.go:207
↓ 25 callers
Function
newTool
(info *schema.ToolInfo, f func(ctx context.Context, in I) (O, error))
compose/tool_node_test.go:965
↓ 24 callers
Method
String
String returns the string representation of the message. e.g. msg := schema.UserMessage("hello world") fmt.Println(msg.String()) // Output will be:
schema/message.go:856
↓ 24 callers
Function
getMsgContent
(msg M)
adk/middlewares/agentsmd/agentsmd_generic_test.go:80
↓ 23 callers
Function
GetSessionValues
GetSessionValues returns all session key-value pairs for the current run.
adk/runctx.go:204
↓ 23 callers
Function
NewGraphBranch
NewGraphBranch creates a new graph branch. It is used to determine the next node based on the condition. e.g. condition := func(ctx context.Context,
compose/branch.go:145
↓ 23 callers
Function
NewParallel
NewParallel creates a new parallel type. it is useful when you want to run multiple nodes in parallel in a chain.
compose/chain_parallel.go:32
↓ 23 callers
Method
OnEnd
(ctx context.Context, info *RunInfo, output CallbackOutput)
internal/callbacks/interface.go:40
↓ 23 callers
Method
Parse
(ctx context.Context, m *Message)
schema/message_parser.go:29
↓ 23 callers
Function
WithCallbacks
WithCallbacks adds callback handlers to receive agent lifecycle events. Handlers receive OnStart with AgentCallbackInput and OnEnd with AgentCallbackO
adk/call_option.go:78
↓ 23 callers
Function
WithRecursive
WithRecursive opts into recursive cancel propagation. By default, cancel modes only affect the root agent; descendant agents inside AgentTools are not
adk/cancel.go:136
↓ 23 callers
Method
beginPlanningTurn
()
adk/turn_loop.go:218
↓ 23 callers
Method
getEvents
()
adk/runctx.go:258
↓ 23 callers
Function
newInMemoryBackend
()
adk/middlewares/plantask/backend_test.go:34
↓ 23 callers
Method
requestStop
(cfg *stopConfig)
adk/turn_loop.go:432
↓ 22 callers
Function
New
New creates an agentsmd middleware that injects Agents.md content into every model call. The content is loaded from the configured file paths via Back
adk/middlewares/agentsmd/agentsmd.go:82
↓ 22 callers
Function
WithNodeTriggerMode
WithNodeTriggerMode sets the trigger mode for nodes in the graph. The trigger mode determines when a node is triggered during graph execution, ref: ht
compose/graph_compile_options.go:97
↓ 22 callers
Method
endPush
()
adk/turn_loop.go:296
↓ 22 callers
Function
newPreemptController
()
adk/turn_loop.go:212
↓ 22 callers
Function
ptr
Ptr returns a pointer to the given value.
internal/gmap/gmap_test.go:87
↓ 21 callers
Method
AppendParallel
AppendParallel add a Parallel structure (multiple concurrent nodes) to the chain. e.g. parallel := compose.NewParallel() parallel.AddChatModel("ope
compose/chain.go:459
↓ 21 callers
Method
Build
Build returns a Handler with the functions set in the builder.
callbacks/handler_builder.go:161
↓ 21 callers
Function
MapFields
MapFields creates a FieldMapping that maps a single predecessor field to a single successor field. Field: either the field of a struct, or the key of
compose/field_mapping.go:85
↓ 21 callers
Method
OnEndFn
OnEndFn sets the handler for the end timing.
callbacks/handler_builder.go:122
↓ 21 callers
Function
OnStart
OnStart Fast inject callback input / output aspect for component developer e.g. func (t *testChatModel) Generate(ctx context.Context, input []*schem
callbacks/aspect_inject.go:74
↓ 21 callers
Method
String
()
adk/prebuilt/integration_test.go:44
↓ 21 callers
Function
agenticToolCallMsg
(toolName, callID, args string)
adk/agentic_react_test.go:39
↓ 21 callers
Method
beginPush
()
adk/turn_loop.go:283
↓ 21 callers
Function
invokeTool
invokeTool is a helper to invoke a tool with JSON input
adk/middlewares/filesystem/filesystem_test.go:67
↓ 21 callers
Function
newCancelTestStore
()
adk/cancel_test.go:127
↓ 21 callers
Method
requestPreempt
(target preemptTurnSnapshot, ack chan struct{}, opts ...AgentCancelOption)
adk/turn_loop.go:316
↓ 20 callers
Function
NewPanicErr
NewPanicErr creates a new panic error. panicErr is a wrapper of panic info and stack trace. it implements the error interface, can print error message
internal/safe/panic.go:35
↓ 20 callers
Function
ToFieldPath
ToFieldPath creates a FieldMapping that maps the entire predecessor output to a single successor field path. Example: // Maps the entire predecesso
compose/field_mapping.go:168
↓ 20 callers
Method
Transform
(ctx context.Context, input *schema.StreamReader[I], opts ...Option)
compose/runnable.go:36
↓ 20 callers
Function
concatContentBlockHelper
concatContentBlockHelper is a generic helper function that reduces code duplication for concatenating content blocks of a specific type.
schema/agentic_message.go:1252
↓ 20 callers
Function
newMyStore
()
adk/interrupt_test.go:1266
↓ 20 callers
Function
toolCall
(id, name, args string)
adk/cancel_edge_test.go:153
↓ 19 callers
Method
AddPassthroughNode
AddPassthroughNode adds a passthrough node to the workflow and returns it.
compose/workflow.go:173
↓ 19 callers
Method
AppendBranch
AppendBranch add a conditional branch to chain. Each branch within the ChainBranch can be an AnyGraph. All branches should either lead to END, or conv
compose/chain.go:342
↓ 19 callers
Method
Error
()
internal/safe/panic.go:28
↓ 19 callers
Method
Handler
Handler returns the callbacks.Handler created by HandlerHelper.
utils/callbacks/template.go:76
↓ 19 callers
Function
Interrupt
(ctx context.Context, info any, state any, subContexts []*InterruptSignal, opts ...InterruptOption)
internal/core/interrupt.go:84
↓ 19 callers
Method
StreamableRun
(ctx context.Context, argumentsInJSON string, opts ...Option)
components/tool/interface.go:56
↓ 19 callers
Function
WithNodeKey
WithNodeKey set the node key, which is used to identify the node in the chain. only for use in Chain/StateChain.
compose/graph_add_node_options.go:58
↓ 19 callers
Method
deriveAgentToolCancelContext
deriveAgentToolCancelContext creates the cancelContext used by an AgentTool's internal agent. It receives recursive cancel propagation from the parent
adk/cancel.go:364
↓ 19 callers
Function
newFakeChatModel
( gen func(context.Context, []*schema.Message, ...model.Option) (*schema.Message, error), stream func(contex
adk/wrappers_retry_failover_test.go:32
↓ 19 callers
Function
randStr
()
flow/agent/react/react_test.go:813
↓ 19 callers
Function
requireAckClosed
============================================================================= preemptController unit tests ===========================================
adk/turn_loop_test.go:2986
↓ 19 callers
Method
setRecursive
setRecursive(false) is a no-op; recursive is monotonically escalating: once set to true, it cannot be reverted.
adk/cancel.go:353
↓ 19 callers
Function
toolNames
(infos []*schema.ToolInfo)
adk/middlewares/dynamictool/toolsearch/toolsearch_test.go:54
↓ 18 callers
Function
ConcatMessageStream
ConcatMessageStream drains a stream of messages and returns a single concatenated message representing the merged content.
schema/message.go:1842
↓ 18 callers
Function
ConcatToolResults
ConcatToolResults merges multiple ToolResult chunks into a single ToolResult. It collects all ToolOutputParts from the input chunks and merges contigu
schema/message.go:1178
↓ 18 callers
Method
LsInfo
LsInfo lists file information under the given path.
adk/filesystem/backend_inmemory.go:51
↓ 18 callers
Function
buildModelWrappers
(m model.BaseModel[M], config *typedModelWrapperConfig[M])
adk/wrappers.go:52
↓ 18 callers
Method
closeSend
()
schema/stream.go:428
↓ 18 callers
Function
handlersToToolMiddlewares
(handlers []TypedChatModelAgentMiddleware[M])
adk/wrappers.go:114
↓ 18 callers
Function
newBlockingChatModel
(response *schema.Message)
adk/cancel_edge_test.go:46
↓ 18 callers
Function
newGraphRunError
(err error)
compose/error.go:54
↓ 18 callers
Method
receivePreempt
()
adk/turn_loop.go:338
↓ 18 callers
Function
toolCallMsg
(calls ...schema.ToolCall)
adk/cancel_edge_test.go:149
↓ 17 callers
Function
UntilIdleFor
UntilIdleFor defers the stop until the TurnLoop has been continuously idle (blocked between turns with no pending items) for at least the given durati
adk/turn_loop.go:1188
↓ 17 callers
Function
WithMaxRunSteps
WithMaxRunSteps sets the maximum number of steps that a graph can run. This is useful to prevent infinite loops in graphs with cycles. If the number o
compose/graph_compile_options.go:56
↓ 17 callers
Method
cancelOptions
(now time.Time)
adk/turn_loop.go:172
↓ 17 callers
Function
getCommonOptions
(base *options, opts ...AgentRunOption)
adk/call_option.go:43
↓ 17 callers
Function
newSlowTool
(name string, delay time.Duration, result string)
adk/cancel_test.go:89
↓ 17 callers
Method
reportError
reportError. save the first error in the chain.
compose/chain.go:552
↓ 16 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mock/components/model/ChatModel_mock.go:121
↓ 16 callers
Function
FromFieldPath
FromFieldPath creates a FieldMapping that maps a single predecessor field path to the entire successor input. This is an exclusive mapping - once set,
compose/field_mapping.go:154
↓ 16 callers
Function
GetCommonOptions
GetCommonOptions extracts standard [Options] from an Option list, merging them onto base. If base is nil, a zero-value Options is used. Implementors
components/model/option.go:211
↓ 16 callers
Function
Interrupt
Interrupt creates a basic interrupt action. This is used when an agent needs to pause its execution to request external input or intervention, but doe
adk/interrupt.go:88
↓ 16 callers
Function
ReuseHandlers
ReuseHandlers creates a new context that inherits all handlers already present in ctx and sets a new RunInfo. Global handlers are added if ctx carries
callbacks/aspect_inject.go:156
← previous
next →
101–200 of 3,994, ranked by callers