MCPcopy Create free account

hub / github.com/cloudwego/eino / functions

Functions3,994 in github.com/cloudwego/eino

↓ 1 callersMethodAddEmbedding
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 callersMethodAddEmbeddingNode
AddEmbeddingNode adds an embedding node and returns it.
compose/workflow.go:129
↓ 1 callersMethodAddIndexerNode
AddIndexerNode adds an indexer node to the workflow and returns it.
compose/workflow.go:135
↓ 1 callersMethodAddPassthrough
AddPassthrough adds a passthrough node to the parallel. eg. p.AddPassthrough("output_key01")
compose/chain_parallel.go:230
↓ 1 callersMethodAddToolsNode
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 callersMethodAfterAgent
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 callersMethodAppendAgenticModel
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 callersMethodAppendIndexer
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 callersMethodAppendLoader
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 callersMethodAppendToolsNode
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 callersFunctionBuildAgentCallback
BuildAgentCallback builds a callback handler for agent. e.g. callback := BuildAgentCallback(modelHandler, toolHandler) agent, err := react.NewAgent
flow/agent/react/callback.go:31
↓ 1 callersMethodChain
Chain sets the chain handler for the handler helper, which will be called when the chain is executed.
utils/callbacks/template.go:171
↓ 1 callersMethodClose
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 callersFunctionCollectableLambdaWithOption
CollectableLambdaWithOption creates a Lambda with collectable lambda function and options.
compose/types_lambda.go:130
↓ 1 callersFunctionConvLoaderCallbackInput
ConvLoaderCallbackInput converts the callback input to the loader callback input.
components/document/callback_extra_loader.go:46
↓ 1 callersFunctionConvLoaderCallbackOutput
ConvLoaderCallbackOutput converts the callback output to the loader callback output.
components/document/callback_extra_loader.go:60
↓ 1 callersFunctionConvTransformerCallbackInput
ConvTransformerCallbackInput converts the callback input to the transformer callback input.
components/document/callback_extra_transformer.go:43
↓ 1 callersFunctionConvTransformerCallbackOutput
ConvTransformerCallbackOutput converts the callback output to the transformer callback output.
components/document/callback_extra_transformer.go:57
↓ 1 callersFunctionCopyMap
CopyMap copies a map to a new map.
internal/generic/generic.go:84
↓ 1 callersMethodDSLInfo
DSLInfo returns the dsl info of the document. can use doc.WithDSLInfo() to set the dsl info.
schema/document.go:155
↓ 1 callersMethodDenseVector
DenseVector returns the dense vector of the document. can use doc.WithDenseVector() to set the dense vector.
schema/document.go:182
↓ 1 callersMethodEdit
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 callersMethodEmbedStrings
(ctx context.Context, texts []string, opts ...Option)
components/embedding/interface.go:38
↓ 1 callersFunctionEnsureRunInfo
(ctx context.Context, typ string, comp components.Component)
internal/callbacks/inject.go:36
↓ 1 callersMethodError
()
compose/interrupt.go:318
↓ 1 callersMethodExecuteStreaming
(ctx context.Context, input *ExecuteRequest)
adk/filesystem/backend.go:303
↓ 1 callersMethodExportGraph
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 callersMethodExtraInfo
ExtraInfo returns the extra info of the document. can use doc.WithExtraInfo() to set the extra info.
schema/document.go:126
↓ 1 callersFunctionFakeWithEnhancedStreamOption
(prefix string)
components/tool/utils/streamable_func_test.go:242
↓ 1 callersFunctionFakeWithToolOption
(s string)
components/tool/utils/streamable_func_test.go:129
↓ 1 callersMethodFormat
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 callersFunctionFromInterruptContexts
FromInterruptContexts converts user-facing interrupt contexts to an interrupt signal.
adk/interrupt.go:187
↓ 1 callersMethodGOOD
()
compose/workflow_test.go:1109
↓ 1 callersMethodGenerate
(_ context.Context, _ []*schema.Message, _ ...model.Option)
adk/cancel_edge_test.go:1358
↓ 1 callersMethodGenerate
(_ context.Context, input []*schema.Message, _ ...model.Option)
adk/cancel_edge_test.go:2034
↓ 1 callersMethodGenerate
(ctx context.Context, input []*schema.Message, opts ...model.Option)
adk/cancel_test.go:1849
↓ 1 callersMethodGenerate
(ctx context.Context, msgs []*schema.Message, opts ...model.Option)
adk/cancel_test.go:2688
↓ 1 callersMethodGenerate
(ctx context.Context, input []*schema.Message, opts ...model.Option)
adk/agent_tool_test.go:610
↓ 1 callersMethodGenerate
(ctx context.Context, input []*schema.Message, _ ...model.Option)
adk/agent_tool_test.go:629
↓ 1 callersMethodGenerate
(_ context.Context, _ []*schema.Message, _ ...model.Option)
adk/wrappers_test.go:1097
↓ 1 callersMethodGenerate
(_ context.Context, _ []*schema.AgenticMessage, _ ...model.Option)
adk/wrappers_test.go:1695
↓ 1 callersMethodGenerate
(_ context.Context, _ []*schema.AgenticMessage, _ ...model.Option)
adk/agentic_react_test.go:56
↓ 1 callersMethodGenerate
(ctx context.Context, input []*schema.Message, opts ...model.Option)
adk/prebuilt/planexecute/plan_execute_test.go:982
↓ 1 callersMethodGenerate
(_ context.Context, _ []*schema.AgenticMessage, _ ...model.Option)
adk/prebuilt/deep/deep_test.go:43
↓ 1 callersMethodGet
(_ context.Context, key string)
adk/interrupt.go:330
↓ 1 callersFunctionGetCommonOptions
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 callersFunctionGetCommonOptions
GetCommonOptions extract embedding Options from Option list, optionally providing a base Options with default values. eg. defaultModelName := "defau
components/embedding/option.go:49
↓ 1 callersFunctionGetCommonOptions
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 callersFunctionGetConcatFunc
(typ reflect.Type)
internal/concat.go:75
↓ 1 callersFunctionGetImplSpecificOptions
GetImplSpecificOptions returns the implementation-specific options from the given agent options.
flow/agent/agent_option.go:55
↓ 1 callersFunctionGetImplSpecificOptions
GetImplSpecificOptions extracts the implementation specific options from Option list, optionally providing a base options with default values.
components/prompt/option.go:36
↓ 1 callersFunctionGetImplSpecificOptions
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 callersFunctionGetImplSpecificOptions
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 callersFunctionGetImplSpecificOptions
GetImplSpecificOptions extract the implementation specific options from AgentRunOption list, optionally providing a base options with default values.
adk/call_option.go:99
↓ 1 callersMethodGetInterruptContexts
()
internal/core/interrupt.go:184
↓ 1 callersFunctionGetLoaderImplSpecificOptions
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 callersMethodGetParsers
GetParsers returns a copy of the registered parsers. It is safe to modify the returned parsers.
components/document/parser/ext_parser.go:85
↓ 1 callersFunctionGetTransformerImplSpecificOptions
GetTransformerImplSpecificOptions provides Transformer author the ability to extract their own custom options from the unified TransformerOption type.
components/document/option.go:151
↓ 1 callersMethodGetType
GetType returns the type of the chat template (Default).
components/prompt/chat_template.go:82
↓ 1 callersMethodGobDecode
(b []byte)
adk/react.go:215
↓ 1 callersMethodGrepRaw
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 callersFunctionInferEnhancedStreamTool
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 callersFunctionInferEnhancedTool
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 callersFunctionInferOptionableStreamTool
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 callersFunctionInferOptionableTool
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 callersMethodInfo
(ctx context.Context)
flow/agent/react/option_test.go:407
↓ 1 callersMethodInfo
(_ context.Context)
adk/chatmodel_test.go:1920
↓ 1 callersMethodInfo
(_ context.Context)
adk/chatmodel_test.go:2025
↓ 1 callersMethodInfo
(_ context.Context)
adk/chatmodel_test.go:2043
↓ 1 callersMethodInfo
(_ context.Context)
adk/handler_test.go:1025
↓ 1 callersMethodInfo
(_ context.Context)
adk/middlewares/dynamictool/toolsearch/toolsearch.go:391
↓ 1 callersMethodInvoke
Invoke works like `ping => pong`.
compose/runnable.go:167
↓ 1 callersMethodIsCallbacksEnabled
()
components/types.go:51
↓ 1 callersMethodIsCallbacksEnabled
IsCallbacksEnabled checks if the callbacks are enabled for the chat template.
components/prompt/agentic_chat_template.go:82
↓ 1 callersMethodIsClosed
()
adk/turn_buffer.go:90
↓ 1 callersMethodLambda
Lambda sets the lambda handler for the handler helper, which will be called when the lambda is executed.
utils/callbacks/template.go:177
↓ 1 callersMethodMarshalJSON
()
schema/tool.go:163
↓ 1 callersMethodMultiModalRead
(ctx context.Context, req *MultiModalReadRequest)
adk/filesystem/backend.go:236
↓ 1 callersMethodName
(_ context.Context)
adk/prebuilt/planexecute/plan_execute.go:308
↓ 1 callersMethodName
(context.Context)
adk/prebuilt/deep/deep_test.go:259
↓ 1 callersMethodName
(context.Context)
adk/prebuilt/deep/deep_test.go:273
↓ 1 callersFunctionNewAgenticToolsNode
NewAgenticToolsNode creates a new AgenticToolsNode. e.g. conf := &ToolsNodeConfig{ Tools: []tool.BaseTool{invokableTool1, streamableTool2}, } to
compose/agentic_tools_node.go:32
↓ 1 callersFunctionNewContentBlockChunk
NewContentBlockChunk creates a new ContentBlock with the given content and streaming metadata.
schema/agentic_message.go:655
↓ 1 callersFunctionNewEnhancedStreamTool
NewEnhancedStreamTool creates an [tool.EnhancedStreamableTool] from an explicit [schema.ToolInfo] and a typed streaming function.
components/tool/utils/streamable_func.go:191
↓ 1 callersFunctionNewEnhancedTool
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 callersFunctionNewExitAction
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 callersFunctionNewIndexer
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 callersFunctionNewMockToolCallingChatModel
NewMockToolCallingChatModel creates a new mock instance.
internal/mock/components/model/ChatModel_mock.go:192
↓ 1 callersFunctionNewMockTransformer
NewMockTransformer creates a new mock instance.
internal/mock/components/document/document_mock.go:87
↓ 1 callersFunctionNewRetriever
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 callersFunctionNewRetriever
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 callersFunctionNewStreamChainBranch
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 callersFunctionNewTyped
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 callersFunctionNewTypedFinalizer
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 callersMethodOnFinish
(ctx context.Context, info *GraphInfo)
compose/introspect.go:56
↓ 1 callersFunctionRegisterValuesMergeFunc
(fn func([]T) (T, error))
internal/merge.go:28
↓ 1 callersFunctionRegisterValuesMergeFunc
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 callersMethodRun
(ctx context.Context, _ *AgentInput, opts ...AgentRunOption)
adk/workflow.go:70
↓ 1 callersMethodRun
(ctx context.Context, messages []M, opts ...AgentRunOption)
adk/runner.go:102
↓ 1 callersMethodScore
Score returns the score of the document. can use doc.WithScore() to set the score.
schema/document.go:99
← previousnext →1,201–1,300 of 3,994, ranked by callers