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
↓ 3 callers
Method
checkAndAddMappedPath
(paths []FieldPath)
compose/workflow.go:369
↓ 3 callers
Function
checkMarshaler
(t reflect.Type)
internal/serialization/serialization.go:687
↓ 3 callers
Function
checkStream
(s *StreamReader[int])
schema/stream_test.go:373
↓ 3 callers
Function
concatStreamMsg
(sr *schema.StreamReader[*schema.Message])
flow/agent/react/option_test.go:1368
↓ 3 callers
Function
concatString
(sr *schema.StreamReader[string])
adk/middlewares/filesystem/large_tool_result.go:138
↓ 3 callers
Function
concatString
(sr *schema.StreamReader[string])
adk/middlewares/reduction/internal/large_tool_result.go:171
↓ 3 callers
Function
consumeUntilInterrupt
consumeUntilInterrupt consumes events from the iterator until an interrupt is found or it's exhausted.
adk/interrupt_test.go:1810
↓ 3 callers
Function
convExecuteResponse
(response *filesystem.ExecuteResponse)
adk/middlewares/filesystem/filesystem.go:1088
↓ 3 callers
Function
convert
(values map[string]any, convPairs map[string]streamConvertPair, isStream bool)
compose/checkpoint.go:366
↓ 3 callers
Method
copy
(n int)
compose/stream_reader.go:27
↓ 3 callers
Function
copyAgentCallbackOutput
(out *AgentCallbackOutput, n int)
adk/callback.go:82
↓ 3 callers
Function
copyTypedCallbackOutput
(out *TypedAgentCallbackOutput[M], n int)
adk/callback.go:174
↓ 3 callers
Method
deepCopy
()
adk/runctx.go:359
↓ 3 callers
Function
defaultBackoffDuration
(attempt int)
adk/middlewares/summarization/summarization.go:1248
↓ 3 callers
Function
defaultTokenCounter
defaultTokenCounter estimates tokens, which treats one token as ~4 characters of text for common English text. github.com/tiktoken-go/tokenizer is hig
adk/middlewares/reduction/reduction.go:1217
↓ 3 callers
Function
drainResumeErrors
(t *testing.T, iter *AsyncIterator[*AgentEvent])
adk/cancel_test.go:2531
↓ 3 callers
Function
drainTypedAgenticEvents
(t *testing.T, iter *AsyncIterator[*TypedAgentEvent[*schema.AgenticMessage]])
adk/agentic_test.go:1386
↓ 3 callers
Function
estimateAgenticMessageTokens
(msg *schema.AgenticMessage)
adk/middlewares/summarization/summarization.go:1088
↓ 3 callers
Function
exactRunPathMatch
(aPath, bPath []RunStep)
adk/flow.go:579
↓ 3 callers
Function
extractTextContent
(msg M)
adk/chatmodel.go:733
↓ 3 callers
Function
extractToolIdentifiers
extractToolIdentifiers extracts the tool name and call ID from an AgenticMessage that contains a tool result content block. Assumes one tool result pe
adk/react.go:807
↓ 3 callers
Function
extractType
(t reflect.Type)
internal/serialization/serialization.go:181
↓ 3 callers
Function
findInterruptEvent
(events []*agenticAgentEvent)
adk/agentic_react_test.go:222
↓ 3 callers
Method
forPredecessorPassthrough
()
compose/generic_helper.go:119
↓ 3 callers
Function
formatContent
(files []loadedFile)
adk/middlewares/agentsmd/loader.go:265
↓ 3 callers
Function
formatMessageInputMedia
(media *T)
schema/message.go:927
↓ 3 callers
Function
formatMessageOutputMedia
(media *T)
schema/message.go:1023
↓ 3 callers
Function
forwardEventsAndAppendTransfer
(iter *AsyncIterator[*AgentEvent], generator *AsyncGenerator[*AgentEvent], toAgentNames []string)
adk/deterministic_transfer.go:139
↓ 3 callers
Method
generateAndEmit
(ctx context.Context, chatModel model.BaseModel[M], input []M, opts []model.Option, attempt int, phase Genera
adk/middlewares/summarization/summarization.go:820
↓ 3 callers
Method
generateWithRetry
(ctx context.Context, chatModel model.BaseModel[M], input []M, opts []model.Option, retryCfg *TypedRetryConfi
adk/middlewares/summarization/summarization.go:831
↓ 3 callers
Method
get
(bool, string, *edgeHandlerManager)
compose/graph_manager.go:33
↓ 3 callers
Method
getGenericHelper
()
compose/types_composable.go:26
↓ 3 callers
Function
getHitKey
(tasks []*task, keys []string)
compose/graph_run.go:490
↓ 3 callers
Function
getMsgContent
(msg M)
adk/middlewares/dynamictool/toolsearch/toolsearch_generic_test.go:137
↓ 3 callers
Function
getMsgRole
(msg M)
adk/middlewares/dynamictool/toolsearch/toolsearch_generic_test.go:126
↓ 3 callers
Method
getOnEndCalled
()
adk/agentic_callback_integration_test.go:49
↓ 3 callers
Method
getOnStartCalled
()
adk/agentic_callback_integration_test.go:43
↓ 3 callers
Function
getReactChatHistory
(ctx context.Context, destAgentName string)
adk/agent_tool.go:362
↓ 3 callers
Method
getRemainingIterations
()
adk/react.go:179
↓ 3 callers
Function
getRunCtx
(ctx context.Context)
internal/core/resume.go:106
↓ 3 callers
Method
handleRunFuncError
handleRunFuncError is the common error handler for buildNoToolsRunFunc and buildReActRunFunc. It handles compose interrupts (both cancel-triggered and
adk/chatmodel.go:913
↓ 3 callers
Function
hasToolCalls
hasToolCalls checks if an assistant message contains tool calls.
adk/middlewares/reduction/reduction.go:914
↓ 3 callers
Method
idleDuration
()
adk/turn_loop.go:489
↓ 3 callers
Function
initAgenticCallbacks
(ctx context.Context, agentName, agentType string, opts ...AgentRunOption)
adk/callback.go:190
↓ 3 callers
Method
inputType
()
compose/graph.go:666
↓ 3 callers
Method
isOwnGraph
isOwnGraph reports whether the callback is being invoked for the React agent's own graph. After the first onGraphStart call records h.ownAddress, sub
flow/agent/react/option.go:267
↓ 3 callers
Method
isRoot
()
adk/runctx.go:355
↓ 3 callers
Function
isSystemMsg
isSystemMsg checks if a message has system role.
adk/middlewares/reduction/reduction.go:880
↓ 3 callers
Function
isToolResultOnlyMsg
isToolResultOnlyMsg checks if a message is exclusively a tool result message (no other content besides tool results). For *schema.Message: role == Too
adk/middlewares/reduction/reduction.go:952
↓ 3 callers
Function
isUserMsg
isUserMsg checks if a message has user role (and is not a tool-result message).
adk/middlewares/reduction/reduction.go:891
↓ 3 callers
Function
isWorkflow
(cmp component)
compose/graph.go:155
↓ 3 callers
Function
joinRunCtxs
(parentCtx context.Context, childCtxs ...context.Context)
adk/runctx.go:423
↓ 3 callers
Method
markAgentToolDescendant
()
adk/cancel.go:569
↓ 3 callers
Function
mockInvokableTool
()
adk/middlewares/reduction/reduction_test.go:1149
↓ 3 callers
Function
mockStreamableTool
()
adk/middlewares/reduction/reduction_test.go:1162
↓ 3 callers
Function
newAgenticRecordingHandler
(recorder *agenticCallbackRecorder)
adk/agentic_callback_integration_test.go:63
↓ 3 callers
Function
newInstanceByType
(typ reflect.Type)
compose/field_mapping.go:378
↓ 3 callers
Function
newMultiStreamReader
(sts []*stream[T])
schema/stream.go:514
↓ 3 callers
Function
newTaskListTool
(backend Backend, baseDir string, lock *sync.Mutex)
adk/middlewares/plantask/task_list.go:34
↓ 3 callers
Function
newWorkflowAgent
(ctx context.Context, name, desc string, subAgents []Agent, mode workflowAgentMode, maxIterations int)
adk/workflow.go:655
↓ 3 callers
Method
nextNodeKey
nextIdx. get the next idx for the chain. chain key is: node_idx => eg: node_0 => represent the first node of the chain (idx start from 0) if has paral
compose/chain.go:544
↓ 3 callers
Method
outputType
()
compose/graph.go:670
↓ 3 callers
Function
parseExecutorInfoFromComponent
(c component, executor any)
compose/graph_node.go:151
↓ 3 callers
Function
preprocessADKCheckpoint
preprocessADKCheckpoint fixes a gob incompatibility when resuming old ChatModelAgent/DeepAgents checkpoints. Background - ADK checkpoints are gob-enc
adk/interrupt.go:267
↓ 3 callers
Function
processTypedState
(ctx context.Context, fn func(extra map[string]any) map[string]any)
adk/handler.go:315
↓ 3 callers
Method
resolveInterruptCompletedTasks
(tempInfo *interruptTempInfo, completedTasks []*task)
compose/graph_run.go:457
↓ 3 callers
Function
restoreType
(vt *valueType)
internal/serialization/serialization.go:212
↓ 3 callers
Function
rewriteMessage
(msg Message, agentName string)
adk/flow.go:188
↓ 3 callers
Function
search
(argumentsInJSON string, tools map[string]*schema.ToolInfo)
adk/middlewares/dynamictool/toolsearch/toolsearch.go:438
↓ 3 callers
Method
sendMessage
(msg *schema.Message)
flow/agent/react/option.go:379
↓ 3 callers
Method
sendMessageStream
(sMsg *schema.StreamReader[*schema.Message])
flow/agent/react/option.go:388
↓ 3 callers
Method
set
(ctx context.Context, id string, cp *checkpoint)
compose/checkpoint.go:207
↓ 3 callers
Function
setMsgExtra
(msg M, key string, val any)
adk/middlewares/dynamictool/toolsearch/toolsearch_generic_test.go:164
↓ 3 callers
Method
setReturnDirectlyToolCallID
(id string)
adk/react.go:126
↓ 3 callers
Function
setToolCallArguments
setToolCallArguments updates the arguments for a tool call at the given block index.
adk/middlewares/reduction/reduction.go:1033
↓ 3 callers
Function
setToolResultFromOutputParts
setToolResultFromOutputParts converts ToolOutputPart slice back to FunctionToolResultContentBlock slice and sets f.Content.
adk/middlewares/reduction/reduction.go:1621
↓ 3 callers
Method
skipCheckpointEnabled
()
adk/turn_loop.go:498
↓ 3 callers
Function
strPtr
(s string)
adk/flow_test.go:32
↓ 3 callers
Method
stripDynamicTools
(tools []*schema.ToolInfo)
adk/middlewares/dynamictool/toolsearch/toolsearch.go:249
↓ 3 callers
Function
toolResultToOutputParts
toolResultToOutputParts converts a FunctionToolResult's Content blocks to ToolOutputPart slice.
adk/middlewares/reduction/reduction.go:1586
↓ 3 callers
Function
truncateSkillContent
truncateSkillContent truncates skill content to fit within maxTokens. It keeps the first portion of the content and appends a truncation marker (e.g.
adk/middlewares/summarization/finalizer_builder.go:418
↓ 3 callers
Function
truncateString
truncateString truncates a string to maxLen characters, adding "..." if truncated
schema/agentic_message.go:2231
↓ 3 callers
Function
uniqueSlice
(s []string)
compose/graph.go:906
↓ 3 callers
Function
wrapStreamWithCancelMonitoring
wrapStreamWithCancelMonitoring wraps a stream with cancel monitoring. When immediateChan fires (CancelImmediate or timeout escalation), the output str
adk/cancel.go:868
↓ 2 callers
Method
AddIndexer
AddIndexer adds an indexer node to the parallel. eg. indexer, err := volc_vikingdb.NewIndexer(ctx, &volc_vikingdb.IndexerConfig{ Collection: "my_c
compose/chain_parallel.go:198
↓ 2 callers
Method
AddLoader
AddLoader adds a loader node to the parallel. eg. loader, err := file.NewLoader(ctx, &file.LoaderConfig{}) p.AddLoader("output_key01", loader)
compose/chain_parallel.go:185
↓ 2 callers
Method
AddRetriever
AddRetriever adds a retriever node to the parallel. eg. retriever, err := vikingdb.NewRetriever(ctx, &vikingdb.RetrieverConfig{}) p.AddRetriever("o
compose/chain_parallel.go:174
↓ 2 callers
Method
AfterModelRewriteState
AfterModelRewriteState is called after each model invocation. The input state includes the model's response as the last message. The returned state is
adk/handler.go:181
↓ 2 callers
Method
AgenticModel
AgenticModel sets the agentic chat model handler for the handler helper, which will be called when the agentic chat model component is executed.
utils/callbacks/template.go:141
↓ 2 callers
Method
AppendEmbedding
AppendEmbedding add a Embedding node to the chain. e.g. embedder, err := openai.NewEmbedder(ctx, config) if err != nil {...} chain.AppendEmbedding
compose/chain.go:278
↓ 2 callers
Function
ChatModelWithTools
ChatModelWithTools returns a chat model configured with tool schemas. If a ToolCallingChatModel is provided, it is used directly (and optionally confi
flow/agent/utils.go:29
↓ 2 callers
Method
ClearWakeup
()
adk/turn_buffer.go:129
↓ 2 callers
Function
ConcatAgenticMessagesArray
ConcatAgenticMessagesArray concatenates multiple streams of AgenticMessage into a single slice of AgenticMessage.
schema/agentic_message.go:896
↓ 2 callers
Function
ConcurrentRetrieveWithCallback
ConcurrentRetrieveWithCallback concurrently retrieves documents with callback.
flow/retriever/utils/utils.go:44
↓ 2 callers
Function
ConvAgenticCallbackOutput
ConvAgenticCallbackOutput converts the callback output to the agentic prompt callback output.
components/prompt/agentic_callback_extra.go:59
↓ 2 callers
Function
ConvertCallbackHandlers
ConvertCallbackHandlers converts []host.MultiAgentCallback to callbacks.Handler.
flow/agent/multiagent/host/callback.go:42
↓ 2 callers
Function
DefaultFinalize
DefaultFinalize is the default TypedFinalizeFunc implementation, providing the same summary post-processing as the middleware does internally: 1. Repl
adk/middlewares/summarization/finalizer_builder.go:37
↓ 2 callers
Function
DeleteRunLocalValue
DeleteRunLocalValue removes a value that was set during the current agent Run() invocation. This function can only be called from within a ChatModelA
adk/handler.go:385
↓ 2 callers
Method
Embedding
Embedding sets the embedding handler for the handler helper, which will be called when the embedding component is executed.
utils/callbacks/template.go:93
↓ 2 callers
Method
Equals
(r1 RunStep)
adk/interface.go:389
← previous
next →
801–900 of 3,994, ranked by callers