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
↓ 16 callers
Function
SetMessageID
SetMessageID sets the message ID in Extra and returns the resulting map. Copy-on-write: the input map is never mutated, because a message's Extra can
adk/internal/message_id.go:41
↓ 16 callers
Function
WithAgentCancelTimeout
WithAgentCancelTimeout sets a timeout for the cancel operation. This only applies to safe-point modes (CancelAfterChatModel, CancelAfterToolCalls): if
adk/cancel.go:116
↓ 16 callers
Function
WithGraphInterrupt
WithGraphInterrupt creates a context with graph cancellation support. When the returned context is used to invoke a graph or workflow, calling the int
compose/graph_call_options.go:72
↓ 16 callers
Function
WithToolList
WithToolList sets the tool list for the ToolsNode.
compose/tool_node.go:56
↓ 16 callers
Method
addNode
addNode. add a node to the chain.
compose/chain.go:560
↓ 16 callers
Method
addNode
(outputKey string, node *graphNode, options *graphAddNodeOpts)
compose/chain_parallel.go:235
↓ 16 callers
Function
agenticTextContent
(msg *schema.AgenticMessage)
adk/agentic_integration_test.go:45
↓ 16 callers
Method
check
()
adk/middlewares/summarization/summarization.go:908
↓ 16 callers
Function
defaultClearHandler
( genOffloadFilePathFn func(ctx context.Context, toolDetail *ToolDetail) (filePath string, err error), needO
adk/middlewares/reduction/reduction.go:1401
↓ 16 callers
Function
getMessageFromWrappedEvent
(e *agentEventWrapper)
adk/utils.go:148
↓ 16 callers
Function
setRunCtx
(ctx context.Context, runCtx *runContext)
adk/runctx.go:382
↓ 16 callers
Function
toFlowAgent
(ctx context.Context, agent Agent, opts ...AgentOption)
adk/flow.go:104
↓ 15 callers
Function
AddSessionValues
AddSessionValues sets multiple session key-value pairs for the current run.
adk/runctx.go:224
↓ 15 callers
Method
AddToolsNode
AddToolsNode adds a tools node and returns it.
compose/workflow.go:111
↓ 15 callers
Method
Format
(ctx context.Context, vs map[string]any, formatType FormatType)
schema/message.go:574
↓ 15 callers
Function
GetMessageID
GetMessageID returns the message ID from Extra, or "" if not set. Works with any map[string]any (Message.Extra or AgenticMessage.Extra).
adk/internal/message_id.go:26
↓ 15 callers
Function
NewBackendFromFilesystem
NewBackendFromFilesystem creates a new Backend implementation that reads skills from a filesystem. It searches for SKILL.md files in immediate subdire
adk/middlewares/skill/filesystem_backend.go:49
↓ 15 callers
Function
NewMiddleware
NewMiddleware creates a new skill middleware handler for ChatModelAgent. The handler provides a skill tool that allows agents to load and execute ski
adk/middlewares/skill/skill.go:265
↓ 15 callers
Method
OnError
(ctx context.Context, info *RunInfo, err error)
internal/callbacks/interface.go:42
↓ 15 callers
Method
Send
Send sends a value to the stream. e.g. closed := sw.Send(i, nil) if closed { // the stream is closed }
schema/stream.go:126
↓ 15 callers
Function
WithInputKey
WithInputKey sets the input key of the node. this will change the input value of the node, for example, if the pre node's output is map[string]any{"ke
compose/graph_add_node_options.go:67
↓ 15 callers
Method
ack
()
adk/turn_loop.go:155
↓ 15 callers
Function
getToolSearchToolInfo
()
adk/middlewares/dynamictool/toolsearch/toolsearch.go:416
↓ 15 callers
Method
initNode
(key string)
compose/workflow.go:514
↓ 15 callers
Function
mergeValues
the caller should ensure len(vs) > 1
compose/values_merge.go:39
↓ 15 callers
Function
newTaskUpdateTool
(backend Backend, baseDir string, lock *sync.Mutex)
adk/middlewares/plantask/task_update.go:33
↓ 15 callers
Function
parseAgentCancelOptions
(opts ...AgentCancelOption)
adk/turn_loop.go:79
↓ 15 callers
Method
send
(event *TypedAgentEvent[M])
adk/chatmodel.go:61
↓ 14 callers
Function
FromField
FromField creates a FieldMapping that maps a single predecessor field to the entire successor input. This is an exclusive mapping - once set, no other
compose/field_mapping.go:65
↓ 14 callers
Function
GetSessionValue
GetSessionValue retrieves a session value by key and reports whether it exists.
adk/runctx.go:234
↓ 14 callers
Function
New
New constructs and returns the tool search middleware. The tool search middleware enables dynamic tool selection for agents with large tool libraries
adk/middlewares/dynamictool/toolsearch/toolsearch.go:120
↓ 14 callers
Function
NewHandlerHelper
NewHandlerHelper creates a new component template handler builder. This builder can be used to configure and build a component template handler, which
utils/callbacks/template.go:41
↓ 14 callers
Function
NewLoopAgent
NewLoopAgent creates an agent that loops over sub-agents with a max iteration limit. NOT RECOMMENDED: Workflow agents are built on agent transfer wit
adk/workflow.go:704
↓ 14 callers
Function
SetSubAgents
SetSubAgents sets sub-agents for the given agent and returns the updated agent. NOT RECOMMENDED: Agent transfer with full context sharing between age
adk/flow.go:75
↓ 14 callers
Method
ToJSONSchema
ToJSONSchema parses ParamsOneOf, converts the parameter description that user actually provides, into the format ready to be passed to Model.
schema/tool.go:304
↓ 14 callers
Function
WithMessageFuture
WithMessageFuture returns an agent option and a MessageFuture interface instance. The option configures the agent to collect messages generated during
flow/agent/react/option.go:151
↓ 14 callers
Function
WithToolsNodeOption
WithToolsNodeOption is a functional option type for tools node component.
compose/graph_call_options.go:208
↓ 14 callers
Function
WrapImplSpecificOptFn
WrapImplSpecificOptFn is the option to wrap the implementation specific option function.
adk/call_option.go:85
↓ 14 callers
Method
addNode
(key string, node *graphNode, options *graphAddNodeOpts)
compose/graph.go:162
↓ 14 callers
Method
addNode
(key string, node *graphNode, options *graphAddNodeOpts)
compose/chain_branch.go:325
↓ 14 callers
Method
asReader
()
schema/stream.go:396
↓ 14 callers
Function
drainAgenticEvents
(iter *AsyncIterator[*agenticAgentEvent])
adk/agentic_react_test.go:194
↓ 14 callers
Function
getMsgRole
(msg M)
adk/middlewares/agentsmd/agentsmd_generic_test.go:69
↓ 14 callers
Method
merge
([]streamReader)
compose/stream_reader.go:30
↓ 14 callers
Function
newFailoverModelWrapper
(inner model.BaseModel[M], config *ModelFailoverConfig[M])
adk/failover_chatmodel.go:188
↓ 14 callers
Function
randStrForTest
()
adk/react_test.go:638
↓ 14 callers
Function
testClearOffloadPath
(root string)
adk/middlewares/reduction/reduction_test.go:47
↓ 14 callers
Method
triggerCancel
(mode CancelMode)
adk/cancel.go:423
↓ 13 callers
Method
AddChatModelNode
AddChatModelNode adds a chat model node and returns it.
compose/workflow.go:87
↓ 13 callers
Function
OnEnd
OnEnd invokes the OnEnd timing for all registered handlers. Call this after the component produces a successful result. Handlers run in registration o
callbacks/aspect_inject.go:86
↓ 13 callers
Function
OnError
OnError invokes the OnError timing for all registered handlers. Call this when the component returns an error. Errors that occur mid-stream (after the
callbacks/aspect_inject.go:125
↓ 13 callers
Function
StatefulInterrupt
StatefulInterrupt pauses tool execution with state preservation. Use this when the tool has internal state that must be restored on resume. Parameter
components/tool/interrupt.go:71
↓ 13 callers
Function
WithGraphInterruptTimeout
WithGraphInterruptTimeout specifies the max waiting time before generating an interrupt. After the max waiting time, the graph will force an interrupt
compose/graph_call_options.go:48
↓ 13 callers
Function
WithStatePostHandler
WithStatePostHandler modify node's output of O according to state S and output or store output information into state, and it's thread-safe. notice: t
compose/graph_add_node_options.go:108
↓ 13 callers
Function
clampSuffixToUTF8Boundary
(s string, n int)
adk/middlewares/reduction/reduction.go:1386
↓ 13 callers
Function
newRunSession
()
adk/runctx.go:196
↓ 13 callers
Function
newStopController
()
adk/turn_loop.go:428
↓ 13 callers
Function
newTestChatModel
-- Tests for CancelImmediate in nested agent structures --
adk/cancel_test.go:2471
↓ 13 callers
Function
searchJSON
(query string, maxResults *int)
adk/middlewares/dynamictool/toolsearch/toolsearch_test.go:63
↓ 13 callers
Function
waitForChan
(t *testing.T, ch <-chan struct{}, msg string)
adk/cancel_test.go:2507
↓ 12 callers
Function
AddSessionValue
AddSessionValue sets a single session key-value pair for the current run.
adk/runctx.go:214
↓ 12 callers
Function
ConvAgentCallbackOutput
ConvAgentCallbackOutput converts a generic CallbackOutput to AgentCallbackOutput. Returns nil if the output is not an AgentCallbackOutput.
adk/callback.go:109
↓ 12 callers
Method
Edit
Edit replaces string occurrences in a file.
adk/filesystem/backend_inmemory.go:644
↓ 12 callers
Method
GlobInfo
GlobInfo returns file info entries matching the glob pattern.
adk/filesystem/backend_inmemory.go:580
↓ 12 callers
Function
NewNodePath
NewNodePath specifies a path to a node in the graph, which is composed of node keys. Starting from the top graph, following this set of node keys can
compose/graph.go:1207
↓ 12 callers
Function
WithChatModelOption
WithChatModelOption is a functional option type for chat model component. e.g. chatModelOption := compose.WithChatModelOption(model.WithTemperature(
compose/graph_call_options.go:198
↓ 12 callers
Function
WithComposeOptions
WithComposeOptions returns an agent option that specifies compose options.
flow/agent/agent_option.go:41
↓ 12 callers
Function
WrapImplSpecificOptFn
WrapImplSpecificOptFn wraps the impl specific option functions into Option type. T: the type of the impl specific options struct. Tool implementations
components/tool/option.go:44
↓ 12 callers
Function
clampPrefixToUTF8Boundary
(s string, n int)
adk/middlewares/reduction/reduction.go:1373
↓ 12 callers
Function
collectToolEvents
(it *AsyncIterator[*AgentEvent])
adk/wrappers_test.go:1268
↓ 12 callers
Method
consumeStream
consumeStream drains the message stream, setting concatenatedMessage on success or StreamErr on failure. The stream is always replaced with an error-f
adk/utils.go:177
↓ 12 callers
Function
drainEvents
(iter *AsyncIterator[*AgentEvent])
adk/cancel_edge_test.go:157
↓ 12 callers
Function
filterCancelOption
filterCancelOption removes any AgentRunOption that sets a cancelCtx on *options. This prevents inner (nested) agents from receiving the cancel option
adk/call_option.go:169
↓ 12 callers
Function
isValidUUID
(s string)
adk/message_id_test.go:38
↓ 12 callers
Function
newMultiModalReadFileTool
(fs filesystem.Backend, name string, desc string)
adk/middlewares/filesystem/filesystem.go:678
↓ 12 callers
Function
ptrOf
(t T)
adk/middlewares/filesystem/filesystem_test.go:580
↓ 12 callers
Function
valueOrDefault
valueOrDefault returns the value pointed to by ptr, or defaultValue if ptr is nil.
adk/middlewares/filesystem/filesystem.go:1108
↓ 11 callers
Function
Clone
Clone returns a shallow copy of map. If the given map is nil, nil is returned. 🚀 EXAMPLE: Clone(map[int]int{1: 1, 2: 2}) ⏩ map[int]int{1: 1, 2: 2}
internal/gmap/gmap.go:108
↓ 11 callers
Method
Generate
Generate generates a response from the agent.
flow/agent/react/react.go:480
↓ 11 callers
Method
GetMessage
()
adk/interface.go:100
↓ 11 callers
Method
GetMessages
GetMessages returns an iterator for retrieving messages generated during "agent.Generate" calls.
flow/agent/react/option.go:137
↓ 11 callers
Function
GetToolCallID
GetToolCallID gets the current tool call id from the context.
compose/tool_node.go:1298
↓ 11 callers
Method
GobEncode
()
adk/runctx.go:173
↓ 11 callers
Method
Info
(_ context.Context)
flow/agent/react/react_test.go:764
↓ 11 callers
Function
InitCallbacks
InitCallbacks creates a new context with the given RunInfo and handlers, completely replacing any RunInfo and handlers already in ctx. Use this when
callbacks/aspect_inject.go:172
↓ 11 callers
Function
InvokableLambdaWithOption
InvokableLambdaWithOption creates a Lambda with invokable lambda function and options.
compose/types_lambda.go:100
↓ 11 callers
Function
New
New constructs and returns the filesystem middleware as a ChatModelAgentMiddleware. This is the recommended constructor for new code. It returns a Ch
adk/middlewares/filesystem/filesystem.go:395
↓ 11 callers
Function
NewChainBranch
NewChainBranch creates a new ChainBranch instance based on a given condition. It takes a generic type T and a GraphBranchCondition function for that t
compose/chain_branch.go:100
↓ 11 callers
Function
NewParallelAgent
NewParallelAgent creates an agent that runs sub-agents in parallel. NOT RECOMMENDED: Workflow agents are built on agent transfer with full context sh
adk/workflow.go:695
↓ 11 callers
Method
OnEndWithStreamOutput
(ctx context.Context, info *RunInfo, output *schema.StreamReader[CallbackOutput])
internal/callbacks/interface.go:46
↓ 11 callers
Method
SetStaticValue
SetStaticValue sets a static value for a field path that will be available during workflow execution. These values are determined at compile time and
compose/workflow.go:311
↓ 11 callers
Function
StatefulInterrupt
StatefulInterrupt creates a special error that signals the execution engine to interrupt the current run at the component's specific address and save
compose/interrupt.go:130
↓ 11 callers
Function
ToInterruptContexts
ToInterruptContexts converts the internal InterruptSignal tree into a list of user-facing InterruptCtx objects for the root causes of the interruption
internal/core/interrupt.go:254
↓ 11 callers
Function
WithGraphCompileOptions
WithGraphCompileOptions when the node is an AnyGraph, use this option to set compile option for the node. e.g. graph.AddNode("node_name", node, comp
compose/graph_add_node_options.go:86
↓ 11 callers
Function
anyLambda
(i Invoke[I, O, TOption], s Stream[I, O, TOption], c Collect[I, O, TOption], t Transform[I, O, TOption], opts
compose/types_lambda.go:184
↓ 11 callers
Function
convToolOutputPartToMessageInputPart
(toolPart ToolOutputPart)
schema/tool.go:491
↓ 11 callers
Function
drainAgentEvents
(t *testing.T, iterator *AsyncIterator[*AgentEvent])
adk/chatmodel_retry_test.go:50
↓ 11 callers
Method
ensureReminder
(msgs []M)
adk/middlewares/dynamictool/toolsearch/toolsearch.go:169
↓ 11 callers
Function
newBridgeStore
()
adk/interrupt.go:315
↓ 11 callers
Function
newLsTool
(fs filesystem.Backend, name string, desc string)
adk/middlewares/filesystem/filesystem.go:564
← previous
next →
201–300 of 3,994, ranked by callers