MCPcopy Create free account

hub / github.com/cloudwego/eino / functions

Functions3,994 in github.com/cloudwego/eino

↓ 8 callersFunctionnewAgentWithTool
(t *testing.T, ctx context.Context, name string, mdl model.BaseChatModel, subAgent Agent)
adk/cancel_test.go:2493
↓ 8 callersFunctionnewMockAgentCallback
(expects int)
flow/agent/multiagent/host/compose_test.go:683
↓ 8 callersFunctionnewMockBackend
()
adk/middlewares/filesystem/large_tool_result_test.go:36
↓ 8 callersFunctionnewMockBackend
()
adk/middlewares/reduction/internal/large_tool_result_test.go:37
↓ 8 callersFunctionremapArgs
remapArgs replaces alias keys in the JSON arguments string with canonical keys. aliasMap: alias → canonical mapping
compose/tool_node.go:334
↓ 8 callersMethodsetGraphInterruptFunc
setGraphInterruptFunc appends a graph interrupt function to the list. If an immediate cancel was already requested, fires it retroactively. Multiple f
adk/cancel.go:540
↓ 8 callersFunctionsplitFieldPath
(path string)
compose/field_mapping.go:131
↓ 7 callersMethodAddDependency
AddDependency creates an execution-only dependency between nodes. The current node will wait for the predecessor node to complete before executing, bu
compose/workflow.go:300
↓ 7 callersFunctionAppendAddressSegment
AppendAddressSegment creates a new execution context for a sub-component (e.g., a graph node or a tool call). It extends the current context's addres
internal/core/address.go:118
↓ 7 callersFunctionAppendAddressSegment
AppendAddressSegment creates a new execution context for a sub-component (e.g., a graph node or a tool call). It extends the current context's addres
compose/resume.go:150
↓ 7 callersMethodAppendChatModel
AppendChatModel add a ChatModel node to the chain. e.g. model, err := openai.NewChatModel(ctx, config) if err != nil {...} chain.AppendChatModel(m
compose/chain.go:171
↓ 7 callersMethodCollect
(ctx context.Context, input *schema.StreamReader[I], opts ...Option)
compose/runnable.go:35
↓ 7 callersFunctionCollectableLambda
CollectableLambda creates a Lambda with collectable lambda function without options.
compose/types_lambda.go:135
↓ 7 callersFunctionCompositeInterrupt
CompositeInterrupt creates an interrupt that aggregates multiple sub-interrupts. Use this when a tool internally executes a graph or other interruptib
components/tool/interrupt.go:100
↓ 7 callersFunctionConcatReasoningExtensions
ConcatReasoningExtensions concatenates multiple ReasoningExtension chunks into a single one.
schema/openai/extension.go:186
↓ 7 callersFunctionFromInterruptContexts
FromInterruptContexts converts a list of user-facing InterruptCtx objects into an internal InterruptSignal tree. It correctly handles common ancestors
internal/core/interrupt.go:198
↓ 7 callersMethodGetType
()
components/types.go:30
↓ 7 callersMethodGobDecode
(b []byte)
adk/runctx.go:192
↓ 7 callersMethodInfo
(_ context.Context)
adk/handler_test.go:996
↓ 7 callersFunctionInterrupt
Interrupt creates a special error that signals the execution engine to interrupt the current run at the component's specific address and save a checkp
compose/interrupt.go:110
↓ 7 callersMethodLoad
(ctx context.Context, src Source, opts ...LoaderOption)
components/document/interface.go:44
↓ 7 callersMethodMarshal
(v any)
internal/serialization/serialization.go:69
↓ 7 callersFunctionNew
New creates a new plan-execute-replan agent with the given configuration. The plan-execute-replan pattern works in three phases: 1. Planning: Generate
adk/prebuilt/planexecute/plan_execute.go:862
↓ 7 callersFunctionNewExecutor
NewExecutor creates a new executor agent.
adk/prebuilt/planexecute/plan_execute.go:510
↓ 7 callersMethodReceive
()
adk/turn_buffer.go:60
↓ 7 callersMethodReceive
Receive gets an item from the channel (blocks if empty). Returns (value, true) if an item was received. Returns (zero, false) if the channel was close
internal/channel.go:67
↓ 7 callersFunctionRegister
Register registers a type for serialization. This is required for any type you intend to persist in a graph or ADK checkpoint. It automatically determ
schema/serialization.go:137
↓ 7 callersMethodStream
Stream calls the agent and returns a stream response.
flow/agent/react/react.go:485
↓ 7 callersMethodToMessageInputParts
ToMessageInputParts converts ToolOutputPart slice to MessageInputPart slice. This is used when passing tool results as input to the model. Parameters
schema/tool.go:567
↓ 7 callersFunctionTransformableLambda
TransformableLambda creates a Lambda with transformable lambda function without options.
compose/types_lambda.go:151
↓ 7 callersFunctionTypeOf
TypeOf returns the type of T. eg. TypeOf[int] returns reflect.TypeOf(int). eg. TypeOf[*int] returns reflect.TypeOf(*int).
internal/generic/generic.go:56
↓ 7 callersFunctionWithAgentCallbacks
WithAgentCallbacks registers callbacks to be invoked by the host multi-agent.
flow/agent/multiagent/host/options.go:26
↓ 7 callersFunctionWithLambdaType
WithLambdaType sets the type of the lambda function.
compose/types_lambda.go:91
↓ 7 callersFunctionWithTools
WithTools is the option to set tools for the model.
components/model/option.go:116
↓ 7 callersMethodWrapEnhancedStreamableToolCall
WrapEnhancedStreamableToolCall wraps an enhanced tool's streaming execution with custom behavior. Return the input endpoint unchanged and nil error if
adk/handler.go:229
↓ 7 callersMethodWrapInvokableToolCall
WrapInvokableToolCall wraps a tool's synchronous execution with custom behavior. Return the input endpoint unchanged and nil error if no wrapping is n
adk/handler.go:193
↓ 7 callersFunctionassertNotClosedWithin
(t *testing.T, ch <-chan struct{}, d time.Duration)
adk/cancel_recursive_test.go:29
↓ 7 callersMethodbuildCancelFunc
buildCancelFunc builds the AgentCancelFunc for external use.
adk/cancel.go:614
↓ 7 callersFunctioncancelAsync
(cancelFn AgentCancelFunc, opts ...AgentCancelOption)
adk/cancel_test.go:2552
↓ 7 callersFunctionconcatExtra
(extraList []map[string]any)
schema/message.go:1619
↓ 7 callersFunctionconvMessageInputPartToToolOutputPart
(msgPart schema.MessageInputPart)
adk/middlewares/reduction/reduction.go:1545
↓ 7 callersFunctiondefaultTruncHandler
defaultTruncHandler applies the same truncation strategy to both non-streaming and streaming tool outputs. Processing steps: 1. Read and join tool ou
adk/middlewares/reduction/reduction.go:1299
↓ 7 callersFunctiondrainCancelError
(t *testing.T, iter *AsyncIterator[*AgentEvent])
adk/cancel_test.go:2516
↓ 7 callersFunctionformatMediaString
formatMediaString formats URL, Base64Data, MIMEType and Detail for media content
schema/agentic_message.go:2239
↓ 7 callersFunctiongenErrorIter
(err error)
adk/utils.go:311
↓ 7 callersMethodgetFailoverModel
(ctx context.Context, failoverCtx *TypedFailoverContext[M], defaultInput []M)
adk/middlewares/summarization/summarization.go:583
↓ 7 callersMethodgetToolName
()
components/tool/utils/invokable_func.go:221
↓ 7 callersMethodinputType
()
compose/types_composable.go:28
↓ 7 callersMethodinvoke
(ctx context.Context, input any, opts ...Option)
compose/graph_run.go:86
↓ 7 callersFunctionmapLambda
(k, v string)
compose/graph_test.go:1454
↓ 7 callersFunctionnewBlockingTool
(name string)
adk/cancel_edge_test.go:121
↓ 7 callersFunctionnewFuncToolResultContentBlock
newFuncToolResultContentBlock creates a FunctionToolResultContentBlock from a typed content pointer.
compose/agentic_tools_node.go:236
↓ 7 callersFunctionnewReact
(ctx context.Context, config *reactConfig)
adk/react.go:354
↓ 7 callersFunctionnewRecordingHandler
(recorder *callbackRecorder)
adk/callback_integration_test.go:63
↓ 7 callersMethodoutputType
()
compose/types_composable.go:29
↓ 7 callersFunctionrequireAckOpen
(t *testing.T, ack <-chan struct{})
adk/turn_loop_test.go:2991
↓ 7 callersFunctionsetAutomaticClose
set automatic close for event's message stream
adk/utils.go:114
↓ 7 callersFunctionsetMsgExtra
(msg M, key string, value any)
adk/middlewares/summarization/summarization.go:1165
↓ 7 callersFunctionsetOutputToSession
(ctx context.Context, msg M, msgStream *schema.StreamReader[M], outputKey string)
adk/chatmodel.go:750
↓ 7 callersFunctionsetupParentChild
(t *testing.T)
adk/cancel_recursive_test.go:38
↓ 7 callersFunctionstringifyToolOutputParts
(toolOutputParts []schema.ToolOutputPart)
adk/middlewares/reduction/reduction.go:1498
↓ 7 callersMethodtoStream
()
schema/stream.go:495
↓ 7 callersFunctionvalidateExtensionType
(expected reflect.Type, actual any)
schema/agentic_message.go:2257
↓ 7 callersMethodwaitDone
(t *testing.T)
adk/cancel_test.go:2565
↓ 6 callersMethodAddChatTemplateNode
AddChatTemplateNode adds a chat template node and returns it.
compose/workflow.go:99
↓ 6 callersFunctionAppendAddressSegment
AppendAddressSegment adds an address segment for the current execution context.
adk/interrupt.go:176
↓ 6 callersFunctionBatchResumeWithData
BatchResumeWithData is the core function for preparing a resume context. It injects a map of resume targets and their corresponding data into the cont
internal/core/address.go:245
↓ 6 callersMethodBeforeAgent
BeforeAgent is called before each agent run, allowing modification of the agent's instruction and tools configuration.
adk/handler.go:142
↓ 6 callersMethodBindTools
BindTools bind tools to the model. BindTools before requesting ChatModel generally. notice the non-atomic problem of BindTools and Generate.
components/model/interface.go:86
↓ 6 callersFunctionCompositeInterrupt
CompositeInterrupt creates a special error that signals a composite interruption. It is designed for "composite" nodes (like ToolsNode) that manage mu
compose/interrupt.go:174
↓ 6 callersFunctionConcat
Concat returns the unions of maps as a new map. 💡 NOTE: - Once the key conflicts, the newer value always replace the older one ([DiscardOld]), - If
internal/gmap/gmap.go:34
↓ 6 callersFunctionConcatAssistantGenTextExtensions
ConcatAssistantGenTextExtensions concatenates multiple AssistantGenTextExtension chunks into a single one.
schema/openai/extension.go:131
↓ 6 callersFunctionConcatMessageArray
ConcatMessageArray merges aligned slices of messages into a single slice, concatenating messages at the same index across the input arrays.
schema/message.go:92
↓ 6 callersFunctionConcatSliceValue
(val reflect.Value)
internal/concat.go:174
↓ 6 callersFunctionConvCallbackOutput
ConvCallbackOutput converts the callback output to the tool callback output.
components/tool/callback_extra.go:57
↓ 6 callersFunctionGetNextResumptionPoints
GetNextResumptionPoints finds the immediate child resumption points for a given parent address.
internal/core/address.go:190
↓ 6 callersFunctionIsInterruptRerunError
IsInterruptRerunError reports whether the error represents an interrupt-and-rerun and returns any attached info.
compose/interrupt.go:241
↓ 6 callersFunctionMessagesPlaceholder
MessagesPlaceholder can render a placeholder to a list of messages in params. e.g. placeholder := MessagesPlaceholder("history", false) params := m
schema/message.go:595
↓ 6 callersMethodNeeded
(ctx context.Context, info *callbacks.RunInfo, timing callbacks.CallbackTiming)
utils/callbacks/template.go:672
↓ 6 callersMethodNeeded
(ctx context.Context, info *callbacks.RunInfo, timing callbacks.CallbackTiming)
utils/callbacks/template.go:693
↓ 6 callersFunctionNewPlanner
NewPlanner creates a new planner agent based on the provided configuration. The planner agent uses either ChatModelWithFormattedOutput or ToolCallingC
adk/prebuilt/planexecute/plan_execute.go:437
↓ 6 callersFunctionNewStreamGraphBranch
NewStreamGraphBranch creates a new stream graph branch. It is used to determine the next node based on the condition of stream input. e.g. condition
compose/branch.go:168
↓ 6 callersFunctionOn
(ctx context.Context, inOut T, handle Handle[T], timing CallbackTiming, start bool)
internal/callbacks/inject.go:74
↓ 6 callersMethodOnErrorFn
OnErrorFn sets the handler for the error timing.
callbacks/handler_builder.go:130
↓ 6 callersFunctionRegisterStreamChunkConcatFunc
(fn func([]T) (T, error))
internal/concat.go:71
↓ 6 callersFunctionStatefulInterrupt
StatefulInterrupt creates an interrupt action that also saves the agent's internal state. This is used when an agent has internal state that must be r
adk/interrupt.go:123
↓ 6 callersMethodStore
Store stores the documents and returns their assigned IDs.
components/indexer/interface.go:40
↓ 6 callersMethodValidate
()
adk/middlewares/filesystem/filesystem.go:154
↓ 6 callersFunctionWithAfterToolCallsHook
WithAfterToolCallsHook registers a per-run hook that fires synchronously after all tool calls in a react iteration complete, before the next ChatModel
adk/chatmodel.go:130
↓ 6 callersFunctionWithInterruptAfterNodes
WithInterruptAfterNodes instructs to interrupt after the given nodes.
compose/interrupt.go:38
↓ 6 callersMethodabortPlanningTurn
()
adk/turn_loop.go:230
↓ 6 callersFunctionagenticMessageHasToolCalls
(msg *schema.AgenticMessage)
adk/react.go:592
↓ 6 callersMethodappendLate
(item T)
adk/turn_loop.go:933
↓ 6 callersMethodbuildSummarizationModelInput
(ctx context.Context, originMsgs, contextMsgs []M)
adk/middlewares/summarization/summarization.go:606
↓ 6 callersFunctioncheckGobEncodability
checkGobEncodability probes whether the value can be gob-encoded as part of a map[string]any, which is exactly how State.Extra is serialized during ch
adk/handler.go:433
↓ 6 callersFunctioncollectAgenticToolEvents
collectAgenticToolEvents filters tool result events from the agentic iterator. Agentic tool results have AgenticRole == AgenticRoleTypeUser and contai
adk/wrappers_test.go:1716
↓ 6 callersFunctionconcatLambda
(s string)
compose/graph_test.go:1451
↓ 6 callersMethodcontextAwareSleep
(ctx context.Context, delay time.Duration)
adk/retry_chatmodel.go:476
↓ 6 callersFunctiondrainMessageStream
(sr *schema.StreamReader[*schema.Message])
adk/failover_chatmodel_test.go:51
↓ 6 callersFunctionfilterOptions
(agentName string, opts []AgentRunOption)
adk/call_option.go:192
← previousnext →401–500 of 3,994, ranked by callers