Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudwego/eino
/ functions
Functions
3,994 in github.com/cloudwego/eino
⨍
Functions
3,994
◇
Types & classes
1,204
↓ 1 callers
Method
AddEmbedding
AddEmbedding adds an embedding node to the parallel. eg. embeddingNode, err := openai.NewEmbedder(ctx, &openai.EmbeddingConfig{ Model: "text-embed
compose/chain_parallel.go:163
↓ 1 callers
Method
AddEmbeddingNode
AddEmbeddingNode adds an embedding node and returns it.
compose/workflow.go:129
↓ 1 callers
Method
AddIndexerNode
AddIndexerNode adds an indexer node to the workflow and returns it.
compose/workflow.go:135
↓ 1 callers
Method
AddPassthrough
AddPassthrough adds a passthrough node to the parallel. eg. p.AddPassthrough("output_key01")
compose/chain_parallel.go:230
↓ 1 callers
Method
AddToolsNode
AddToolsNode adds a tools node to the parallel. eg. toolsNode, err := compose.NewToolNode(ctx, &compose.ToolsNodeConfig{ Tools: []tool.BaseTool{..
compose/chain_parallel.go:124
↓ 1 callers
Method
AfterAgent
AfterAgent is called after the agent run reaches a successful terminal state. Successful terminal states are: final answer (model response with no too
adk/handler.go:158
↓ 1 callers
Method
AppendAgenticModel
AppendAgenticModel add a agentic.Model node to the chain. e.g. model, err := openai.NewAgenticModel(ctx, config) if err != nil {...} chain.AppendA
compose/chain.go:183
↓ 1 callers
Method
AppendIndexer
AppendIndexer add an Indexer node to the chain. Indexer is a node that can store documents. e.g. vectorStoreImpl, err := vikingdb.NewVectorStorer(ct
compose/chain.go:327
↓ 1 callers
Method
AppendLoader
AppendLoader adds a Loader node to the chain. e.g. loader, err := file.NewFileLoader(ctx, &file.FileLoaderConfig{}) if err != nil {...} chain.Appe
compose/chain.go:309
↓ 1 callers
Method
AppendToolsNode
AppendToolsNode add a ToolsNode node to the chain. e.g. toolsNode, err := compose.NewToolNode(ctx, &compose.ToolsNodeConfig{ Tools: []tools.BaseTo
compose/chain.go:224
↓ 1 callers
Function
BuildAgentCallback
BuildAgentCallback builds a callback handler for agent. e.g. callback := BuildAgentCallback(modelHandler, toolHandler) agent, err := react.NewAgent
flow/agent/react/callback.go:31
↓ 1 callers
Method
Chain
Chain sets the chain handler for the handler helper, which will be called when the chain is executed.
utils/callbacks/template.go:171
↓ 1 callers
Method
Close
Close safely closes the StreamReader. It should be called only once, as multiple calls may not work as expected. Notice: always remember to call Close
schema/stream.go:229
↓ 1 callers
Function
CollectableLambdaWithOption
CollectableLambdaWithOption creates a Lambda with collectable lambda function and options.
compose/types_lambda.go:130
↓ 1 callers
Function
ConvLoaderCallbackInput
ConvLoaderCallbackInput converts the callback input to the loader callback input.
components/document/callback_extra_loader.go:46
↓ 1 callers
Function
ConvLoaderCallbackOutput
ConvLoaderCallbackOutput converts the callback output to the loader callback output.
components/document/callback_extra_loader.go:60
↓ 1 callers
Function
ConvTransformerCallbackInput
ConvTransformerCallbackInput converts the callback input to the transformer callback input.
components/document/callback_extra_transformer.go:43
↓ 1 callers
Function
ConvTransformerCallbackOutput
ConvTransformerCallbackOutput converts the callback output to the transformer callback output.
components/document/callback_extra_transformer.go:57
↓ 1 callers
Function
CopyMap
CopyMap copies a map to a new map.
internal/generic/generic.go:84
↓ 1 callers
Method
DSLInfo
DSLInfo returns the dsl info of the document. can use doc.WithDSLInfo() to set the dsl info.
schema/document.go:155
↓ 1 callers
Method
DenseVector
DenseVector returns the dense vector of the document. can use doc.WithDenseVector() to set the dense vector.
schema/document.go:182
↓ 1 callers
Method
Edit
Edit replaces string occurrences in a file. Returns: - error: Error if file does not exist, OldString is empty, or OldString is not found
adk/filesystem/backend.go:282
↓ 1 callers
Method
EmbedStrings
(ctx context.Context, texts []string, opts ...Option)
components/embedding/interface.go:38
↓ 1 callers
Function
EnsureRunInfo
(ctx context.Context, typ string, comp components.Component)
internal/callbacks/inject.go:36
↓ 1 callers
Method
Error
()
compose/interrupt.go:318
↓ 1 callers
Method
ExecuteStreaming
(ctx context.Context, input *ExecuteRequest)
adk/filesystem/backend.go:303
↓ 1 callers
Method
ExportGraph
ExportGraph exports the underlying graph from MultiAgent, along with the []compose.GraphAddNodeOpt to be used when adding this graph to another graph.
flow/agent/multiagent/host/types.go:66
↓ 1 callers
Method
ExtraInfo
ExtraInfo returns the extra info of the document. can use doc.WithExtraInfo() to set the extra info.
schema/document.go:126
↓ 1 callers
Function
FakeWithEnhancedStreamOption
(prefix string)
components/tool/utils/streamable_func_test.go:242
↓ 1 callers
Function
FakeWithToolOption
(s string)
components/tool/utils/streamable_func_test.go:129
↓ 1 callers
Method
Format
Format returns the agentic messages after rendering by the given formatType. It formats only the user input fields (UserInputText, UserInputImage, Use
schema/agentic_message.go:742
↓ 1 callers
Function
FromInterruptContexts
FromInterruptContexts converts user-facing interrupt contexts to an interrupt signal.
adk/interrupt.go:187
↓ 1 callers
Method
GOOD
()
compose/workflow_test.go:1109
↓ 1 callers
Method
Generate
(_ context.Context, _ []*schema.Message, _ ...model.Option)
adk/cancel_edge_test.go:1358
↓ 1 callers
Method
Generate
(_ context.Context, input []*schema.Message, _ ...model.Option)
adk/cancel_edge_test.go:2034
↓ 1 callers
Method
Generate
(ctx context.Context, input []*schema.Message, opts ...model.Option)
adk/cancel_test.go:1849
↓ 1 callers
Method
Generate
(ctx context.Context, msgs []*schema.Message, opts ...model.Option)
adk/cancel_test.go:2688
↓ 1 callers
Method
Generate
(ctx context.Context, input []*schema.Message, opts ...model.Option)
adk/agent_tool_test.go:610
↓ 1 callers
Method
Generate
(ctx context.Context, input []*schema.Message, _ ...model.Option)
adk/agent_tool_test.go:629
↓ 1 callers
Method
Generate
(_ context.Context, _ []*schema.Message, _ ...model.Option)
adk/wrappers_test.go:1097
↓ 1 callers
Method
Generate
(_ context.Context, _ []*schema.AgenticMessage, _ ...model.Option)
adk/wrappers_test.go:1695
↓ 1 callers
Method
Generate
(_ context.Context, _ []*schema.AgenticMessage, _ ...model.Option)
adk/agentic_react_test.go:56
↓ 1 callers
Method
Generate
(ctx context.Context, input []*schema.Message, opts ...model.Option)
adk/prebuilt/planexecute/plan_execute_test.go:982
↓ 1 callers
Method
Generate
(_ context.Context, _ []*schema.AgenticMessage, _ ...model.Option)
adk/prebuilt/deep/deep_test.go:43
↓ 1 callers
Method
Get
(_ context.Context, key string)
adk/interrupt.go:330
↓ 1 callers
Function
GetCommonOptions
GetCommonOptions extracts standard [Options] from opts, merging onto base. Implementors must call this inside Store: func (idx *MyIndexer) Store(ctx
components/indexer/option.go:72
↓ 1 callers
Function
GetCommonOptions
GetCommonOptions extract embedding Options from Option list, optionally providing a base Options with default values. eg. defaultModelName := "defau
components/embedding/option.go:49
↓ 1 callers
Function
GetCommonOptions
GetCommonOptions extracts standard [Options] from opts, merging onto base. Implementors must call this to honour caller-provided options: func (r *M
components/retriever/option.go:107
↓ 1 callers
Function
GetConcatFunc
(typ reflect.Type)
internal/concat.go:75
↓ 1 callers
Function
GetImplSpecificOptions
GetImplSpecificOptions returns the implementation-specific options from the given agent options.
flow/agent/agent_option.go:55
↓ 1 callers
Function
GetImplSpecificOptions
GetImplSpecificOptions extracts the implementation specific options from Option list, optionally providing a base options with default values.
components/prompt/option.go:36
↓ 1 callers
Function
GetImplSpecificOptions
GetImplSpecificOptions extracts implementation-specific options from an Option list, merging them onto base. If base is nil, a zero-value T is used.
components/model/option.go:239
↓ 1 callers
Function
GetImplSpecificOptions
GetImplSpecificOptions provides Parser author the ability to extract their own custom options from the unified Option type. T: the type of the impl sp
components/document/parser/option.go:100
↓ 1 callers
Function
GetImplSpecificOptions
GetImplSpecificOptions extract the implementation specific options from AgentRunOption list, optionally providing a base options with default values.
adk/call_option.go:99
↓ 1 callers
Method
GetInterruptContexts
()
internal/core/interrupt.go:184
↓ 1 callers
Function
GetLoaderImplSpecificOptions
GetLoaderImplSpecificOptions provides Loader author the ability to extract their own custom options from the unified LoaderOption type. T: the type of
components/document/option.go:67
↓ 1 callers
Method
GetParsers
GetParsers returns a copy of the registered parsers. It is safe to modify the returned parsers.
components/document/parser/ext_parser.go:85
↓ 1 callers
Function
GetTransformerImplSpecificOptions
GetTransformerImplSpecificOptions provides Transformer author the ability to extract their own custom options from the unified TransformerOption type.
components/document/option.go:151
↓ 1 callers
Method
GetType
GetType returns the type of the chat template (Default).
components/prompt/chat_template.go:82
↓ 1 callers
Method
GobDecode
(b []byte)
adk/react.go:215
↓ 1 callers
Method
GrepRaw
GrepRaw searches for content matching the specified pattern in files. Returns: - []GrepMatch: List of all matching results - error: Error if the sear
adk/filesystem/backend.go:263
↓ 1 callers
Function
InferEnhancedStreamTool
InferEnhancedStreamTool creates an [tool.EnhancedStreamableTool] by inferring the parameter JSON schema from type T. The function streams [schema.Tool
components/tool/utils/streamable_func.go:170
↓ 1 callers
Function
InferEnhancedTool
InferEnhancedTool creates an [tool.EnhancedInvokableTool] by inferring the parameter JSON schema from type T. The function returns a [schema.ToolResul
components/tool/utils/invokable_func.go:75
↓ 1 callers
Function
InferOptionableStreamTool
InferOptionableStreamTool is like [InferStreamTool] but the function also receives [tool.Option] values passed by ToolsNode at call time.
components/tool/utils/streamable_func.go:50
↓ 1 callers
Function
InferOptionableTool
InferOptionableTool is like [InferTool] but the function also receives [tool.Option] values passed by ToolsNode at call time.
components/tool/utils/invokable_func.go:57
↓ 1 callers
Method
Info
(ctx context.Context)
flow/agent/react/option_test.go:407
↓ 1 callers
Method
Info
(_ context.Context)
adk/chatmodel_test.go:1920
↓ 1 callers
Method
Info
(_ context.Context)
adk/chatmodel_test.go:2025
↓ 1 callers
Method
Info
(_ context.Context)
adk/chatmodel_test.go:2043
↓ 1 callers
Method
Info
(_ context.Context)
adk/handler_test.go:1025
↓ 1 callers
Method
Info
(_ context.Context)
adk/middlewares/dynamictool/toolsearch/toolsearch.go:391
↓ 1 callers
Method
Invoke
Invoke works like `ping => pong`.
compose/runnable.go:167
↓ 1 callers
Method
IsCallbacksEnabled
()
components/types.go:51
↓ 1 callers
Method
IsCallbacksEnabled
IsCallbacksEnabled checks if the callbacks are enabled for the chat template.
components/prompt/agentic_chat_template.go:82
↓ 1 callers
Method
IsClosed
()
adk/turn_buffer.go:90
↓ 1 callers
Method
Lambda
Lambda sets the lambda handler for the handler helper, which will be called when the lambda is executed.
utils/callbacks/template.go:177
↓ 1 callers
Method
MarshalJSON
()
schema/tool.go:163
↓ 1 callers
Method
MultiModalRead
(ctx context.Context, req *MultiModalReadRequest)
adk/filesystem/backend.go:236
↓ 1 callers
Method
Name
(_ context.Context)
adk/prebuilt/planexecute/plan_execute.go:308
↓ 1 callers
Method
Name
(context.Context)
adk/prebuilt/deep/deep_test.go:259
↓ 1 callers
Method
Name
(context.Context)
adk/prebuilt/deep/deep_test.go:273
↓ 1 callers
Function
NewAgenticToolsNode
NewAgenticToolsNode creates a new AgenticToolsNode. e.g. conf := &ToolsNodeConfig{ Tools: []tool.BaseTool{invokableTool1, streamableTool2}, } to
compose/agentic_tools_node.go:32
↓ 1 callers
Function
NewContentBlockChunk
NewContentBlockChunk creates a new ContentBlock with the given content and streaming metadata.
schema/agentic_message.go:655
↓ 1 callers
Function
NewEnhancedStreamTool
NewEnhancedStreamTool creates an [tool.EnhancedStreamableTool] from an explicit [schema.ToolInfo] and a typed streaming function.
components/tool/utils/streamable_func.go:191
↓ 1 callers
Function
NewEnhancedTool
NewEnhancedTool creates an [tool.EnhancedInvokableTool] from an explicit [schema.ToolInfo] and a function that returns [schema.ToolResult].
components/tool/utils/invokable_func.go:248
↓ 1 callers
Function
NewExitAction
NewExitAction creates an action that signals the agent to exit. NOT RECOMMENDED: Agent transfer with full context sharing between agents has not prov
adk/interface.go:342
↓ 1 callers
Function
NewIndexer
NewIndexer creates a new parent indexer that handles document splitting and sub-document management. Parameters: - ctx: context for the operation - c
flow/indexer/parent/parent.go:89
↓ 1 callers
Function
NewMockToolCallingChatModel
NewMockToolCallingChatModel creates a new mock instance.
internal/mock/components/model/ChatModel_mock.go:192
↓ 1 callers
Function
NewMockTransformer
NewMockTransformer creates a new mock instance.
internal/mock/components/document/document_mock.go:87
↓ 1 callers
Function
NewRetriever
NewRetriever creates a new parent retriever that handles retrieving original documents based on sub-document search results. Parameters: - ctx: conte
flow/retriever/parent/parent.go:70
↓ 1 callers
Function
NewRetriever
NewRetriever creates a router retriever. router retriever is useful when you want to retrieve documents from multiple retrievers with different querie
flow/retriever/router/router.go:77
↓ 1 callers
Function
NewStreamChainBranch
NewStreamChainBranch creates a new ChainBranch instance based on a given stream condition. It takes a generic type T and a StreamGraphBranchCondition
compose/chain_branch.go:123
↓ 1 callers
Function
NewTyped
NewTyped constructs and returns the filesystem middleware as a TypedChatModelAgentMiddleware[M]. This is the generic constructor that supports both *
adk/middlewares/filesystem/filesystem.go:354
↓ 1 callers
Function
NewTypedFinalizer
NewTypedFinalizer creates a new TypedFinalizerBuilder. Handlers run in registration order, and the summary message is post-processed as DefaultFinali
adk/middlewares/summarization/finalizer_builder.go:83
↓ 1 callers
Method
OnFinish
(ctx context.Context, info *GraphInfo)
compose/introspect.go:56
↓ 1 callers
Function
RegisterValuesMergeFunc
(fn func([]T) (T, error))
internal/merge.go:28
↓ 1 callers
Function
RegisterValuesMergeFunc
RegisterValuesMergeFunc registers a function to merge outputs from multiple nodes when fan-in. It's used to define how to merge for a specific type. F
compose/values_merge.go:29
↓ 1 callers
Method
Run
(ctx context.Context, _ *AgentInput, opts ...AgentRunOption)
adk/workflow.go:70
↓ 1 callers
Method
Run
(ctx context.Context, messages []M, opts ...AgentRunOption)
adk/runner.go:102
↓ 1 callers
Method
Score
Score returns the score of the document. can use doc.WithScore() to set the score.
schema/document.go:99
← previous
next →
1,201–1,300 of 3,994, ranked by callers