MCPcopy Index your code

hub / github.com/cloudwego/eino / functions

Functions3,994 in github.com/cloudwego/eino

↓ 1,876 callersMethodRun
Run runs the agent. The returned AgentEvent within the AsyncIterator must be safe to modify. If the returned AgentEvent within the AsyncIterator conta
adk/interface.go:463
↓ 645 callersFunctionAssistantMessage
AssistantMessage represents a message with Role "assistant".
schema/message.go:1113
↓ 575 callersFunctionUserMessage
UserMessage represents a message with Role "user".
schema/message.go:1122
↓ 510 callersMethodNext
()
adk/utils.go:35
↓ 488 callersMethodSend
(v T)
adk/utils.go:43
↓ 483 callersMethodClose
()
schema/stream.go:368
↓ 412 callersMethodError
()
adk/cancel.go:180
↓ 379 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mock/components/model/ChatModel_mock.go:199
↓ 349 callersMethodAddEdge
AddEdge adds an edge to the graph, edge means a data flow from startNode to endNode. the previous node's output type must be set to the next node's in
compose/generic_graph.go:106
↓ 320 callersFunctionNewChatModelAgent
NewChatModelAgent creates a new ChatModelAgent with the given config.
adk/chatmodel.go:484
↓ 290 callersFunctionInvokableLambda
InvokableLambda creates a Lambda with invokable lambda function without options.
compose/types_lambda.go:105
↓ 279 callersMethodGenerate
(ctx context.Context, input []M, opts ...Option)
components/model/interface.go:37
↓ 267 callersMethodInvoke
(ctx context.Context, input I, opts ...Option)
compose/runnable.go:33
↓ 241 callersMethodWait
Wait blocks until the loop exits and returns the result. This method is safe to call from multiple goroutines. All callers will receive the same resul
adk/turn_loop.go:1565
↓ 238 callersMethodRecv
Recv receives a value from the stream. eg. for { chunk, err := sr.Recv() if errors.Is(err, io.EOF) { break } if err != nil { panic(err
schema/stream.go:195
↓ 236 callersMethodCompile
Compile to a Runnable. Runnable can be used directly. e.g. chain := NewChain[string, string]() r, err := chain.Compile() if err != nil {} r
compose/chain.go:157
↓ 224 callersMethodAddLambdaNode
AddLambdaNode adds a lambda node to the workflow and returns it.
compose/workflow.go:159
↓ 178 callersMethodStream
(ctx context.Context, input I, opts ...Option)
compose/runnable.go:34
↓ 170 callersMethodPush
Push adds an item to the loop's buffer for processing. This method is non-blocking and thread-safe. Returns false if the loop has stopped, true otherw
adk/turn_loop.go:1381
↓ 162 callersFunctionStreamReaderFromArray
StreamReaderFromArray creates a StreamReader from a given slice of elements. It takes an array of type T and returns a pointer to a StreamReader[T]. T
schema/stream.go:461
↓ 138 callersFunctionNewRunner
NewRunner creates a new Runner with the given config.
adk/runner.go:89
↓ 130 callersMethodAddInput
AddInput creates both data and execution dependencies between nodes. It configures how data flows from the predecessor node (fromNodeKey) to the curre
compose/workflow.go:197
↓ 126 callersMethodWithTools
(tools []*schema.ToolInfo)
components/model/interface.go:102
↓ 124 callersMethodStop
Stop signals the loop to stop and returns immediately (non-blocking). Without options, the current agent turn runs to completion and the loop exits at
adk/turn_loop.go:1524
↓ 107 callersMethodWrite
Write creates or overwrites file content.
adk/filesystem/backend_inmemory.go:630
↓ 105 callersMethodInvokableRun
InvokableRun executes the tool with arguments encoded as a JSON string.
components/tool/interface.go:46
↓ 101 callersMethodError
()
compose/error.go:92
↓ 101 callersFunctionWithCheckPointID
WithCheckPointID sets the checkpoint ID to load from and write to by default.
compose/checkpoint.go:74
↓ 96 callersFunctionNewInMemoryBackend
NewInMemoryBackend creates a new in-memory backend.
adk/filesystem/backend_inmemory.go:44
↓ 89 callersMethodset
(path string, content string)
adk/middlewares/agentsmd/agentsmd_test.go:41
↓ 88 callersMethodBeforeModelRewriteState
BeforeModelRewriteState is called before each model invocation. The returned state is persisted to the agent's internal state and passed to the model.
adk/handler.go:171
↓ 88 callersFunctionNewGraph
NewGraph create a directed graph that can compose components, lambda, chain, parallel etc. simultaneously provide flexible and multi-granular aspect g
compose/generic_graph.go:72
↓ 85 callersMethodInfo
(ctx context.Context)
components/tool/interface.go:33
↓ 85 callersFunctionnewAndRunTurnLoop
(ctx context.Context, cfg TurnLoopConfig[T, M])
adk/turn_loop_test.go:163
↓ 84 callersFunctionNewContentBlock
NewContentBlock creates a new ContentBlock with the given content.
schema/agentic_message.go:607
↓ 81 callersMethodName
(ctx context.Context)
adk/interface.go:454
↓ 80 callersMethodEnd
End returns the WorkflowNode representing END node.
compose/workflow.go:165
↓ 79 callersFunctionNewWorkflow
NewWorkflow creates a new Workflow.
compose/workflow.go:61
↓ 75 callersFunctionNewChain
NewChain create a chain with input/output type.
compose/chain.go:37
↓ 74 callersFunctionWithAgentCancelMode
WithAgentCancelMode sets the cancel mode for the agent cancel operation.
adk/cancel.go:104
↓ 72 callersFunctionNewParamsOneOfByParams
NewParamsOneOfByParams creates a ParamsOneOf with map[string]*ParameterInfo.
schema/tool.go:290
↓ 71 callersFunctionToolMessage
ToolMessage represents a message with Role "tool".
schema/message.go:1145
↓ 65 callersMethodQuery
Query is a convenience method that starts a new execution with a single user query string.
adk/runner.go:108
↓ 64 callersFunctionWithCancel
WithCancel creates an AgentRunOption that enables cancellation for an agent run. It returns the option to pass to Run/Resume and a cancel function. Ca
adk/cancel.go:217
↓ 63 callersFunctionExtractInterruptInfo
ExtractInterruptInfo extracts InterruptInfo from an error if present.
compose/interrupt.go:299
↓ 59 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mock/adk/Agent_mock.go:56
↓ 59 callersFunctionWithOutputKey
WithOutputKey sets the output key of the node. this will change the output value of the node, for example, if the current node's output key is "key01"
compose/graph_add_node_options.go:76
↓ 58 callersFunctionUserAgenticMessage
UserAgenticMessage represents a message with AgenticRoleType "user".
schema/agentic_message.go:575
↓ 56 callersMethodAppendLambda
AppendLambda add a Lambda node to the chain. Lambda is a node that can be used to implement custom logic. e.g. lambdaNode := compose.InvokableLambda
compose/chain.go:266
↓ 55 callersMethodAddLambda
AddLambda adds a lambda node to the parallel. eg. lambdaFunc := func(ctx context.Context, input *schema.Message) ([]*schema.Message, error) { retu
compose/chain_parallel.go:150
↓ 55 callersFunctionnewMemBackend
()
adk/middlewares/agentsmd/agentsmd_test.go:37
↓ 52 callersFunctionNewTypedChatModelAgent
NewTypedChatModelAgent creates a new TypedChatModelAgent with the given config.
adk/chatmodel.go:489
↓ 52 callersFunctionWithCheckPointID
WithCheckPointID sets the checkpoint ID used for interruption persistence.
adk/interrupt.go:192
↓ 52 callersFunctionagenticMsg
(text string)
adk/agentic_integration_test.go:36
↓ 51 callersFunctionProcessState
ProcessState processes the state from the context in a concurrency-safe way. This is the recommended way to access and modify state in custom nodes. T
compose/state.go:165
↓ 51 callersFunctionPtrOf
PtrOf returns a pointer of T. useful when you want to get a pointer of a value, in some config, for example. eg. PtrOf[int] returns *int. eg. PtrOf[*i
internal/generic/generic.go:64
↓ 50 callersFunctionSystemMessage
SystemMessage represents a message with Role "system".
schema/message.go:1105
↓ 50 callersMethodWrite
Write creates or updates file content. Returns: - error: Error if the write operation fails
adk/filesystem/backend.go:276
↓ 49 callersFunctionStreamReaderWithConvert
StreamReaderWithConvert returns a new StreamReader[D] that wraps sr and applies convert to every element. The original reader sr must not be used afte
schema/stream.go:691
↓ 49 callersFunctionwaitOrFail
(t *testing.T, ch <-chan struct{}, msg string)
adk/turn_loop_test.go:198
↓ 47 callersFunctionNewTurnLoop
NewTurnLoop creates a new TurnLoop without starting it. The returned loop accepts Push and Stop calls immediately; pushed items are buffered until Run
adk/turn_loop.go:1312
↓ 47 callersMethodRead
Read reads file content with support for line-based offset and limit. Returns: - string: The file content read - error: Error if file does not exist
adk/filesystem/backend.go:256
↓ 46 callersFunctionConcatMessages
ConcatMessages concat messages with the same role and name. It will concat tool calls with the same index. It will return an error if the messages hav
schema/message.go:1644
↓ 45 callersMethodGrepRaw
GrepRaw returns matches for the given pattern.
adk/filesystem/backend_inmemory.go:201
↓ 45 callersMethodRead
Read reads file content with offset and limit.
adk/filesystem/backend_inmemory.go:136
↓ 44 callersFunctionNewAsyncIteratorPair
NewAsyncIteratorPair returns a paired async iterator and generator that share the same underlying channel.
adk/utils.go:57
↓ 44 callersMethodString
String returns the string representation of Reasoning.
schema/agentic_message.go:2049
↓ 43 callersFunctionNew
New creates tool reduction middleware from config
adk/middlewares/reduction/reduction.go:349
↓ 43 callersFunctionNewTypedRunner
NewTypedRunner creates a new TypedRunner with the given config.
adk/runner.go:94
↓ 43 callersFunctionSelectPrompt
SelectPrompt returns the appropriate prompt string based on the current language setting. Returns an error if the current language is not supported.
adk/internal/config.go:65
↓ 43 callersFunctionWithNodeName
WithNodeName sets the name of the node.
compose/graph_add_node_options.go:50
↓ 43 callersFunctionti
(name, desc string)
adk/middlewares/dynamictool/toolsearch/toolsearch_test.go:50
↓ 42 callersFunctiongetRunCtx
(ctx context.Context)
adk/runctx.go:374
↓ 41 callersMethodNeeded
(ctx context.Context, info *RunInfo, timing CallbackTiming)
internal/callbacks/interface.go:53
↓ 41 callersFunctionNewToolNode
NewToolNode creates a new ToolsNode. e.g. conf := &ToolsNodeConfig{ Tools: []tool.BaseTool{invokableTool1, streamableTool2}, } toolsNode, err :=
compose/tool_node.go:238
↓ 40 callersFunctionNewHandlerBuilder
NewHandlerBuilder creates and returns a new HandlerBuilder instance. HandlerBuilder is used to construct a Handler with custom callback functions
callbacks/handler_builder.go:109
↓ 40 callersFunctionsetupTestBackend
setupTestBackend creates a test backend with some initial files
adk/middlewares/filesystem/filesystem_test.go:37
↓ 38 callersMethodNext
Next retrieves the next value from the iterator. It returns the zero value and false when the stream is exhausted.
flow/agent/react/option.go:117
↓ 38 callersMethodResume
(ctx context.Context, info *ResumeInfo, opts ...AgentRunOption)
adk/interface.go:484
↓ 38 callersFunctionWithCallbacks
WithCallbacks set callback handlers for all components in a single call. e.g. runnable.Invoke(ctx, "input", compose.WithCallbacks(&myCallbacks{}))
compose/graph_call_options.go:224
↓ 38 callersFunctionWithCheckPointStore
WithCheckPointStore sets the checkpoint store implementation for a graph.
compose/checkpoint.go:60
↓ 38 callersFunctionWithGenLocalState
WithGenLocalState registers a function to generate per-run local state that can be shared across nodes in the graph.
compose/generic_graph.go:37
↓ 37 callersFunctionNewAgentTool
NewAgentTool creates a tool that wraps an agent for invocation. The agent must have a non-empty Name and Description, as they are used as the tool's
adk/agent_tool.go:93
↓ 37 callersMethodUnmarshal
(data []byte, v any)
compose/checkpoint.go:56
↓ 36 callersFunctionConcatAgenticMessages
ConcatAgenticMessages concatenates a list of AgenticMessage chunks into a single AgenticMessage.
schema/agentic_message.go:901
↓ 36 callersMethodError
()
schema/stream.go:60
↓ 36 callersMethodResumeWithParams
ResumeWithParams continues an interrupted execution from a checkpoint with specific parameters. This is the most common and powerful way to resume, al
adk/runner.go:147
↓ 36 callersMethodString
String returns the string representation of the graph run type.
compose/graph.go:53
↓ 36 callersFunctiongetFilesystemTools
(_ context.Context, middlewareConfig *MiddlewareConfig)
adk/middlewares/filesystem/filesystem.go:427
↓ 35 callersMethodAddBranch
AddBranch adds a branch to the workflow. End Nodes Field Mappings: End nodes of the branch are required to define their own field mappings. This is a
compose/workflow.go:420
↓ 35 callersMethodCopy
Copy creates n independent StreamReaders that each receive every element of the original stream. The original StreamReader becomes unusable after Copy
schema/stream.go:261
↓ 35 callersMethodOnStartFn
OnStartFn sets the handler for the start timing.
callbacks/handler_builder.go:114
↓ 35 callersFunctionnewCancelContext
()
adk/cancel.go:332
↓ 34 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mock/components/model/ChatModel_mock.go:57
↓ 34 callersMethodMarshal
(v any)
compose/checkpoint.go:55
↓ 34 callersFunctionToField
ToField creates a FieldMapping that maps the entire predecessor output to a single successor field. Field: either the field of a struct, or the key of
compose/field_mapping.go:73
↓ 34 callersFunctionnewInMemoryStore
()
compose/checkpoint_test.go:53
↓ 33 callersMethodSet
(ctx context.Context, checkPointID string, checkPoint []byte)
internal/core/interrupt.go:29
↓ 33 callersFunctionWithImmediate
WithImmediate aborts the running agent turn as soon as possible. The agent is cancelled immediately without waiting for any safe point. Nested agents
adk/turn_loop.go:1113
↓ 33 callersFunctionWithToolName
WithToolName returns a ToolMessageOption that sets the tool call name.
schema/message.go:1138
next →1–100 of 3,994, ranked by callers