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
↓ 1,876 callers
Method
Run
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 callers
Function
AssistantMessage
AssistantMessage represents a message with Role "assistant".
schema/message.go:1113
↓ 575 callers
Function
UserMessage
UserMessage represents a message with Role "user".
schema/message.go:1122
↓ 510 callers
Method
Next
()
adk/utils.go:35
↓ 488 callers
Method
Send
(v T)
adk/utils.go:43
↓ 483 callers
Method
Close
()
schema/stream.go:368
↓ 412 callers
Method
Error
()
adk/cancel.go:180
↓ 379 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mock/components/model/ChatModel_mock.go:199
↓ 349 callers
Method
AddEdge
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 callers
Function
NewChatModelAgent
NewChatModelAgent creates a new ChatModelAgent with the given config.
adk/chatmodel.go:484
↓ 290 callers
Function
InvokableLambda
InvokableLambda creates a Lambda with invokable lambda function without options.
compose/types_lambda.go:105
↓ 279 callers
Method
Generate
(ctx context.Context, input []M, opts ...Option)
components/model/interface.go:37
↓ 267 callers
Method
Invoke
(ctx context.Context, input I, opts ...Option)
compose/runnable.go:33
↓ 241 callers
Method
Wait
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 callers
Method
Recv
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 callers
Method
Compile
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 callers
Method
AddLambdaNode
AddLambdaNode adds a lambda node to the workflow and returns it.
compose/workflow.go:159
↓ 178 callers
Method
Stream
(ctx context.Context, input I, opts ...Option)
compose/runnable.go:34
↓ 170 callers
Method
Push
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 callers
Function
StreamReaderFromArray
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 callers
Function
NewRunner
NewRunner creates a new Runner with the given config.
adk/runner.go:89
↓ 130 callers
Method
AddInput
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 callers
Method
WithTools
(tools []*schema.ToolInfo)
components/model/interface.go:102
↓ 124 callers
Method
Stop
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 callers
Method
Write
Write creates or overwrites file content.
adk/filesystem/backend_inmemory.go:630
↓ 105 callers
Method
InvokableRun
InvokableRun executes the tool with arguments encoded as a JSON string.
components/tool/interface.go:46
↓ 101 callers
Method
Error
()
compose/error.go:92
↓ 101 callers
Function
WithCheckPointID
WithCheckPointID sets the checkpoint ID to load from and write to by default.
compose/checkpoint.go:74
↓ 96 callers
Function
NewInMemoryBackend
NewInMemoryBackend creates a new in-memory backend.
adk/filesystem/backend_inmemory.go:44
↓ 89 callers
Method
set
(path string, content string)
adk/middlewares/agentsmd/agentsmd_test.go:41
↓ 88 callers
Method
BeforeModelRewriteState
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 callers
Function
NewGraph
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 callers
Method
Info
(ctx context.Context)
components/tool/interface.go:33
↓ 85 callers
Function
newAndRunTurnLoop
(ctx context.Context, cfg TurnLoopConfig[T, M])
adk/turn_loop_test.go:163
↓ 84 callers
Function
NewContentBlock
NewContentBlock creates a new ContentBlock with the given content.
schema/agentic_message.go:607
↓ 81 callers
Method
Name
(ctx context.Context)
adk/interface.go:454
↓ 80 callers
Method
End
End returns the WorkflowNode representing END node.
compose/workflow.go:165
↓ 79 callers
Function
NewWorkflow
NewWorkflow creates a new Workflow.
compose/workflow.go:61
↓ 75 callers
Function
NewChain
NewChain create a chain with input/output type.
compose/chain.go:37
↓ 74 callers
Function
WithAgentCancelMode
WithAgentCancelMode sets the cancel mode for the agent cancel operation.
adk/cancel.go:104
↓ 72 callers
Function
NewParamsOneOfByParams
NewParamsOneOfByParams creates a ParamsOneOf with map[string]*ParameterInfo.
schema/tool.go:290
↓ 71 callers
Function
ToolMessage
ToolMessage represents a message with Role "tool".
schema/message.go:1145
↓ 65 callers
Method
Query
Query is a convenience method that starts a new execution with a single user query string.
adk/runner.go:108
↓ 64 callers
Function
WithCancel
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 callers
Function
ExtractInterruptInfo
ExtractInterruptInfo extracts InterruptInfo from an error if present.
compose/interrupt.go:299
↓ 59 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mock/adk/Agent_mock.go:56
↓ 59 callers
Function
WithOutputKey
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 callers
Function
UserAgenticMessage
UserAgenticMessage represents a message with AgenticRoleType "user".
schema/agentic_message.go:575
↓ 56 callers
Method
AppendLambda
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 callers
Method
AddLambda
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 callers
Function
newMemBackend
()
adk/middlewares/agentsmd/agentsmd_test.go:37
↓ 52 callers
Function
NewTypedChatModelAgent
NewTypedChatModelAgent creates a new TypedChatModelAgent with the given config.
adk/chatmodel.go:489
↓ 52 callers
Function
WithCheckPointID
WithCheckPointID sets the checkpoint ID used for interruption persistence.
adk/interrupt.go:192
↓ 52 callers
Function
agenticMsg
(text string)
adk/agentic_integration_test.go:36
↓ 51 callers
Function
ProcessState
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 callers
Function
PtrOf
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 callers
Function
SystemMessage
SystemMessage represents a message with Role "system".
schema/message.go:1105
↓ 50 callers
Method
Write
Write creates or updates file content. Returns: - error: Error if the write operation fails
adk/filesystem/backend.go:276
↓ 49 callers
Function
StreamReaderWithConvert
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 callers
Function
waitOrFail
(t *testing.T, ch <-chan struct{}, msg string)
adk/turn_loop_test.go:198
↓ 47 callers
Function
NewTurnLoop
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 callers
Method
Read
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 callers
Function
ConcatMessages
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 callers
Method
GrepRaw
GrepRaw returns matches for the given pattern.
adk/filesystem/backend_inmemory.go:201
↓ 45 callers
Method
Read
Read reads file content with offset and limit.
adk/filesystem/backend_inmemory.go:136
↓ 44 callers
Function
NewAsyncIteratorPair
NewAsyncIteratorPair returns a paired async iterator and generator that share the same underlying channel.
adk/utils.go:57
↓ 44 callers
Method
String
String returns the string representation of Reasoning.
schema/agentic_message.go:2049
↓ 43 callers
Function
New
New creates tool reduction middleware from config
adk/middlewares/reduction/reduction.go:349
↓ 43 callers
Function
NewTypedRunner
NewTypedRunner creates a new TypedRunner with the given config.
adk/runner.go:94
↓ 43 callers
Function
SelectPrompt
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 callers
Function
WithNodeName
WithNodeName sets the name of the node.
compose/graph_add_node_options.go:50
↓ 43 callers
Function
ti
(name, desc string)
adk/middlewares/dynamictool/toolsearch/toolsearch_test.go:50
↓ 42 callers
Function
getRunCtx
(ctx context.Context)
adk/runctx.go:374
↓ 41 callers
Method
Needed
(ctx context.Context, info *RunInfo, timing CallbackTiming)
internal/callbacks/interface.go:53
↓ 41 callers
Function
NewToolNode
NewToolNode creates a new ToolsNode. e.g. conf := &ToolsNodeConfig{ Tools: []tool.BaseTool{invokableTool1, streamableTool2}, } toolsNode, err :=
compose/tool_node.go:238
↓ 40 callers
Function
NewHandlerBuilder
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 callers
Function
setupTestBackend
setupTestBackend creates a test backend with some initial files
adk/middlewares/filesystem/filesystem_test.go:37
↓ 38 callers
Method
Next
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 callers
Method
Resume
(ctx context.Context, info *ResumeInfo, opts ...AgentRunOption)
adk/interface.go:484
↓ 38 callers
Function
WithCallbacks
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 callers
Function
WithCheckPointStore
WithCheckPointStore sets the checkpoint store implementation for a graph.
compose/checkpoint.go:60
↓ 38 callers
Function
WithGenLocalState
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 callers
Function
NewAgentTool
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 callers
Method
Unmarshal
(data []byte, v any)
compose/checkpoint.go:56
↓ 36 callers
Function
ConcatAgenticMessages
ConcatAgenticMessages concatenates a list of AgenticMessage chunks into a single AgenticMessage.
schema/agentic_message.go:901
↓ 36 callers
Method
Error
()
schema/stream.go:60
↓ 36 callers
Method
ResumeWithParams
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 callers
Method
String
String returns the string representation of the graph run type.
compose/graph.go:53
↓ 36 callers
Function
getFilesystemTools
(_ context.Context, middlewareConfig *MiddlewareConfig)
adk/middlewares/filesystem/filesystem.go:427
↓ 35 callers
Method
AddBranch
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 callers
Method
Copy
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 callers
Method
OnStartFn
OnStartFn sets the handler for the start timing.
callbacks/handler_builder.go:114
↓ 35 callers
Function
newCancelContext
()
adk/cancel.go:332
↓ 34 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mock/components/model/ChatModel_mock.go:57
↓ 34 callers
Method
Marshal
(v any)
compose/checkpoint.go:55
↓ 34 callers
Function
ToField
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 callers
Function
newInMemoryStore
()
compose/checkpoint_test.go:53
↓ 33 callers
Method
Set
(ctx context.Context, checkPointID string, checkPoint []byte)
internal/core/interrupt.go:29
↓ 33 callers
Function
WithImmediate
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 callers
Function
WithToolName
WithToolName returns a ToolMessageOption that sets the tool call name.
schema/message.go:1138
next →
1–100 of 3,994, ranked by callers