MCPcopy Create free account

hub / github.com/cloudwego/eino-examples / functions

Functions1,121 in github.com/cloudwego/eino-examples

FunctionTestInvokableMiddleware_RawQuotesInsideStringValue
(t *testing.T)
components/tool/middlewares/jsonfix/json_fix_middleware_test.go:168
FunctionTestInvokableMiddleware_RepairsJSON
(t *testing.T)
components/tool/middlewares/jsonfix/json_fix_middleware_test.go:33
FunctionTestInvokableMiddleware_UnescapedBackslashesAndSingleQuotesAndTrailingComma
(t *testing.T)
components/tool/middlewares/jsonfix/json_fix_middleware_test.go:143
FunctionTestKindFromEnvDefaultsToAgentic
(t *testing.T)
quickstart/chatwitheino/msgops/msgops_test.go:25
FunctionTestNewAssistantAgenticSetsCompletedStatus
(t *testing.T)
quickstart/chatwitheino/msgops/msgops_test.go:141
FunctionTestNewLoopCreation
--------------------------------------------------------------------------- Tests --------------------------------------------------------------------
quickstart/chatwitheino/server/server_test.go:146
FunctionTestNormalizeForSessionAgenticMessage
(t *testing.T)
quickstart/chatwitheino/msgops/msgops_test.go:49
FunctionTestPreemptQueuesNewItem
(t *testing.T)
quickstart/chatwitheino/server/server_test.go:415
FunctionTestServerRouteRegistration
Ensure our HTTP endpoints have the expected paths by checking route registration does not panic.
quickstart/chatwitheino/server/server_test.go:587
FunctionTestState
(t *testing.T)
flow/agent/deer-go/biz/model/state_test.go:24
FunctionTestStreamToWriterPersistsAgenticReasoning
(t *testing.T)
quickstart/chatwitheino/a2ui/streamer_test.go:27
FunctionTestStreamableMiddleware_RepairsJSON
(t *testing.T)
components/tool/middlewares/jsonfix/json_fix_middleware_test.go:53
FunctionTestToolsNodeMiddleware_RepairsInvokable
(t *testing.T)
components/tool/middlewares/jsonfix/json_fix_middleware_test.go:117
FunctionToolRequestRepairJSON
(ctx context.Context, baseTool tool.InvokableTool, toolArguments string)
adk/multiagent/deep/tools/wrap.go:80
FunctionToolRequestRepairJSON
(ctx context.Context, baseTool tool.InvokableTool, toolArguments string)
adk/multiagent/integration-excel-agent/tools/wrap.go:80
FunctionTypeOf
()
adk/common/tool/graphtool/graph_tool.go:347
MethodUnmarshalJSON
(data []byte)
flow/agent/deer-go/biz/infra/mcp.go:80
MethodUnmarshalJSON
(b []byte)
flow/agent/deer-go/biz/model/state.go:61
MethodUnmarshalJSON
(bytes []byte)
adk/multiagent/deep/generic/plan.go:48
MethodUnmarshalJSON
(data []byte)
adk/multiagent/integration-excel-agent/generic/plan.go:31
MethodUnmarshalJSON
(bytes []byte)
adk/multiagent/integration-excel-agent/generic/plan.go:66
FunctionUnmarshalMessage
UnmarshalMessage unmarshals one JSONL message line into M.
quickstart/chatwitheino/msgops/variant.go:180
FunctionUpdateTodoFunc
(_ context.Context, params *TodoUpdateParams)
quickstart/todoagent/main.go:230
FunctionValidatePerformanceTimeTable
(_ context.Context, in *ValidatePerformanceTimeTableRequest)
flow/agent/multiagent/plan_execute/tools/theme_park.go:349
FunctionValidatePlanItems
(_ context.Context, in *ValidatePlanItemsRequest)
flow/agent/multiagent/plan_execute/tools/theme_park.go:545
MethodWait
()
adk/multiagent/deep/utils/utils.go:67
FunctionWithDebugOutput
(output *schema.Message)
flow/agent/multiagent/plan_execute/debug/mock_model.go:33
FunctionWithDisableThinking
(disable bool)
adk/multiagent/deep/utils/model.go:122
FunctionWithEncoding
WithEncoding 定制实现自主定义的 Option 方法
components/document/parser/customparser/custom_parser.go:36
FunctionWithGraphToolOption
(opts ...compose.Option)
adk/common/tool/graphtool/graph_tool.go:62
FunctionWithMaskFunc
WithMaskFunc provides a custom masking function for header values.
components/model/httptransport/curlrt.go:111
FunctionWithResponseFormatJsonSchema
(schema *openai.ChatCompletionResponseFormatJSONSchema)
adk/multiagent/deep/utils/model.go:128
FunctionWithStreamContentTypeFilter
WithStreamContentTypeFilter sets a filter to detect streaming responses.
components/model/httptransport/curlrt.go:122
MethodWithTools
(tools []*schema.ToolInfo)
flow/agent/react/unknown_tool_handler_example/main.go:78
MethodWithTools
(tools []*schema.ToolInfo)
adk/human-in-the-loop/7_deep-agents/agent.go:42
MethodWithTools
(tools []*schema.ToolInfo)
adk/human-in-the-loop/8_supervisor-plan-execute/agent.go:43
MethodWithTools
(tools []*schema.ToolInfo)
adk/human-in-the-loop/5_supervisor/agent.go:43
MethodWithTools
(tools []*schema.ToolInfo)
adk/human-in-the-loop/6_plan-execute-replan/agent.go:42
MethodWrapEnhancedInvokableToolCall
(_ context.Context, endpoint adk.EnhancedInvokableToolCallEndpoint, _ *adk.ToolContext)
adk/agent/ralph-loop/main.go:215
MethodWrapInvokableToolCall
(_ context.Context, endpoint adk.InvokableToolCallEndpoint, _ *adk.ToolContext)
adk/agent/ralph-loop/main.go:205
MethodWrapInvokableToolCall
WrapInvokableToolCall inserts an approval gate around the answer_from_document tool. All other tools pass through unchanged.
quickstart/chatwitheino/agent.go:122
MethodWrapInvokableToolCall
( _ context.Context, endpoint adk.InvokableToolCallEndpoint, _ *adk.ToolContext, )
quickstart/chatwitheino/helpers/middleware.go:44
MethodWrapInvokableToolCall
( _ context.Context, endpoint adk.InvokableToolCallEndpoint, tCtx *adk.ToolContext, )
quickstart/chatwitheino/cmd/ch08/main.go:259
MethodWrapInvokableToolCall
( _ context.Context, endpoint adk.InvokableToolCallEndpoint, tCtx *adk.ToolContext, )
quickstart/chatwitheino/cmd/ch09/main.go:297
MethodWrapInvokableToolCall
( _ context.Context, endpoint adk.InvokableToolCallEndpoint, tCtx *adk.ToolContext, )
quickstart/chatwitheino/cmd/ch10/main.go:540
MethodWrapInvokableToolCall
( _ context.Context, endpoint adk.InvokableToolCallEndpoint, tCtx *adk.ToolContext, )
quickstart/chatwitheino/cmd/ch07/main.go:245
MethodWrapStreamableToolCall
( _ context.Context, endpoint adk.StreamableToolCallEndpoint, _ *adk.ToolContext, )
quickstart/chatwitheino/helpers/middleware.go:61
MethodWrapStreamableToolCall
( _ context.Context, endpoint adk.StreamableToolCallEndpoint, tCtx *adk.ToolContext, )
quickstart/chatwitheino/cmd/ch08/main.go:299
MethodWrapStreamableToolCall
( _ context.Context, endpoint adk.StreamableToolCallEndpoint, tCtx *adk.ToolContext, )
quickstart/chatwitheino/cmd/ch09/main.go:337
MethodWrapStreamableToolCall
( _ context.Context, endpoint adk.StreamableToolCallEndpoint, tCtx *adk.ToolContext, )
quickstart/chatwitheino/cmd/ch07/main.go:285
MethodWrite
Write encodes and stores messages using Redis SET.
flow/agent/react/memory_example/memory/redis.go:38
MethodWrite
(p []byte)
quickstart/chatwitheino/cmd/ch10/main.go:462
MethodWrite
(b []byte)
quickstart/chatwitheino/smoketest/main.go:110
MethodWrite
(p []byte)
quickstart/chatwitheino/server/server.go:827
Method__init__
(self)
flow/agent/deer-go/biz/mcps/python/server.py:13
FunctionagentHandOff
type I = string type O = string 子图流转函数,由上一个子图决定接下来流转到哪个agent 并将其name写入 state.Goto ,该函数读取 state.Goto 并将控制权交给对应agent
flow/agent/deer-go/biz/eino/builder.go:34
FunctionanalyzeData
(_ context.Context, input *analyzeInput)
adk/cancel/graceful-exit/main.go:156
FunctionarkStatusAndReason
(msg *schema.AgenticMessage)
adk/agentic/retry_max_output_tokens/retry.go:78
FunctionbIRouter
(ctx context.Context, input string, opts ...any)
flow/agent/deer-go/biz/eino/investigator.go:74
FunctionbuildAgentTyped
(ctx context.Context)
quickstart/chatwitheino/agent.go:39
FunctionbuildAgentTyped
--- Agent construction ---
quickstart/chatwitheino/cmd/ch10/main.go:489
FunctioncreateSession
(id, filePath string)
quickstart/chatwitheino/mem/store.go:236
FunctionechoEndpoint
(_ context.Context, in *compose.ToolInput)
components/tool/middlewares/jsonfix/json_fix_middleware_test.go:29
FunctiongetDynamicOptions
getDynamicOptions is called before each ChatModel.Generate() call. It demonstrates how to dynamically modify options based on the current iteration: -
flow/agent/react/dynamic_option_example/main.go:275
FunctionhandleInterrupt
(ctx context.Context, runner *adk.TypedRunner[M], checkPointID string, interruptInfo *adk.InterruptInfo, reade
quickstart/chatwitheino/cmd/ch08/main.go:339
FunctionhandleInterrupt
(ctx context.Context, runner *adk.TypedRunner[M], checkPointID string, interruptInfo *adk.InterruptInfo, reade
quickstart/chatwitheino/cmd/ch09/main.go:377
FunctionhandleInterrupt
(ctx context.Context, runner *adk.TypedRunner[M], checkPointID string, interruptInfo *adk.InterruptInfo, reade
quickstart/chatwitheino/cmd/ch07/main.go:325
Methodhandle_call_tool
(name: str, arguments: dict | None)
flow/agent/deer-go/biz/mcps/python/server.py:26
Methodhandle_list_tools
()
flow/agent/deer-go/biz/mcps/python/server.py:22
Functioninit
()
flow/agent/react/tools/service.go:37
Functioninit
()
flow/agent/react/agentic/react.go:33
Functioninit
()
flow/agent/react/dynamic_option_example/dynamic/state.go:41
Functioninit
()
flow/agent/manus/manus.go:59
Functioninit
()
flow/agent/deer-go/biz/model/state.go:27
Functioninit
()
adk/human-in-the-loop/3_feedback-loop/reviewer_agent.go:28
Functioninit
初始化函数:注册中断信息类型,确保检查点持久化时能够正确序列化
adk/human-in-the-loop/3_feedback-loop/main.go:35
Functioninit
()
adk/common/tool/follow_up_tool.go:55
Functioninit
()
adk/common/tool/review_edit_wrapper.go:49
Functioninit
()
adk/common/tool/approval_wrapper.go:43
Functioninit
()
adk/common/tool/graphtool/graph_tool.go:73
Functioninit
()
adk/common/tool/graphtool/examples/4_nested_interrupt/main.go:67
Functioninit
()
compose/batch/main.go:49
Functioninit
()
compose/batch/batch/types.go:36
Functioninit
()
quickstart/chatwitheino/server/server.go:47
Functioninit
()
quickstart/eino_assistant/eino/knowledgeindexing/indexer.go:35
Functioninit
()
quickstart/eino_assistant/pkg/env/env.go:26
Functioninit
()
quickstart/eino_assistant/cmd/knowledgeindexing/main.go:40
Functioninit
()
quickstart/eino_assistant/cmd/einoagent/main.go:38
FunctioninitVectorIndex
(ctx context.Context, config *RedisVectorStoreConfig)
quickstart/eino_assistant/cmd/knowledgeindexing/main.go:129
FunctionloadCoderMsg
(ctx context.Context, name string, opts ...any)
flow/agent/deer-go/biz/eino/coder.go:38
FunctionloadMsg
(ctx context.Context, name string, opts ...any)
flow/agent/deer-go/biz/eino/coordinator.go:34
FunctionloadPlannerMsg
(ctx context.Context, name string, opts ...any)
flow/agent/deer-go/biz/eino/planner.go:35
FunctionloadReporterMsg
(ctx context.Context, name string, opts ...any)
flow/agent/deer-go/biz/eino/reporter.go:33
FunctionloadResearcherMsg
(ctx context.Context, name string, opts ...any)
flow/agent/deer-go/biz/eino/researcher.go:39
FunctionloadSession
(filePath string)
quickstart/chatwitheino/mem/store.go:258
Functionmain
()
flow/agent/react/react.go:43
Functionmain
()
flow/agent/react/agentic/main.go:39
Functionmain
()
flow/agent/react/memory_example/main.go:38
Functionmain
()
flow/agent/react/unknown_tool_handler_example/main.go:34
Functionmain
()
flow/agent/react/dynamic_option_example/main.go:45
← previousnext →901–1,000 of 1,121, ranked by callers