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
↓ 8 callers
Function
newAgentWithTool
(t *testing.T, ctx context.Context, name string, mdl model.BaseChatModel, subAgent Agent)
adk/cancel_test.go:2493
↓ 8 callers
Function
newMockAgentCallback
(expects int)
flow/agent/multiagent/host/compose_test.go:683
↓ 8 callers
Function
newMockBackend
()
adk/middlewares/filesystem/large_tool_result_test.go:36
↓ 8 callers
Function
newMockBackend
()
adk/middlewares/reduction/internal/large_tool_result_test.go:37
↓ 8 callers
Function
remapArgs
remapArgs replaces alias keys in the JSON arguments string with canonical keys. aliasMap: alias → canonical mapping
compose/tool_node.go:334
↓ 8 callers
Method
setGraphInterruptFunc
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 callers
Function
splitFieldPath
(path string)
compose/field_mapping.go:131
↓ 7 callers
Method
AddDependency
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 callers
Function
AppendAddressSegment
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 callers
Function
AppendAddressSegment
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 callers
Method
AppendChatModel
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 callers
Method
Collect
(ctx context.Context, input *schema.StreamReader[I], opts ...Option)
compose/runnable.go:35
↓ 7 callers
Function
CollectableLambda
CollectableLambda creates a Lambda with collectable lambda function without options.
compose/types_lambda.go:135
↓ 7 callers
Function
CompositeInterrupt
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 callers
Function
ConcatReasoningExtensions
ConcatReasoningExtensions concatenates multiple ReasoningExtension chunks into a single one.
schema/openai/extension.go:186
↓ 7 callers
Function
FromInterruptContexts
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 callers
Method
GetType
()
components/types.go:30
↓ 7 callers
Method
GobDecode
(b []byte)
adk/runctx.go:192
↓ 7 callers
Method
Info
(_ context.Context)
adk/handler_test.go:996
↓ 7 callers
Function
Interrupt
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 callers
Method
Load
(ctx context.Context, src Source, opts ...LoaderOption)
components/document/interface.go:44
↓ 7 callers
Method
Marshal
(v any)
internal/serialization/serialization.go:69
↓ 7 callers
Function
New
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 callers
Function
NewExecutor
NewExecutor creates a new executor agent.
adk/prebuilt/planexecute/plan_execute.go:510
↓ 7 callers
Method
Receive
()
adk/turn_buffer.go:60
↓ 7 callers
Method
Receive
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 callers
Function
Register
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 callers
Method
Stream
Stream calls the agent and returns a stream response.
flow/agent/react/react.go:485
↓ 7 callers
Method
ToMessageInputParts
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 callers
Function
TransformableLambda
TransformableLambda creates a Lambda with transformable lambda function without options.
compose/types_lambda.go:151
↓ 7 callers
Function
TypeOf
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 callers
Function
WithAgentCallbacks
WithAgentCallbacks registers callbacks to be invoked by the host multi-agent.
flow/agent/multiagent/host/options.go:26
↓ 7 callers
Function
WithLambdaType
WithLambdaType sets the type of the lambda function.
compose/types_lambda.go:91
↓ 7 callers
Function
WithTools
WithTools is the option to set tools for the model.
components/model/option.go:116
↓ 7 callers
Method
WrapEnhancedStreamableToolCall
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 callers
Method
WrapInvokableToolCall
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 callers
Function
assertNotClosedWithin
(t *testing.T, ch <-chan struct{}, d time.Duration)
adk/cancel_recursive_test.go:29
↓ 7 callers
Method
buildCancelFunc
buildCancelFunc builds the AgentCancelFunc for external use.
adk/cancel.go:614
↓ 7 callers
Function
cancelAsync
(cancelFn AgentCancelFunc, opts ...AgentCancelOption)
adk/cancel_test.go:2552
↓ 7 callers
Function
concatExtra
(extraList []map[string]any)
schema/message.go:1619
↓ 7 callers
Function
convMessageInputPartToToolOutputPart
(msgPart schema.MessageInputPart)
adk/middlewares/reduction/reduction.go:1545
↓ 7 callers
Function
defaultTruncHandler
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 callers
Function
drainCancelError
(t *testing.T, iter *AsyncIterator[*AgentEvent])
adk/cancel_test.go:2516
↓ 7 callers
Function
formatMediaString
formatMediaString formats URL, Base64Data, MIMEType and Detail for media content
schema/agentic_message.go:2239
↓ 7 callers
Function
genErrorIter
(err error)
adk/utils.go:311
↓ 7 callers
Method
getFailoverModel
(ctx context.Context, failoverCtx *TypedFailoverContext[M], defaultInput []M)
adk/middlewares/summarization/summarization.go:583
↓ 7 callers
Method
getToolName
()
components/tool/utils/invokable_func.go:221
↓ 7 callers
Method
inputType
()
compose/types_composable.go:28
↓ 7 callers
Method
invoke
(ctx context.Context, input any, opts ...Option)
compose/graph_run.go:86
↓ 7 callers
Function
mapLambda
(k, v string)
compose/graph_test.go:1454
↓ 7 callers
Function
newBlockingTool
(name string)
adk/cancel_edge_test.go:121
↓ 7 callers
Function
newFuncToolResultContentBlock
newFuncToolResultContentBlock creates a FunctionToolResultContentBlock from a typed content pointer.
compose/agentic_tools_node.go:236
↓ 7 callers
Function
newReact
(ctx context.Context, config *reactConfig)
adk/react.go:354
↓ 7 callers
Function
newRecordingHandler
(recorder *callbackRecorder)
adk/callback_integration_test.go:63
↓ 7 callers
Method
outputType
()
compose/types_composable.go:29
↓ 7 callers
Function
requireAckOpen
(t *testing.T, ack <-chan struct{})
adk/turn_loop_test.go:2991
↓ 7 callers
Function
setAutomaticClose
set automatic close for event's message stream
adk/utils.go:114
↓ 7 callers
Function
setMsgExtra
(msg M, key string, value any)
adk/middlewares/summarization/summarization.go:1165
↓ 7 callers
Function
setOutputToSession
(ctx context.Context, msg M, msgStream *schema.StreamReader[M], outputKey string)
adk/chatmodel.go:750
↓ 7 callers
Function
setupParentChild
(t *testing.T)
adk/cancel_recursive_test.go:38
↓ 7 callers
Function
stringifyToolOutputParts
(toolOutputParts []schema.ToolOutputPart)
adk/middlewares/reduction/reduction.go:1498
↓ 7 callers
Method
toStream
()
schema/stream.go:495
↓ 7 callers
Function
validateExtensionType
(expected reflect.Type, actual any)
schema/agentic_message.go:2257
↓ 7 callers
Method
waitDone
(t *testing.T)
adk/cancel_test.go:2565
↓ 6 callers
Method
AddChatTemplateNode
AddChatTemplateNode adds a chat template node and returns it.
compose/workflow.go:99
↓ 6 callers
Function
AppendAddressSegment
AppendAddressSegment adds an address segment for the current execution context.
adk/interrupt.go:176
↓ 6 callers
Function
BatchResumeWithData
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 callers
Method
BeforeAgent
BeforeAgent is called before each agent run, allowing modification of the agent's instruction and tools configuration.
adk/handler.go:142
↓ 6 callers
Method
BindTools
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 callers
Function
CompositeInterrupt
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 callers
Function
Concat
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 callers
Function
ConcatAssistantGenTextExtensions
ConcatAssistantGenTextExtensions concatenates multiple AssistantGenTextExtension chunks into a single one.
schema/openai/extension.go:131
↓ 6 callers
Function
ConcatMessageArray
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 callers
Function
ConcatSliceValue
(val reflect.Value)
internal/concat.go:174
↓ 6 callers
Function
ConvCallbackOutput
ConvCallbackOutput converts the callback output to the tool callback output.
components/tool/callback_extra.go:57
↓ 6 callers
Function
GetNextResumptionPoints
GetNextResumptionPoints finds the immediate child resumption points for a given parent address.
internal/core/address.go:190
↓ 6 callers
Function
IsInterruptRerunError
IsInterruptRerunError reports whether the error represents an interrupt-and-rerun and returns any attached info.
compose/interrupt.go:241
↓ 6 callers
Function
MessagesPlaceholder
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 callers
Method
Needed
(ctx context.Context, info *callbacks.RunInfo, timing callbacks.CallbackTiming)
utils/callbacks/template.go:672
↓ 6 callers
Method
Needed
(ctx context.Context, info *callbacks.RunInfo, timing callbacks.CallbackTiming)
utils/callbacks/template.go:693
↓ 6 callers
Function
NewPlanner
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 callers
Function
NewStreamGraphBranch
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 callers
Function
On
(ctx context.Context, inOut T, handle Handle[T], timing CallbackTiming, start bool)
internal/callbacks/inject.go:74
↓ 6 callers
Method
OnErrorFn
OnErrorFn sets the handler for the error timing.
callbacks/handler_builder.go:130
↓ 6 callers
Function
RegisterStreamChunkConcatFunc
(fn func([]T) (T, error))
internal/concat.go:71
↓ 6 callers
Function
StatefulInterrupt
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 callers
Method
Store
Store stores the documents and returns their assigned IDs.
components/indexer/interface.go:40
↓ 6 callers
Method
Validate
()
adk/middlewares/filesystem/filesystem.go:154
↓ 6 callers
Function
WithAfterToolCallsHook
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 callers
Function
WithInterruptAfterNodes
WithInterruptAfterNodes instructs to interrupt after the given nodes.
compose/interrupt.go:38
↓ 6 callers
Method
abortPlanningTurn
()
adk/turn_loop.go:230
↓ 6 callers
Function
agenticMessageHasToolCalls
(msg *schema.AgenticMessage)
adk/react.go:592
↓ 6 callers
Method
appendLate
(item T)
adk/turn_loop.go:933
↓ 6 callers
Method
buildSummarizationModelInput
(ctx context.Context, originMsgs, contextMsgs []M)
adk/middlewares/summarization/summarization.go:606
↓ 6 callers
Function
checkGobEncodability
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 callers
Function
collectAgenticToolEvents
collectAgenticToolEvents filters tool result events from the agentic iterator. Agentic tool results have AgenticRole == AgenticRoleTypeUser and contai
adk/wrappers_test.go:1716
↓ 6 callers
Function
concatLambda
(s string)
compose/graph_test.go:1451
↓ 6 callers
Method
contextAwareSleep
(ctx context.Context, delay time.Duration)
adk/retry_chatmodel.go:476
↓ 6 callers
Function
drainMessageStream
(sr *schema.StreamReader[*schema.Message])
adk/failover_chatmodel_test.go:51
↓ 6 callers
Function
filterOptions
(agentName string, opts []AgentRunOption)
adk/call_option.go:192
← previous
next →
401–500 of 3,994, ranked by callers