MCPcopy Index your code

hub / github.com/cloudwego/eino / functions

Functions3,994 in github.com/cloudwego/eino

↓ 16 callersFunctionSetMessageID
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 callersFunctionWithAgentCancelTimeout
WithAgentCancelTimeout sets a timeout for the cancel operation. This only applies to safe-point modes (CancelAfterChatModel, CancelAfterToolCalls): if
adk/cancel.go:116
↓ 16 callersFunctionWithGraphInterrupt
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 callersFunctionWithToolList
WithToolList sets the tool list for the ToolsNode.
compose/tool_node.go:56
↓ 16 callersMethodaddNode
addNode. add a node to the chain.
compose/chain.go:560
↓ 16 callersMethodaddNode
(outputKey string, node *graphNode, options *graphAddNodeOpts)
compose/chain_parallel.go:235
↓ 16 callersFunctionagenticTextContent
(msg *schema.AgenticMessage)
adk/agentic_integration_test.go:45
↓ 16 callersMethodcheck
()
adk/middlewares/summarization/summarization.go:908
↓ 16 callersFunctiondefaultClearHandler
( genOffloadFilePathFn func(ctx context.Context, toolDetail *ToolDetail) (filePath string, err error), needO
adk/middlewares/reduction/reduction.go:1401
↓ 16 callersFunctiongetMessageFromWrappedEvent
(e *agentEventWrapper)
adk/utils.go:148
↓ 16 callersFunctionsetRunCtx
(ctx context.Context, runCtx *runContext)
adk/runctx.go:382
↓ 16 callersFunctiontoFlowAgent
(ctx context.Context, agent Agent, opts ...AgentOption)
adk/flow.go:104
↓ 15 callersFunctionAddSessionValues
AddSessionValues sets multiple session key-value pairs for the current run.
adk/runctx.go:224
↓ 15 callersMethodAddToolsNode
AddToolsNode adds a tools node and returns it.
compose/workflow.go:111
↓ 15 callersMethodFormat
(ctx context.Context, vs map[string]any, formatType FormatType)
schema/message.go:574
↓ 15 callersFunctionGetMessageID
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 callersFunctionNewBackendFromFilesystem
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 callersFunctionNewMiddleware
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 callersMethodOnError
(ctx context.Context, info *RunInfo, err error)
internal/callbacks/interface.go:42
↓ 15 callersMethodSend
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 callersFunctionWithInputKey
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 callersMethodack
()
adk/turn_loop.go:155
↓ 15 callersFunctiongetToolSearchToolInfo
()
adk/middlewares/dynamictool/toolsearch/toolsearch.go:416
↓ 15 callersMethodinitNode
(key string)
compose/workflow.go:514
↓ 15 callersFunctionmergeValues
the caller should ensure len(vs) > 1
compose/values_merge.go:39
↓ 15 callersFunctionnewTaskUpdateTool
(backend Backend, baseDir string, lock *sync.Mutex)
adk/middlewares/plantask/task_update.go:33
↓ 15 callersFunctionparseAgentCancelOptions
(opts ...AgentCancelOption)
adk/turn_loop.go:79
↓ 15 callersMethodsend
(event *TypedAgentEvent[M])
adk/chatmodel.go:61
↓ 14 callersFunctionFromField
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 callersFunctionGetSessionValue
GetSessionValue retrieves a session value by key and reports whether it exists.
adk/runctx.go:234
↓ 14 callersFunctionNew
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 callersFunctionNewHandlerHelper
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 callersFunctionNewLoopAgent
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 callersFunctionSetSubAgents
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 callersMethodToJSONSchema
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 callersFunctionWithMessageFuture
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 callersFunctionWithToolsNodeOption
WithToolsNodeOption is a functional option type for tools node component.
compose/graph_call_options.go:208
↓ 14 callersFunctionWrapImplSpecificOptFn
WrapImplSpecificOptFn is the option to wrap the implementation specific option function.
adk/call_option.go:85
↓ 14 callersMethodaddNode
(key string, node *graphNode, options *graphAddNodeOpts)
compose/graph.go:162
↓ 14 callersMethodaddNode
(key string, node *graphNode, options *graphAddNodeOpts)
compose/chain_branch.go:325
↓ 14 callersMethodasReader
()
schema/stream.go:396
↓ 14 callersFunctiondrainAgenticEvents
(iter *AsyncIterator[*agenticAgentEvent])
adk/agentic_react_test.go:194
↓ 14 callersFunctiongetMsgRole
(msg M)
adk/middlewares/agentsmd/agentsmd_generic_test.go:69
↓ 14 callersMethodmerge
([]streamReader)
compose/stream_reader.go:30
↓ 14 callersFunctionnewFailoverModelWrapper
(inner model.BaseModel[M], config *ModelFailoverConfig[M])
adk/failover_chatmodel.go:188
↓ 14 callersFunctionrandStrForTest
()
adk/react_test.go:638
↓ 14 callersFunctiontestClearOffloadPath
(root string)
adk/middlewares/reduction/reduction_test.go:47
↓ 14 callersMethodtriggerCancel
(mode CancelMode)
adk/cancel.go:423
↓ 13 callersMethodAddChatModelNode
AddChatModelNode adds a chat model node and returns it.
compose/workflow.go:87
↓ 13 callersFunctionOnEnd
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 callersFunctionOnError
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 callersFunctionStatefulInterrupt
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 callersFunctionWithGraphInterruptTimeout
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 callersFunctionWithStatePostHandler
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 callersFunctionclampSuffixToUTF8Boundary
(s string, n int)
adk/middlewares/reduction/reduction.go:1386
↓ 13 callersFunctionnewRunSession
()
adk/runctx.go:196
↓ 13 callersFunctionnewStopController
()
adk/turn_loop.go:428
↓ 13 callersFunctionnewTestChatModel
-- Tests for CancelImmediate in nested agent structures --
adk/cancel_test.go:2471
↓ 13 callersFunctionsearchJSON
(query string, maxResults *int)
adk/middlewares/dynamictool/toolsearch/toolsearch_test.go:63
↓ 13 callersFunctionwaitForChan
(t *testing.T, ch <-chan struct{}, msg string)
adk/cancel_test.go:2507
↓ 12 callersFunctionAddSessionValue
AddSessionValue sets a single session key-value pair for the current run.
adk/runctx.go:214
↓ 12 callersFunctionConvAgentCallbackOutput
ConvAgentCallbackOutput converts a generic CallbackOutput to AgentCallbackOutput. Returns nil if the output is not an AgentCallbackOutput.
adk/callback.go:109
↓ 12 callersMethodEdit
Edit replaces string occurrences in a file.
adk/filesystem/backend_inmemory.go:644
↓ 12 callersMethodGlobInfo
GlobInfo returns file info entries matching the glob pattern.
adk/filesystem/backend_inmemory.go:580
↓ 12 callersFunctionNewNodePath
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 callersFunctionWithChatModelOption
WithChatModelOption is a functional option type for chat model component. e.g. chatModelOption := compose.WithChatModelOption(model.WithTemperature(
compose/graph_call_options.go:198
↓ 12 callersFunctionWithComposeOptions
WithComposeOptions returns an agent option that specifies compose options.
flow/agent/agent_option.go:41
↓ 12 callersFunctionWrapImplSpecificOptFn
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 callersFunctionclampPrefixToUTF8Boundary
(s string, n int)
adk/middlewares/reduction/reduction.go:1373
↓ 12 callersFunctioncollectToolEvents
(it *AsyncIterator[*AgentEvent])
adk/wrappers_test.go:1268
↓ 12 callersMethodconsumeStream
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 callersFunctiondrainEvents
(iter *AsyncIterator[*AgentEvent])
adk/cancel_edge_test.go:157
↓ 12 callersFunctionfilterCancelOption
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 callersFunctionisValidUUID
(s string)
adk/message_id_test.go:38
↓ 12 callersFunctionnewMultiModalReadFileTool
(fs filesystem.Backend, name string, desc string)
adk/middlewares/filesystem/filesystem.go:678
↓ 12 callersFunctionptrOf
(t T)
adk/middlewares/filesystem/filesystem_test.go:580
↓ 12 callersFunctionvalueOrDefault
valueOrDefault returns the value pointed to by ptr, or defaultValue if ptr is nil.
adk/middlewares/filesystem/filesystem.go:1108
↓ 11 callersFunctionClone
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 callersMethodGenerate
Generate generates a response from the agent.
flow/agent/react/react.go:480
↓ 11 callersMethodGetMessage
()
adk/interface.go:100
↓ 11 callersMethodGetMessages
GetMessages returns an iterator for retrieving messages generated during "agent.Generate" calls.
flow/agent/react/option.go:137
↓ 11 callersFunctionGetToolCallID
GetToolCallID gets the current tool call id from the context.
compose/tool_node.go:1298
↓ 11 callersMethodGobEncode
()
adk/runctx.go:173
↓ 11 callersMethodInfo
(_ context.Context)
flow/agent/react/react_test.go:764
↓ 11 callersFunctionInitCallbacks
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 callersFunctionInvokableLambdaWithOption
InvokableLambdaWithOption creates a Lambda with invokable lambda function and options.
compose/types_lambda.go:100
↓ 11 callersFunctionNew
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 callersFunctionNewChainBranch
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 callersFunctionNewParallelAgent
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 callersMethodOnEndWithStreamOutput
(ctx context.Context, info *RunInfo, output *schema.StreamReader[CallbackOutput])
internal/callbacks/interface.go:46
↓ 11 callersMethodSetStaticValue
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 callersFunctionStatefulInterrupt
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 callersFunctionToInterruptContexts
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 callersFunctionWithGraphCompileOptions
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 callersFunctionanyLambda
(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 callersFunctionconvToolOutputPartToMessageInputPart
(toolPart ToolOutputPart)
schema/tool.go:491
↓ 11 callersFunctiondrainAgentEvents
(t *testing.T, iterator *AsyncIterator[*AgentEvent])
adk/chatmodel_retry_test.go:50
↓ 11 callersMethodensureReminder
(msgs []M)
adk/middlewares/dynamictool/toolsearch/toolsearch.go:169
↓ 11 callersFunctionnewBridgeStore
()
adk/interrupt.go:315
↓ 11 callersFunctionnewLsTool
(fs filesystem.Backend, name string, desc string)
adk/middlewares/filesystem/filesystem.go:564
← previousnext →201–300 of 3,994, ranked by callers