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
↓ 6 callers
Function
getMsgClearedFlag
(msg *schema.Message)
adk/middlewares/reduction/reduction.go:1509
↓ 6 callers
Function
getMsgExtra
(msg M)
adk/middlewares/summarization/summarization.go:1154
↓ 6 callers
Method
getReturnDirectlyToolCallID
()
adk/react.go:122
↓ 6 callers
Method
getToolName
()
components/tool/utils/streamable_func.go:153
↓ 6 callers
Method
hasAgentToolDescendant
()
adk/cancel.go:565
↓ 6 callers
Function
isAssistantMsg
isAssistantMsg checks if a message has assistant role.
adk/middlewares/reduction/reduction.go:869
↓ 6 callers
Method
isImmediateCancelled
isImmediateCancelled returns true if an immediate graph interrupt has been fired (CancelImmediate or timeout escalation). This is stronger than should
adk/cancel.go:482
↓ 6 callers
Method
isRecursive
()
adk/cancel.go:347
↓ 6 callers
Method
markCancelHandled
markCancelHandled signals that the cancel path in the runFunc has created and sent a CancelError. Transitions state to stateCancelHandled so that: 1.
adk/cancel.go:581
↓ 6 callers
Function
marshalString
(resp any)
components/tool/utils/common.go:23
↓ 6 callers
Method
mergeToolConfigWithDesc
mergeToolConfigWithDesc merges ToolConfig with legacy Desc field Priority: ToolConfig.Desc > legacy Desc Returns an empty ToolConfig if both are nil (
adk/middlewares/filesystem/filesystem.go:321
↓ 6 callers
Method
needFailover
(ctx context.Context, outputMessage M, outputErr error)
adk/failover_chatmodel.go:195
↓ 6 callers
Function
newAgenticEventSenderToolWrapper
()
adk/wrappers_test.go:1772
↓ 6 callers
Function
newCancelTestAgent
-- Tests for cancel support across all agent types -- cancelTestAgent is a ChatModelAgent-based agent where the model blocks until signalled, allowing
adk/cancel_test.go:1390
↓ 6 callers
Function
newGlobTool
(fs filesystem.Backend, name string, desc string)
adk/middlewares/filesystem/filesystem.go:855
↓ 6 callers
Function
newGrepTool
(fs filesystem.Backend, name string, desc string)
adk/middlewares/filesystem/filesystem.go:934
↓ 6 callers
Function
newRunnablePacker
(i Invoke[I, O, TOption], s Stream[I, O, TOption], c Collect[I, O, TOption], t Transform[I, O, TOption], enab
compose/runnable.go:345
↓ 6 callers
Function
newUnexpectedInputTypeErr
(expected reflect.Type, got reflect.Type)
compose/error.go:29
↓ 6 callers
Function
resolvePointerNum
(pointerNum uint32, t reflect.Type)
internal/serialization/serialization.go:639
↓ 6 callers
Function
runWithCallbacks
(r func(context.Context, I, ...TOption) (O, error), onStart on[I], onEnd on[O], onError on[error])
compose/utils.go:100
↓ 6 callers
Method
setRetryAttempt
(attempt int)
adk/react.go:118
↓ 6 callers
Method
setReturnDirectlyEvent
(event *TypedAgentEvent[M])
adk/react.go:110
↓ 6 callers
Method
shouldSummarize
(ctx context.Context, input *TypedTokenCounterInput[M])
adk/middlewares/summarization/summarization.go:360
↓ 6 callers
Function
typedGetContentType
(msg M)
adk/middlewares/summarization/summarization.go:1210
↓ 6 callers
Function
typedSetAutomaticClose
(e *TypedAgentEvent[M])
adk/utils.go:105
↓ 6 callers
Function
typedSetFailoverCurrentModel
(ctx context.Context, currentModel model.BaseModel[M])
adk/failover_chatmodel.go:34
↓ 6 callers
Function
typedShouldFailover
(ctx context.Context, cfg *TypedFailoverConfig[M], resp M, err error)
adk/middlewares/summarization/summarization.go:1230
↓ 5 callers
Method
AddChatTemplate
AddChatTemplate adds a chat template to the parallel. eg. chatTemplate01, err := prompt.FromMessages(schema.FString, &schema.Message{ Role: sch
compose/chain_parallel.go:100
↓ 5 callers
Method
AppendChatTemplate
AppendChatTemplate add a ChatTemplate node to the chain. eg. chatTemplate, err := prompt.FromMessages(schema.FString, &schema.Message{ Role: sc
compose/chain.go:198
↓ 5 callers
Function
AppendGlobalHandlers
AppendGlobalHandlers appends handlers to the process-wide list of callback handlers. Global handlers run before per-invocation handlers provided via c
callbacks/interface.go:103
↓ 5 callers
Method
ChatModel
ChatModel sets the chat model handler for the handler helper, which will be called when the chat model component is executed.
utils/callbacks/template.go:87
↓ 5 callers
Function
CompositeInterrupt
CompositeInterrupt creates an interrupt event that aggregates sub-interrupt signals.
adk/interrupt.go:156
↓ 5 callers
Function
ConvAgentCallbackInput
ConvAgentCallbackInput converts a generic CallbackInput to AgentCallbackInput. Returns nil if the input is not an AgentCallbackInput.
adk/callback.go:100
↓ 5 callers
Function
ConvAgenticCallbackOutput
ConvAgenticCallbackOutput converts the callback output to the agentic model callback output.
components/model/agentic_callback_extra.go:79
↓ 5 callers
Function
ConvCallbackInput
ConvCallbackInput converts the callback input to the prompt callback input.
components/prompt/callback_extra.go:45
↓ 5 callers
Function
ConvCallbackInput
ConvCallbackInput converts the callback input to the tool callback input.
components/tool/callback_extra.go:43
↓ 5 callers
Function
ConvCallbackOutput
ConvCallbackOutput converts the callback output to the model callback output.
components/model/callback_extra.go:106
↓ 5 callers
Function
EnsureMessageID
EnsureMessageID assigns a UUID v4 message ID if the message doesn't have one. Idempotent: if ID already set, no-op. Middleware authors should call thi
adk/wrappers.go:510
↓ 5 callers
Function
EventFromAgenticMessage
EventFromAgenticMessage creates a TypedAgentEvent for the AgenticMessage path. Unlike EventFromMessage, it does not require role or toolName parameter
adk/interface.go:298
↓ 5 callers
Method
Execute
(ctx context.Context, input *ExecuteRequest)
adk/filesystem/backend.go:299
↓ 5 callers
Method
GetMessageStreams
GetMessageStreams returns an iterator for retrieving streaming messages generated during "agent.Stream" calls.
flow/agent/react/option.go:140
↓ 5 callers
Function
InitCallbacks
(ctx context.Context, info *RunInfo, handlers ...Handler)
internal/callbacks/inject.go:27
↓ 5 callers
Function
MigrateCheckpointState
MigrateCheckpointState is an advanced compatibility utility for checkpoint upgrades. It decodes checkpoint bytes using the given serializer, applies
compose/checkpoint.go:261
↓ 5 callers
Function
New
New creates a new plantask middleware that provides task management tools for agents. It adds TaskCreate, TaskGet, TaskUpdate, and TaskList tools to t
adk/middlewares/plantask/plantask.go:56
↓ 5 callers
Function
NewGraphMultiBranch
NewGraphMultiBranch creates a branch for graphs where a condition selects multiple end nodes; only keys present in endNodes are allowed.
compose/branch.go:89
↓ 5 callers
Function
NewMiddleware
NewMiddleware constructs and returns the filesystem middleware. Deprecated: Use New instead. New returns a ChatModelAgentMiddleware which provides be
adk/middlewares/filesystem/filesystem.go:173
↓ 5 callers
Function
NewMultiAgent
NewMultiAgent creates a new host multi-agent system. IMPORTANT!! For models that don't output tool calls in the first streaming chunk (e.g. Claude) t
flow/agent/multiagent/host/compose.go:49
↓ 5 callers
Function
NewReplanner
NewReplanner creates a plan-execute-replan agent wired with plan and respond tools. It configures the provided ToolCallingChatModel with the tools and
adk/prebuilt/planexecute/plan_execute.go:807
↓ 5 callers
Function
NewTool
NewTool creates an [tool.InvokableTool] from an explicit [schema.ToolInfo] and a typed function. Use this when the schema cannot be inferred from stru
components/tool/utils/invokable_func.go:143
↓ 5 callers
Function
NewTyped
NewTyped creates a new generic patch tool calls middleware. The middleware scans the message history before each model invocation and inserts placeho
adk/middlewares/patchtoolcalls/patchtoolcalls.go:49
↓ 5 callers
Function
NewTyped
NewTyped creates a generic summarization middleware that automatically summarizes conversation history when trigger conditions are met. This is the g
adk/middlewares/summarization/summarization.go:259
↓ 5 callers
Function
NewTyped
NewTyped creates a generic tool reduction middleware from config. This is the generic constructor that supports both *schema.Message and *schema.Agen
adk/middlewares/reduction/reduction.go:307
↓ 5 callers
Function
NewTypedAgentTool
NewTypedAgentTool creates a new agent tool that wraps a TypedAgent as a tool.BaseTool.
adk/agent_tool.go:107
↓ 5 callers
Function
PopulateInterruptState
(ctx context.Context, id2Addr map[string]Address, id2State map[string]InterruptState)
internal/core/address.go:271
↓ 5 callers
Function
RegisterStreamChunkConcatFunc
RegisterStreamChunkConcatFunc registers a function to concat stream chunks. It's required when you want to concat stream chunks of a specific type. fo
compose/stream_concat.go:44
↓ 5 callers
Method
Retrieve
(ctx context.Context, query string, opts ...Option)
components/retriever/interface.go:49
↓ 5 callers
Method
Stream
Stream runs the multi-agent in streaming mode and returns a message stream.
flow/agent/multiagent/host/types.go:54
↓ 5 callers
Method
String
()
internal/core/interrupt.go:61
↓ 5 callers
Method
TrySend
(value T)
adk/turn_buffer.go:47
↓ 5 callers
Function
TypedInterrupt
TypedInterrupt creates a typed interrupt event that pauses execution to request external input. It is the generic counterpart of Interrupt; see Interr
adk/interrupt.go:59
↓ 5 callers
Method
Validate
()
adk/middlewares/filesystem/filesystem.go:305
↓ 5 callers
Function
WithErrWrapper
WithErrWrapper wraps non-EOF errors from the underlying stream reader during conversion by StreamReaderWithConvert. Errors returned by the convert fun
schema/stream.go:653
↓ 5 callers
Function
WithGracefulTimeout
WithGracefulTimeout is like WithGraceful but adds a grace period. If the agent has not reached a safe point within gracePeriod, the stop escalates to
adk/turn_loop.go:1129
↓ 5 callers
Function
WithInterruptBeforeNodes
WithInterruptBeforeNodes instructs to interrupt before the given nodes.
compose/interrupt.go:31
↓ 5 callers
Function
WrapInterruptAndRerunIfNeeded
WrapInterruptAndRerunIfNeeded wraps the deprecated old interrupt errors, with the current execution address. If the error is returned by either Interr
compose/interrupt.go:78
↓ 5 callers
Method
WrapModel
WrapModel wraps a chat model with custom behavior around the actual model call. Return the input model unchanged and nil error if no wrapping is neede
adk/handler.go:254
↓ 5 callers
Method
WrapStreamableToolCall
(next compose.StreamableToolEndpoint)
adk/cancel.go:943
↓ 5 callers
Method
addEdgeWithMappings
(startNode, endNode string, noControl bool, noData bool, mappings ...*FieldMapping)
compose/graph.go:232
↓ 5 callers
Function
cloneSlice
(s []T)
adk/utils.go:70
↓ 5 callers
Method
close
()
schema/stream.go:744
↓ 5 callers
Method
closeForLoopExit
()
adk/turn_loop.go:542
↓ 5 callers
Method
compile
(ctx context.Context, options *graphCompileOptions)
compose/types_composable.go:27
↓ 5 callers
Method
copyAndFillDefaults
()
adk/middlewares/reduction/reduction.go:231
↓ 5 callers
Method
createCancelError
createCancelError creates a CancelError based on the current cancel state.
adk/cancel.go:593
↓ 5 callers
Function
defaultBackoff
(_ context.Context, attempt int)
adk/retry_chatmodel.go:262
↓ 5 callers
Function
estimateMessageTokens
(msg *schema.Message)
adk/middlewares/summarization/summarization.go:1027
↓ 5 callers
Function
forkRunCtx
(ctx context.Context)
adk/runctx.go:478
↓ 5 callers
Function
formatMultiContent
(multiContent []ChatMessagePart, vs map[string]any, formatType FormatType)
schema/message.go:697
↓ 5 callers
Function
functionToolResultAgenticMessage
functionToolResultAgenticMessage constructs a function tool result message with AgenticRoleType "user".
adk/wrappers.go:584
↓ 5 callers
Function
getAgentType
(agent Agent)
adk/callback.go:130
↓ 5 callers
Function
getAssistantTotalTokens
(msg M)
adk/middlewares/summarization/summarization.go:457
↓ 5 callers
Method
getDeadlineUnixNano
()
adk/cancel.go:450
↓ 5 callers
Function
getMsgExtra
(msg M)
adk/middlewares/dynamictool/toolsearch/toolsearch_generic_test.go:153
↓ 5 callers
Function
getOrCreateTool
(customTool tool.BaseTool, createFunc func() (tool.BaseTool, error))
adk/middlewares/filesystem/filesystem.go:553
↓ 5 callers
Method
getToolName
()
components/tool/utils/invokable_func.go:312
↓ 5 callers
Function
getToolOptions
(opt ...Option)
components/tool/utils/create_options.go:73
↓ 5 callers
Function
internalUnmarshal
(v *internalStruct, typ reflect.Type)
internal/serialization/serialization.go:429
↓ 5 callers
Function
isSystemRole
============================================================================ Generic helper functions ================================================
adk/middlewares/summarization/summarization.go:964
↓ 5 callers
Function
isUserRole
(msg M)
adk/middlewares/summarization/summarization.go:974
↓ 5 callers
Function
isValidTaskID
(taskID string)
adk/middlewares/plantask/task.go:75
↓ 5 callers
Method
join
()
compose/field_mapping.go:127
↓ 5 callers
Method
loadSkillFromFile
(ctx context.Context, path string)
adk/middlewares/skill/filesystem_backend.go:123
↓ 5 callers
Function
makeStream
(items []string, opts ...schema.ConvertOption)
schema/stream_oneof_test.go:46
↓ 5 callers
Function
newAgenticAgent
(t *testing.T, ctx context.Context, mdl model.BaseModel[*schema.AgenticMessage], tools []tool.BaseTool)
adk/agentic_react_test.go:160
↓ 5 callers
Function
newAgenticRunner
(t *testing.T, ctx context.Context, mdl model.BaseModel[*schema.AgenticMessage], tools []tool.BaseTool)
adk/agentic_react_test.go:179
↓ 5 callers
Function
newCancelTestAgentWithTools
(t *testing.T, name string, modelDelay time.Duration, modelStarted chan struct{})
adk/cancel_test.go:1412
↓ 5 callers
Function
newCancelTestAgentWithToolsFinalAnswer
(t *testing.T, name string)
adk/cancel_test.go:1448
↓ 5 callers
Function
newDTTestStore
()
adk/deterministic_transfer_test.go:32
↓ 5 callers
Function
newEditFileTool
(fs filesystem.Backend, name string, desc string)
adk/middlewares/filesystem/filesystem.go:827
↓ 5 callers
Function
newToolCallResponse
(toolName string)
adk/cancel_test.go:2483
← previous
next →
501–600 of 3,994, ranked by callers