MCPcopy Create free account

hub / github.com/cloudwego/eino / functions

Functions3,994 in github.com/cloudwego/eino

FunctionTestWithCancel_BeforeExecutionStarts
--- tests --- TestWithCancel_BeforeExecutionStarts verifies that a cancel issued before the graph begins executing still produces a CancelError withou
adk/cancel_edge_test.go:179
FunctionTestWithCancel_CancelAfterChatModel_NestedAgentTool
(t *testing.T)
adk/cancel_edge_test.go:1221
FunctionTestWithCancel_CancelImmediate_ConcurrentAgentTools_ResumeWithoutRestart
(t *testing.T)
adk/cancel_edge_test.go:1878
FunctionTestWithCancel_CancelImmediate_NestedAgentTool_ResumeFromToolsNode
TestWithCancel_CancelImmediate_NestedAgentTool_ResumeFromToolsNode verifies that when a nested ChatModelAgent (wrapped as an AgentTool inside an outer
adk/cancel_edge_test.go:1503
FunctionTestWithCancel_CancelImmediate_RecursiveAgentTool_ResumeDeepestAgentTool
(t *testing.T)
adk/cancel_edge_test.go:1728
FunctionTestWithCancel_CancelImmediate_StreamAborted
TestWithCancel_CancelImmediate_StreamAborted verifies that CancelImmediate during model execution surfaces CancelError and completes quickly. Uses blo
adk/cancel_edge_test.go:478
FunctionTestWithCancel_CancelImmediate_StreamableToolAborted
TestWithCancel_CancelImmediate_StreamableToolAborted verifies that CancelImmediate during StreamableTool streaming surfaces ErrStreamCanceled on the t
adk/cancel_edge_test.go:1378
FunctionTestWithCancel_DerivedAgentToolCancelContextMarkedDoneAfterRun
TestWithCancel_DerivedAgentToolCancelContextMarkedDoneAfterRun verifies that an explicitly derived AgentTool child cancel context is owned by the chil
adk/cancel_edge_test.go:264
FunctionTestWithCancel_GraphInterruptRaceBeforeSet
TestWithCancel_GraphInterruptRaceBeforeSet verifies that a CancelImmediate issued before setGraphInterruptFunc is called still results in cancellation
adk/cancel_edge_test.go:593
FunctionTestWithCancel_LoopAgent
(t *testing.T)
adk/cancel_test.go:1523
FunctionTestWithCancel_ModelError
TestWithCancel_ModelError verifies that a model error marks the cancelCtx as done so that a subsequent cancelFn call returns ErrExecutionEnded.
adk/cancel_edge_test.go:676
FunctionTestWithCancel_MultipleToolsConcurrent
TestWithCancel_MultipleToolsConcurrent verifies that CancelAfterToolCalls waits for ALL concurrent tool calls to complete before cancelling.
adk/cancel_edge_test.go:531
FunctionTestWithCancel_NoCheckpointStore
TestWithCancel_NoCheckpointStore verifies cancel completes and does not panic when no checkpoint store is configured.
adk/cancel_edge_test.go:630
FunctionTestWithCancel_ParallelAgent
(t *testing.T)
adk/cancel_test.go:1582
FunctionTestWithCancel_PlanExecute_BetweenTransitions
TestWithCancel_PlanExecute_BetweenTransitions verifies that cancel works when fired between agent transitions (e.g., after planner, before executor st
adk/prebuilt/planexecute/plan_execute_test.go:1103
FunctionTestWithCancel_PlanExecute_DuringExecution
TestWithCancel_PlanExecute_DuringExecution verifies that cancel works during the executor (ChatModelAgent) phase of the PlanExecute agent.
adk/prebuilt/planexecute/plan_execute_test.go:1013
FunctionTestWithCancel_Resume
TestWithCancel_Resume tests the workflow of Cancel followed by Resume. To avoid data races, we create new agent and runner instances for the Resume p
adk/cancel_test.go:897
FunctionTestWithCancel_Resume_CancelAfterChatModel_MessagePreserved
TestWithCancel_Resume_CancelAfterChatModel_MessagePreserved tests both the ReAct (with-tools) and noTools paths to ensure that when a CancelAfterChatM
adk/cancel_edge_test.go:1038
FunctionTestWithCancel_Resume_SafePoint
TestWithCancel_Resume_SafePoint covers CancelAfterChatModel and CancelAfterToolCalls on a Resume path.
adk/cancel_edge_test.go:709
FunctionTestWithCancel_SequentialAgent
(t *testing.T)
adk/cancel_test.go:1478
FunctionTestWithCancel_Streaming
(t *testing.T)
adk/cancel_test.go:731
FunctionTestWithCancel_SupervisorAgent
(t *testing.T)
adk/cancel_test.go:1633
FunctionTestWithCancel_TargetedResume_CancelImmediate
TestWithCancel_TargetedResume_CancelImmediate cancels an agent via CancelImmediate, extracts InterruptContexts from the resulting CancelError, and use
adk/cancel_edge_test.go:829
FunctionTestWithCancel_TargetedResume_SafePoint
TestWithCancel_TargetedResume_SafePoint cancels an agent via CancelAfterChatModel (safe-point) and verifies that InterruptContexts are populated on th
adk/cancel_edge_test.go:925
FunctionTestWithCancel_TimeoutEscalation
TestWithCancel_TimeoutEscalation tests that WithAgentCancelTimeout causes the cancel to escalate to immediate when the safe-point hasn't fired yet, an
adk/cancel_edge_test.go:374
FunctionTestWithCancel_WithCheckpoint
(t *testing.T)
adk/cancel_test.go:595
FunctionTestWithCancel_WithTools
(t *testing.T)
adk/cancel_test.go:203
FunctionTestWithChatModelOptions
(t *testing.T)
flow/agent/react/option_test.go:383
FunctionTestWithForceNewRun
(t *testing.T)
compose/checkpoint_test.go:1354
FunctionTestWithGracefulTimeout_NonPositive_Panics
(t *testing.T)
adk/turn_loop_test.go:4804
FunctionTestWithLayerPayload
(t *testing.T)
internal/core/interrupt_test.go:615
FunctionTestWithMessageFuture
(t *testing.T)
flow/agent/react/option_test.go:36
FunctionTestWithMessageFuture_NestedGraph
(t *testing.T)
flow/agent/react/option_test.go:707
FunctionTestWithMultipleCallbacksOption
(t *testing.T)
adk/callback_test.go:229
FunctionTestWithOnEOF_BlockingCallback
(t *testing.T)
schema/stream_oneof_test.go:135
FunctionTestWithOnEOF_EmptyStream
(t *testing.T)
schema/stream_oneof_test.go:196
FunctionTestWithOnEOF_InjectError
(t *testing.T)
schema/stream_oneof_test.go:75
FunctionTestWithOnEOF_InjectValue
(t *testing.T)
schema/stream_oneof_test.go:108
FunctionTestWithOnEOF_MultipleRecvAfterEOF
(t *testing.T)
schema/stream_oneof_test.go:296
FunctionTestWithOnEOF_PassThroughEOF
(t *testing.T)
schema/stream_oneof_test.go:54
FunctionTestWithOnEOF_WithErrWrapper_EOFPath
(t *testing.T)
schema/stream_oneof_test.go:256
FunctionTestWithOnEOF_WithErrWrapper_ErrorPath
(t *testing.T)
schema/stream_oneof_test.go:214
FunctionTestWithPreemptTimeout_ZeroSafePoint_Panics
(t *testing.T)
adk/turn_loop_test.go:4816
FunctionTestWithPreempt_ZeroSafePoint_Panics
(t *testing.T)
adk/turn_loop_test.go:4811
FunctionTestWithToolOptions
(t *testing.T)
flow/agent/react/option_test.go:374
FunctionTestWithTools
(t *testing.T)
flow/agent/react/react_test.go:613
FunctionTestWorkflow
(t *testing.T)
compose/workflow_test.go:36
FunctionTestWorkflowAgentPanicRecovery
Add these test functions to the existing workflow_test.go file Replace the existing TestWorkflowAgentPanicRecovery function
adk/workflow_test.go:464
FunctionTestWorkflowAgentUnsupportedMode
TestWorkflowAgentUnsupportedMode tests unsupported workflow mode error (lines 65-71)
adk/workflow_test.go:1021
FunctionTestWorkflowCallbackHandlerNotDoubled
(t *testing.T)
adk/workflow_test.go:1155
FunctionTestWorkflowCompile
(t *testing.T)
compose/workflow_test.go:658
FunctionTestWorkflowInterrupt
(t *testing.T)
adk/interrupt_test.go:325
FunctionTestWorkflowWithMap
(t *testing.T)
compose/workflow_test.go:245
FunctionTestWorkflowWithNestedFieldMappings
(t *testing.T)
compose/workflow_test.go:268
FunctionTestWrapIterWithMarkDone
(t *testing.T)
adk/cancel_test.go:1754
FunctionTestWrapModelStreamChunksPreserved
(t *testing.T)
adk/wrappers_test.go:650
FunctionTestWrapModel_IgnoresEmptyStringRunLocalValue
(t *testing.T)
adk/middlewares/skill/skill_test.go:688
FunctionTestWrapModel_IgnoresNonStringRunLocalValue
(t *testing.T)
adk/middlewares/skill/skill_test.go:540
FunctionTestWrapModel_ModelHubGetError
(t *testing.T)
adk/middlewares/skill/skill_test.go:587
FunctionTestWrapModel_ModelHubNilKeepsBase
(t *testing.T)
adk/middlewares/skill/skill_test.go:627
FunctionTestWrapModel_OutsideAgentContextReturnsError
(t *testing.T)
adk/middlewares/skill/skill_test.go:522
FunctionTestWrapModel_RunLocalNotFoundKeepsBase
(t *testing.T)
adk/middlewares/skill/skill_test.go:642
FunctionTestWrapModel_SwitchesModelWhenRunLocalIsSet
(t *testing.T)
adk/middlewares/skill/skill_test.go:475
FunctionTestWriteFileTool
(t *testing.T)
adk/middlewares/filesystem/filesystem_test.go:238
FunctionTestWriteTodos
(t *testing.T)
adk/prebuilt/deep/deep_test.go:139
FunctionTest_functionToolResultAgenticMessage
(t *testing.T)
adk/wrappers_test.go:2084
FunctionTest_mergeValues
(t *testing.T)
compose/values_merge_test.go:31
FunctionTest_newClearToolResult
(t *testing.T)
adk/middlewares/reduction/internal/clear_tool_result_test.go:268
FunctionTest_reduceByTokens
(t *testing.T)
adk/middlewares/reduction/internal/clear_tool_result_test.go:31
MethodThisIsGood
()
compose/utils_test.go:28
MethodThisIsGood
()
compose/utils_test.go:36
MethodThisIsGood
()
compose/utils_test.go:41
MethodThisIsGood2
()
compose/utils_test.go:32
MethodToPath
()
compose/field_mapping.go:100
MethodTransform
(ctx context.Context, src []*schema.Document, opts ...document.TransformerOption)
flow/indexer/parent/parent_test.go:48
MethodTransform
(ctx context.Context, src []*schema.Document, opts ...TransformerOption)
components/document/interface.go:54
MethodTransform
Transform mocks base method.
internal/mock/components/document/document_mock.go:99
MethodTransform
Transform indicates an expected call of Transform.
internal/mock/components/document/document_mock.go:112
MethodTrySend
TrySend attempts to put an item into the channel. Returns false if the channel is closed, true otherwise.
internal/channel.go:51
MethodUnmarshal
(data []byte, v any)
adk/chatmodel.go:1682
MethodUnmarshal
(data []byte, v any)
compose/checkpoint_migrate_test.go:35
MethodUnmarshal
(data []byte, v any)
compose/checkpoint_test.go:74
MethodUnmarshalJSON
(bytes []byte)
adk/prebuilt/integration_test.go:142
MethodUnmarshalJSON
(bytes []byte)
internal/serialization/serialization_test.go:60
MethodUnmarshalJSON
(bytes []byte)
internal/serialization/serialization_test.go:174
MethodUnmarshalJSON
(data []byte)
schema/tool.go:177
MethodUnwrap
()
adk/retry_chatmodel.go:63
MethodUnwrap
()
adk/retry_chatmodel.go:92
FunctionWithAgentToolRunOptions
WithAgentToolRunOptions specifies per-tool run options for the agent.
adk/chatmodel.go:111
FunctionWithChatTemplateOption
WithChatTemplateOption is a functional option type for chat template component.
compose/graph_call_options.go:203
FunctionWithDocumentTransformerOption
WithDocumentTransformerOption is a functional option type for document transformer component.
compose/graph_call_options.go:180
FunctionWithEagerExecution
WithEagerExecution enables the eager execution mode for the graph. In eager mode, nodes will be executed immediately once they are ready to run, witho
compose/graph_compile_options.go:78
FunctionWithEagerExecutionDisabled
WithEagerExecutionDisabled disables the eager execution mode for the graph. By default, eager execution is enabled for Workflow and Graph with the All
compose/graph_compile_options.go:88
FunctionWithExtraMeta
WithExtraMeta attaches extra metadata to the parsed document.
components/document/parser/option.go:48
FunctionWithHistoryModifier
WithHistoryModifier sets a function to modify history during resume. Deprecated: use ResumeWithData and ChatModelAgentResumeData instead.
adk/chatmodel.go:119
FunctionWithHistoryRewriter
WithHistoryRewriter sets a rewriter to transform conversation history during agent transfers. NOT RECOMMENDED: Agent transfer with full context shari
adk/flow.go:98
FunctionWithIndexerOption
WithIndexerOption is a functional option type for indexer component. e.g. indexerOption := compose.WithIndexerOption(indexer.WithSubIndexes([]string
compose/graph_call_options.go:189
FunctionWithMarshalOutput
WithMarshalOutput wraps the marshal output option. when you want to marshal the output by yourself, you can use this option.
components/tool/utils/create_options.go:51
FunctionWithPreempt
WithPreempt signals that the current agent turn should be cancelled at the specified safePoint after pushing the new item. The loop cancels the curren
adk/turn_loop.go:1225
FunctionWithPreemptDelay
WithPreemptDelay sets a delay duration before resolving a preemptive Push. When used with WithPreempt or WithPreemptTimeout, the pushed item is buffer
adk/turn_loop.go:1262
← previousnext →3,601–3,700 of 3,994, ranked by callers