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
↓ 5 callers
Function
newWriteFileTool
(fs filesystem.Backend, name string, desc string)
adk/middlewares/filesystem/filesystem.go:795
↓ 5 callers
Function
replaceUserMessagesInSummary
(ctx context.Context, p *replaceUserMessagesInSummaryParams[M])
adk/middlewares/summarization/summarization.go:723
↓ 5 callers
Method
sendImmediateInterrupt
sendImmediateInterrupt sends the compose graph interrupt signal via graphInterruptFuncs. Also closes immediateChan (used by cancelMonitoredModel to ab
adk/cancel.go:498
↓ 5 callers
Method
setToolMsgID
(toolName, callID, msgID string)
adk/react.go:151
↓ 5 callers
Function
testTruncOffloadPath
(root string)
adk/middlewares/reduction/reduction_test.go:37
↓ 5 callers
Method
toAnyStreamReader
()
compose/stream_reader.go:33
↓ 5 callers
Method
toCancelMode
()
adk/turn_loop.go:1069
↓ 5 callers
Function
toGenericRunnable
(cr *composableRunnable, ctxWrapper func(ctx context.Context, opts ...Option) context.Context)
compose/runnable.go:411
↓ 5 callers
Function
toolMessageToAgenticMessage
(input []*schema.Message)
compose/agentic_tools_node.go:82
↓ 5 callers
Function
toolResultFromMsgGeneric
toolResultFromMsgGeneric extracts tool result from a message as a *schema.ToolResult. For *schema.Message: delegates to existing toolResultFromMessage
adk/middlewares/reduction/reduction.go:1049
↓ 5 callers
Method
triggerImmediateCancel
()
adk/cancel.go:430
↓ 5 callers
Function
truncateTextByChars
(text string)
adk/middlewares/summarization/summarization.go:884
↓ 5 callers
Function
typedConsumeStream
(stream *schema.StreamReader[M])
adk/failover_chatmodel.go:440
↓ 5 callers
Function
updateRunPathOnly
updateRunPathOnly creates a new context with an updated RunPath, but does NOT modify the Address. This is used by sequential workflows to accumulate e
adk/runctx.go:513
↓ 5 callers
Method
waitAll
()
compose/graph_manager.go:415
↓ 4 callers
Method
Agent
Agent sets the agent handler for the handler helper, which will be called when the agent is executed.
utils/callbacks/template.go:153
↓ 4 callers
Method
AgenticAgent
AgenticAgent sets the agentic agent callback handler for the handler helper, which will be called when an agentic agent is executed.
utils/callbacks/template.go:159
↓ 4 callers
Function
AppendHandlers
(ctx context.Context, info *RunInfo, handlers ...Handler)
internal/callbacks/inject.go:61
↓ 4 callers
Method
AppendRetriever
AppendRetriever add a Retriever node to the chain. e.g. retriever, err := vectorstore.NewRetriever(ctx, config) if err != nil {...} chain.Appen
compose/chain.go:297
↓ 4 callers
Function
ConcatAssistantGenTextExtensions
ConcatAssistantGenTextExtensions merges multiple AssistantGenTextExtension chunks into one.
schema/claude/extension.go:88
↓ 4 callers
Function
ConcatResponseMetaExtensions
ConcatResponseMetaExtensions merges multiple ResponseMetaExtension chunks into one.
schema/claude/extension.go:108
↓ 4 callers
Function
ConvAgenticCallbackInput
ConvAgenticCallbackInput converts the callback input to the agentic model callback input.
components/model/agentic_callback_extra.go:61
↓ 4 callers
Function
ConvCallbackInput
ConvCallbackInput converts the callback input to the model callback input.
components/model/callback_extra.go:92
↓ 4 callers
Function
ConvCallbackInput
ConvCallbackInput converts the callback input to the indexer callback input.
components/indexer/callback_extra.go:41
↓ 4 callers
Function
ConvCallbackInput
ConvCallbackInput converts the callback input to the embedding callback input.
components/embedding/callback_extra.go:72
↓ 4 callers
Function
ConvCallbackInput
ConvCallbackInput converts the callback input to the retriever callback input.
components/retriever/callback_extra.go:49
↓ 4 callers
Function
ConvCallbackOutput
ConvCallbackOutput converts the callback output to the prompt callback output.
components/prompt/callback_extra.go:59
↓ 4 callers
Function
ConvCallbackOutput
ConvCallbackOutput converts the callback output to the indexer callback output.
components/indexer/callback_extra.go:55
↓ 4 callers
Function
ConvCallbackOutput
ConvCallbackOutput converts the callback output to the embedding callback output.
components/embedding/callback_extra.go:86
↓ 4 callers
Function
ConvCallbackOutput
ConvCallbackOutput converts the callback output to the retriever callback output.
components/retriever/callback_extra.go:63
↓ 4 callers
Function
EnsureRunInfo
EnsureRunInfo ensures the context carries a [RunInfo] for the given type and component kind. If the context already has a matching RunInfo, it is retu
callbacks/aspect_inject.go:139
↓ 4 callers
Function
FakeWithLambdaInfo
(info string)
compose/chain_test.go:596
↓ 4 callers
Function
GetCurrentAddress
GetCurrentAddress returns the hierarchical address of the currently executing component. The address is a sequence of segments, each identifying a str
compose/resume.go:84
↓ 4 callers
Method
Info
(_ context.Context)
adk/react_test.go:604
↓ 4 callers
Function
MapFieldPaths
MapFieldPaths creates a FieldMapping that maps a single predecessor field path to a single successor field path. Example: // Maps user.profile.name
compose/field_mapping.go:189
↓ 4 callers
Function
MergeNamedStreamReaders
MergeNamedStreamReaders merges multiple named StreamReaders into one. Unlike [MergeStreamReaders], when a source stream reaches EOF the merged reader
schema/stream.go:990
↓ 4 callers
Method
Name
(_ context.Context)
adk/chatmodel.go:661
↓ 4 callers
Function
New
New creates a new skill middleware. It provides a tool for the agent to use skills. Deprecated: Use NewMiddleware instead. New does not support fork
adk/middlewares/skill/skill.go:310
↓ 4 callers
Function
NewMockChatModel
NewMockChatModel creates a new mock instance.
internal/mock/components/model/ChatModel_mock.go:114
↓ 4 callers
Function
NewMockIndexer
NewMockIndexer creates a new mock instance.
internal/mock/components/indexer/indexer_mock.go:49
↓ 4 callers
Function
NewTyped
NewTyped creates a generic skill middleware handler for TypedChatModelAgent. This is the generic constructor that supports both *schema.Message and *
adk/middlewares/skill/skill.go:199
↓ 4 callers
Function
OnEndWithStreamOutput
OnEndWithStreamOutput invokes the OnEndWithStreamOutput timing. Use this when the component produces a streaming output (Stream / Transform paradigms)
callbacks/aspect_inject.go:113
↓ 4 callers
Method
OnSetAsSubAgent
(ctx context.Context, parent Agent)
adk/interface.go:476
↓ 4 callers
Method
OnStartWithStreamInput
(ctx context.Context, info *RunInfo, input *schema.StreamReader[CallbackInput])
internal/callbacks/interface.go:44
↓ 4 callers
Method
OnStartWithStreamInputFn
OnStartWithStreamInputFn sets the callback invoked when a component receives streaming input. The handler receives a [*schema.StreamReader] that is a
callbacks/handler_builder.go:141
↓ 4 callers
Function
Reverse
Reverse returns a new slice with elements in reversed order.
internal/generic/generic.go:74
↓ 4 callers
Function
SendToolGenAction
SendToolGenAction attaches an AgentAction to the next tool event emitted for the current tool execution. Where/when to use: - Invoke within a tool's
adk/react.go:274
↓ 4 callers
Function
SetLanguage
SetLanguage sets the language for the ADK built-in prompts. The default language is English if not explicitly set.
adk/internal/config.go:39
↓ 4 callers
Method
String
()
adk/interface.go:385
↓ 4 callers
Method
TakeAll
()
adk/turn_buffer.go:96
↓ 4 callers
Function
ToMap
ToMap collects elements of slice to map, both map keys and values are produced by mapping function f. 🚀 EXAMPLE: type Foo struct { ID int Nam
internal/gslice/gslice.go:32
↓ 4 callers
Function
TypedGetMessage
TypedGetMessage extracts the message from a TypedAgentEvent, concatenating a stream if present.
adk/utils.go:279
↓ 4 callers
Method
UnmarshalJSON
(bytes []byte)
adk/prebuilt/planexecute/plan_execute.go:96
↓ 4 callers
Function
Values
Values returns the values of the map m. 🚀 EXAMPLE: m := map[int]string{1: "1", 2: "2", 3: "3", 4: "4"} Values(m) ⏩ []string{"1", "4", "2", "3"} //
internal/gmap/gmap.go:89
↓ 4 callers
Function
WithAge
(age int)
compose/tool_node_test.go:603
↓ 4 callers
Function
WithAgentInputSchema
WithAgentInputSchema sets a custom input schema for the agent tool.
adk/agent_tool.go:57
↓ 4 callers
Function
WithCustomExtractor
WithCustomExtractor sets a custom extractor function for the FieldMapping. The extractor function is used to extract a value from the 'source' of the
compose/field_mapping.go:202
↓ 4 callers
Function
WithSkipCheckpoint
WithSkipCheckpoint tells the TurnLoop not to persist a checkpoint for this Stop call. Use this when the caller does not intend to resume in the future
adk/turn_loop.go:1145
↓ 4 callers
Function
WithStateModifier
WithStateModifier installs a state modifier invoked during checkpoint read/write.
compose/checkpoint.go:101
↓ 4 callers
Function
WithStopCause
WithStopCause attaches a business-supplied reason string to this Stop call. The cause is surfaced in TurnLoopExitState.StopCause and, after the Stoppe
adk/turn_loop.go:1155
↓ 4 callers
Function
WithStreamStatePostHandler
WithStreamStatePostHandler modify node's streaming output of O according to state S and output or store output information into state, and it's thread
compose/graph_add_node_options.go:136
↓ 4 callers
Method
WrapStreamableToolCall
WrapStreamableToolCall wraps a tool's streaming execution with custom behavior. Return the input endpoint unchanged and nil error if no wrapping is ne
adk/handler.go:205
↓ 4 callers
Function
appendSection
(base, section string)
adk/middlewares/summarization/summarization.go:810
↓ 4 callers
Function
appendUnique
(slice []string, items ...string)
adk/middlewares/plantask/task.go:79
↓ 4 callers
Function
assertAgenticEventRoleFields
assertAgenticEventRoleFields asserts that all AgenticMessage events in the list have zero-valued Role and ToolName fields (which are *schema.Message-o
adk/agentic_test.go:899
↓ 4 callers
Method
closeRecv
()
schema/stream.go:432
↓ 4 callers
Function
collectAgenticToolContent
collectAgenticToolContent extracts text from agentic tool result events.
adk/wrappers_test.go:1735
↓ 4 callers
Function
collectAllMessages
(iter *Iterator[*schema.Message])
flow/agent/react/option_test.go:1356
↓ 4 callers
Method
component
()
compose/types_composable.go:30
↓ 4 callers
Function
copyMessages
(msgs []*schema.Message)
adk/middlewares/reduction/reduction.go:1181
↓ 4 callers
Function
copyMessagesGeneric
copyMessagesGeneric deep-copies a slice of messages.
adk/middlewares/reduction/reduction.go:1105
↓ 4 callers
Function
countReminders
(msgs []*schema.Message)
adk/middlewares/dynamictool/toolsearch/toolsearch_test.go:738
↓ 4 callers
Method
countTokens
(ctx context.Context, input *TypedTokenCounterInput[M])
adk/middlewares/summarization/summarization.go:413
↓ 4 callers
Method
createAndMarkCancelHandled
()
adk/cancel.go:605
↓ 4 callers
Function
createValueFromType
(t reflect.Type)
internal/serialization/serialization.go:657
↓ 4 callers
Function
ctxWithManager
(ctx context.Context, manager *manager)
internal/callbacks/manager.go:47
↓ 4 callers
Function
defaultTypedTokenCounter
(_ context.Context, input *TypedTokenCounterInput[M])
adk/middlewares/summarization/summarization.go:420
↓ 4 callers
Function
defaultTypedTrimUserMessage
(msg M, remainingTokens int)
adk/middlewares/summarization/summarization.go:1272
↓ 4 callers
Method
emitEvent
(ctx context.Context, action *TypedCustomizedAction[M])
adk/middlewares/summarization/summarization.go:381
↓ 4 callers
Method
emitGenerateSummaryEvent
(ctx context.Context, attempt int, phase GenerateSummaryPhase, resp M, err error)
adk/middlewares/summarization/summarization.go:393
↓ 4 callers
Function
firstAgenticEventError
(events []*agenticAgentEvent)
adk/agentic_react_test.go:213
↓ 4 callers
Function
formatUserInputMultiContent
(userInputMultiContent []MessageInputPart, vs map[string]any, formatType FormatType)
schema/message.go:751
↓ 4 callers
Method
getEventsReceived
()
adk/agentic_callback_integration_test.go:55
↓ 4 callers
Function
getMessageFromTypedWrappedEvent
getMessageFromWrappedEvent extracts the message from an AgentEvent. If the stream contains an error chunk, this function returns (nil, err) and sets S
adk/utils.go:122
↓ 4 callers
Function
getMsgClearedFlagGeneric
getMsgClearedFlagGeneric checks if a message has the cleared flag set.
adk/middlewares/reduction/reduction.go:971
↓ 4 callers
Method
getNodeGenericHelper
(name string)
compose/graph.go:639
↓ 4 callers
Function
getNodeInfo
(opts ...GraphAddNodeOpt)
compose/graph_node.go:165
↓ 4 callers
Method
getNodeOutputType
(name string)
compose/graph.go:657
↓ 4 callers
Method
getToolName
()
components/tool/utils/streamable_func.go:253
↓ 4 callers
Function
getToolResultSendersFromCtx
(ctx context.Context)
flow/agent/react/react.go:48
↓ 4 callers
Method
handle
(from, to string, value any, isStream bool)
compose/graph_manager.go:44
↓ 4 callers
Function
initTypedRunCtx
(ctx context.Context, agentName string, input *TypedAgentInput[M])
adk/runctx.go:402
↓ 4 callers
Function
intMax
(a, b int)
adk/middlewares/dynamictool/toolsearch/toolsearch.go:486
↓ 4 callers
Function
isInternalUserMessage
(msg M)
adk/middlewares/summarization/summarization.go:1222
↓ 4 callers
Function
isNilMessage
isNilMessage checks whether a generic message value is nil. Direct `msg == nil` does not compile for generic pointer types in Go; the canonical workar
adk/interface.go:56
↓ 4 callers
Function
isPreservedMessage
(msg M)
adk/middlewares/summarization/summarization.go:1226
↓ 4 callers
Function
isToolResultMsg
isToolResultMsg checks if a message is a tool result message. For *schema.Message: role == Tool. For *schema.AgenticMessage: user-role message with at
adk/middlewares/reduction/reduction.go:931
↓ 4 callers
Function
listTasks
(ctx context.Context, backend Backend, baseDir string)
adk/middlewares/plantask/task_list.go:57
↓ 4 callers
Function
managerFromCtx
(ctx context.Context)
internal/callbacks/manager.go:61
↓ 4 callers
Function
newClearToolResult
(ctx context.Context, config *ClearToolResultConfig)
adk/middlewares/reduction/internal/clear_tool_result.go:64
← previous
next →
601–700 of 3,994, ranked by callers