MCPcopy Create free account

hub / github.com/cloudwego/eino / functions

Functions3,994 in github.com/cloudwego/eino

↓ 11 callersFunctionnewStreamingExecuteTool
(sb filesystem.StreamingShell, name string, desc string)
adk/middlewares/filesystem/filesystem.go:1021
↓ 11 callersFunctionselectToolDesc
selectToolDesc returns the custom description if provided, otherwise selects the appropriate i18n description based on the current language setting.
adk/middlewares/filesystem/filesystem.go:1229
↓ 11 callersFunctionselectToolName
selectToolName returns the custom tool name if provided, otherwise returns the default name.
adk/middlewares/filesystem/filesystem.go:1240
↓ 11 callersFunctiontoComponentNode
( node any, componentType component, invoke Invoke[I, O, TOption], stream Stream[I, O, TOption], collect
compose/component_to_graph_node.go:29
↓ 11 callersFunctionwrapIterWithCancelCtx
wrapIterWithCancelCtx wraps an iterator with cancel lifecycle management. It calls markDone when the inner iterator is fully drained, ensuring the can
adk/cancel.go:806
↓ 10 callersMethodAddInputWithOptions
AddInputWithOptions creates a dependency between nodes with custom configuration options. It allows fine-grained control over both data flow and execu
compose/workflow.go:278
↓ 10 callersMethodAddLambda
AddLambda adds a Lambda node to the branch. eg. lambdaFunc := func(ctx context.Context, in string, opts ...any) (out string, err error) { // logic
compose/chain_branch.go:236
↓ 10 callersFunctionAgentWithDeterministicTransferTo
AgentWithDeterministicTransferTo wraps an agent to transfer to given agents deterministically. NOT RECOMMENDED: Agent transfer with full context shar
adk/deterministic_transfer.go:43
↓ 10 callersMethodAppendGraph
AppendGraph add a AnyGraph node to the chain. AnyGraph can be a chain or a graph. e.g. graph := compose.NewGraph[string, string]() chain.AppendGrap
compose/chain.go:522
↓ 10 callersFunctionConcatItems
ConcatItems the caller should ensure len(items) > 1
internal/concat.go:91
↓ 10 callersMethodDesignateAgent
(name ...string)
adk/call_option.go:38
↓ 10 callersMethodDesignateNode
DesignateNode sets the key of the node to which the option will be applied. notice: only effective at the top graph. e.g. embeddingOption := compose.
compose/graph_call_options.go:133
↓ 10 callersFunctionGetComposeOptions
GetComposeOptions returns all compose options from the given agent options.
flow/agent/agent_option.go:31
↓ 10 callersFunctionInferTool
InferTool creates an [tool.InvokableTool] by inferring the parameter JSON schema from the fields and tags of the input type T. The tool automatically
components/tool/utils/invokable_func.go:46
↓ 10 callersMethodInfo
(_ context.Context)
adk/react_test.go:589
↓ 10 callersMethodInvokableRun
(ctx context.Context, argumentsInJSON string, _ ...tool.Option)
adk/middlewares/skill/skill.go:419
↓ 10 callersFunctionNew
New creates a supervisor-based multi-agent system with the given configuration. In the supervisor pattern, a designated supervisor agent coordinates
adk/prebuilt/supervisor/supervisor.go:101
↓ 10 callersFunctionParseTypeName
ParseTypeName returns the name of the type of the given value. It takes a reflect.Value as input and processes it to determine the underlying type. If
internal/generic/type_name.go:40
↓ 10 callersMethodSetAutomaticClose
()
schema/stream.go:369
↓ 10 callersMethodSummarize
(ctx context.Context, state *adk.TypedChatModelAgentState[M])
adk/middlewares/summarization/summarization.go:281
↓ 10 callersFunctionWithNoDirectDependency
WithNoDirectDependency creates a data mapping without establishing a direct execution dependency. The predecessor node will still complete before the
compose/workflow.go:257
↓ 10 callersFunctionWithToolOption
WithToolOption adds tool options to the ToolsNode.
compose/tool_node.go:49
↓ 10 callersFunctionagenticAssistantMessage
(text string)
adk/agentic_test.go:305
↓ 10 callersFunctionbuildPreservedSkillsText
(_ context.Context, messages []M, config *PreserveSkillsConfig)
adk/middlewares/summarization/finalizer_builder.go:309
↓ 10 callersFunctioncheckAssignable
(input, arg reflect.Type)
compose/utils.go:233
↓ 10 callersFunctioncopyTypedAgentEvent
copyTypedAgentEvent copies a TypedAgentEvent. If the MessageVariant is streaming, the MessageStream will be copied. RunPath will be deep copied. The r
adk/utils.go:237
↓ 10 callersFunctiongetAssistantTextContent
(msg M)
adk/middlewares/summarization/summarization.go:651
↓ 10 callersFunctiongetCancelContext
getCancelContext retrieves the cancelContext from the Go context, or nil.
adk/cancel.go:294
↓ 10 callersFunctiongetJointToolResult
(toolDetail *ToolDetail)
adk/middlewares/reduction/reduction.go:1464
↓ 10 callersFunctiongetUserMsgTextContent
(msg M)
adk/middlewares/summarization/summarization.go:1000
↓ 10 callersFunctionintPtr
(v int)
adk/middlewares/summarization/summarization_test.go:37
↓ 10 callersFunctionnewCancelRequestState
(opts []AgentCancelOption, now time.Time)
adk/turn_loop.go:87
↓ 10 callersFunctionnewToolResultOffloading
(ctx context.Context, config *toolResultOffloadingConfig)
adk/middlewares/filesystem/large_tool_result.go:42
↓ 10 callersFunctionnewToolResultOffloading
(_ context.Context, config *toolResultOffloadingConfig)
adk/middlewares/reduction/internal/large_tool_result.go:62
↓ 10 callersMethodreceiveCancel
()
adk/turn_loop.go:531
↓ 10 callersMethodrecv
()
schema/stream.go:743
↓ 10 callersFunctionrunnableLambda
(i Invoke[I, O, TOption], s Stream[I, O, TOption], c Collect[I, O, TOption], t Transform[I, O, TOption], enab
compose/runnable.go:65
↓ 10 callersMethodsetMode
(mode CancelMode)
adk/cancel.go:446
↓ 10 callersFunctiontoolResultToBlocks
toolResultToBlocks converts a ToolResult's multimodal parts into FunctionToolResultBlocks. This preserves all media types (text, image, audio, video,
adk/wrappers.go:641
↓ 9 callersMethodAddGraph
AddGraph adds a graph node to the parallel. It is useful when you want to use a graph or a chain as a node in the parallel. eg. graph, err := compos
compose/chain_parallel.go:221
↓ 9 callersMethodDesignateNodeWithPath
DesignateNodeWithPath sets the path of the node(s) to which the option will be applied. You can specify a node in the subgraph through `NodePath` to m
compose/graph_call_options.go:147
↓ 9 callersFunctionEnsureMessageID
EnsureMessageID assigns a UUID v4 if no message ID is present. Idempotent: if ID already set, no-op. Returns the (possibly newly created) Extra map.
adk/internal/message_id.go:53
↓ 9 callersMethodEquals
(other Address)
internal/core/address.go:55
↓ 9 callersMethodFormat
(ctx context.Context, vs map[string]any, opts ...Option)
components/prompt/interface.go:44
↓ 9 callersFunctionGetCurrentAddress
GetCurrentAddress returns the hierarchical address of the currently executing component. The address is a sequence of segments, each identifying a str
internal/core/address.go:102
↓ 9 callersFunctionGetRunLocalValue
GetRunLocalValue retrieves a value that was set during the current agent Run() invocation. The value is scoped to this specific execution and is not s
adk/handler.go:366
↓ 9 callersFunctionInterrupt
Interrupt pauses tool execution and signals the orchestration layer to checkpoint. The tool can be resumed later with optional data. Parameters: - ct
components/tool/interrupt.go:44
↓ 9 callersMethodList
(ctx context.Context)
adk/middlewares/skill/skill.go:67
↓ 9 callersFunctionNewFinalizer
NewFinalizer creates a new FinalizerBuilder that builds a FinalizeFunc by chaining handlers.
adk/middlewares/summarization/finalizer_builder.go:89
↓ 9 callersMethodPushFront
(values []T)
adk/turn_buffer.go:109
↓ 9 callersMethodSend
Send puts an item into the channel
internal/channel.go:37
↓ 9 callersFunctionSignalToPersistenceMaps
SignalToPersistenceMaps flattens an InterruptSignal tree into two maps suitable for persistence in a checkpoint.
internal/core/interrupt.go:327
↓ 9 callersMethodUnmarshal
(data []byte, v any)
internal/serialization/serialization.go:78
↓ 9 callersFunctionWithLambdaCallbackEnable
WithLambdaCallbackEnable enables the callback aspect of the lambda function.
compose/types_lambda.go:84
↓ 9 callersFunctionWithOnEOF
WithOnEOF registers a callback that fires once when the stream reaches EOF. The callback can inject an error or a value before the final io.EOF is ret
schema/stream.go:664
↓ 9 callersFunctionWithPushStrategy
WithPushStrategy provides dynamic push option resolution based on the current turn state. The callback receives the current turn's context and TurnCon
adk/turn_loop.go:1287
↓ 9 callersMethodWrapEnhancedInvokableToolCall
WrapEnhancedInvokableToolCall wraps an enhanced tool's synchronous execution with custom behavior. Return the input endpoint unchanged and nil error i
adk/handler.go:217
↓ 9 callersMethodaddEvent
(event *AgentEvent)
adk/runctx.go:243
↓ 9 callersFunctioncollectEvents
collectEvents drains all events from the iterator (non-streaming).
adk/message_id_test.go:56
↓ 9 callersFunctiongetToolCallsGeneric
getToolCallsGeneric extracts tool call info from an assistant message.
adk/middlewares/reduction/reduction.go:999
↓ 9 callersFunctionmakeStreamingEventWrapper
makeStreamingEventWrapper creates an agentEventWrapper with a streaming MessageOutput whose stream yields the given message then terminates with strea
adk/runctx_test.go:432
↓ 9 callersFunctionnewMockAgent
newMockAgent creates a new mock agent with the given name, description, and responses
adk/workflow_test.go:66
↓ 9 callersFunctionnewReadFileTool
(fs filesystem.Backend, name string, desc string)
adk/middlewares/filesystem/filesystem.go:605
↓ 9 callersFunctionnormalizePath
normalizePath normalizes a file path by ensuring it starts with "/" and removing trailing slashes.
adk/filesystem/backend_inmemory.go:690
↓ 9 callersFunctionparseFrontmatter
(data string)
adk/middlewares/skill/filesystem_backend.go:165
↓ 9 callersFunctionsnakeToCamel
snakeToCamel converts a snake_case string to CamelCase.
components/tool/utils/invokable_func.go:230
↓ 9 callersFunctionstreamWithMidError
(chunks []*schema.Message, err error)
adk/failover_chatmodel_test.go:66
↓ 9 callersFunctionwithComponentOption
(opts ...TOption)
compose/graph_call_options.go:240
↓ 9 callersFunctionwrapIterWithOnEnd
(ctx context.Context, iter *AsyncIterator[*AgentEvent])
adk/flow.go:591
↓ 8 callersMethodExportGraph
ExportGraph exports the underlying graph from Agent, along with the []compose.GraphAddNodeOpt to be used when adding this graph to another graph.
flow/agent/react/react.go:490
↓ 8 callersFunctionGetImplSpecificOptions
GetImplSpecificOptions provides tool author the ability to extract their own custom options from the unified Option type. T: the type of the impl spec
components/tool/option.go:62
↓ 8 callersFunctionGetSourceName
GetSourceName extracts the source stream name from a SourceEOF error. It returns the source name and a boolean indicating whether the error was a Sour
schema/stream.go:67
↓ 8 callersMethodInfo
(_ context.Context)
flow/agent/react/react_test.go:779
↓ 8 callersFunctionNew
New creates a new Deep agent instance with the provided configuration. This function initializes built-in tools, creates a task tool for subagent orch
adk/prebuilt/deep/deep.go:171
↓ 8 callersFunctionNewEventSenderToolWrapper
NewEventSenderToolWrapper returns a ChatModelAgentMiddleware that sends tool result events. By default, the framework places this before all user midd
adk/wrappers.go:559
↓ 8 callersFunctionSetRunLocalValue
SetRunLocalValue sets a key-value pair that persists for the duration of the current agent Run() invocation. The value is scoped to this specific exec
adk/handler.go:338
↓ 8 callersFunctionStreamableLambda
StreamableLambda creates a Lambda with streamable lambda function without options.
compose/types_lambda.go:119
↓ 8 callersMethodString
String converts an Address into its unique string representation.
internal/core/address.go:35
↓ 8 callersFunctionSystemAgenticMessage
SystemAgenticMessage represents a message with AgenticRoleType "system".
schema/agentic_message.go:567
↓ 8 callersFunctionWithLayerPayload
WithLayerPayload creates an option to attach layer-specific metadata to the interrupt's state.
internal/core/interrupt.go:78
↓ 8 callersFunctionWithPreemptTimeout
WithPreemptTimeout is like WithPreempt but adds a timeout. If the agent has not reached the safe point within timeout, the preemption escalates to imm
adk/turn_loop.go:1243
↓ 8 callersFunctionWithToolAliases
WithToolAliases sets the tool aliases for the ToolsNode call option. When used with WithToolList, it overrides the global alias configuration for the
compose/tool_node.go:65
↓ 8 callersFunctionapplyPagination
(items []T, offset, headLimit int)
adk/middlewares/filesystem/filesystem.go:1131
↓ 8 callersMethodcheck
()
adk/middlewares/summarization/finalizer_builder.go:219
↓ 8 callersFunctioncollectToolContent
(events []*AgentEvent)
adk/wrappers_test.go:1290
↓ 8 callersFunctionconcatMessageStream
(stream *schema.StreamReader[M])
adk/interface.go:489
↓ 8 callersFunctionconcatToolCalls
(chunks []ToolCall)
schema/message.go:1284
↓ 8 callersFunctioncopyTypedEventIterator
(iter *AsyncIterator[*TypedAgentEvent[M]], n int)
adk/callback.go:46
↓ 8 callersFunctiondefaultImplConcatStreamReader
( sr *schema.StreamReader[T])
compose/runnable.go:191
↓ 8 callersFunctionderefString
(s *string)
adk/wrappers.go:711
↓ 8 callersFunctionderefString
(s *string)
compose/agentic_tools_node.go:253
↓ 8 callersFunctiondrainStreamingAgentEvents
(t *testing.T, iterator *AsyncIterator[*AgentEvent])
adk/chatmodel_retry_test.go:63
↓ 8 callersMethodendActiveTurn
()
adk/turn_loop.go:522
↓ 8 callersFunctionestimateTokenCount
(charLen int)
adk/middlewares/summarization/summarization.go:476
↓ 8 callersFunctionfindMsgByToolCallID
(msgs []*schema.Message, toolCallID string)
compose/tool_node_test.go:589
↓ 8 callersMethodgetCaptured
()
adk/agent_tool_test.go:673
↓ 8 callersFunctiongetSession
(ctx context.Context)
adk/runctx.go:560
↓ 8 callersMethodgetToolConfig
(toolName string, sc scene)
adk/middlewares/reduction/reduction.go:406
↓ 8 callersMethodisCommitted
()
adk/turn_loop.go:483
↓ 8 callersFunctionlastAgenticEvent
(events []*agenticAgentEvent)
adk/agentic_react_test.go:206
← previousnext →301–400 of 3,994, ranked by callers