SYMBOL INDEX (3577 symbols across 270 files) FILE: adk/agent_tool.go type AgentToolOptions (line 42) | type AgentToolOptions struct type AgentToolOption (line 47) | type AgentToolOption function WithFullChatHistoryAsInput (line 50) | func WithFullChatHistoryAsInput() AgentToolOption { function WithAgentInputSchema (line 57) | func WithAgentInputSchema(schema *schema.ParamsOneOf) AgentToolOption { function withAgentToolEnableStreaming (line 63) | func withAgentToolEnableStreaming(enabled bool) tool.Option { function NewAgentTool (line 89) | func NewAgentTool(_ context.Context, agent Agent, options ...AgentToolOp... type agentTool (line 102) | type agentTool struct method Info (line 109) | func (at *agentTool) Info(ctx context.Context) (*schema.ToolInfo, erro... method InvokableRun (line 122) | func (at *agentTool) InvokableRun(ctx context.Context, argumentsInJSON... type agentToolOptions (line 240) | type agentToolOptions struct function withAgentToolOptions (line 247) | func withAgentToolOptions(agentName string, opts []AgentRunOption) tool.... function withAgentToolEventGenerator (line 254) | func withAgentToolEventGenerator(gen *AsyncGenerator[*AgentEvent]) tool.... function getOptionsByAgentName (line 260) | func getOptionsByAgentName(agentName string, opts []tool.Option) []Agent... function getEmitGeneratorAndEnableStreaming (line 271) | func getEmitGeneratorAndEnableStreaming(opts []tool.Option) (*AsyncGener... function getReactChatHistory (line 280) | func getReactChatHistory(ctx context.Context, destAgentName string) ([]M... function newInvokableAgentToolRunner (line 314) | func newInvokableAgentToolRunner(agent Agent, store compose.CheckPointSt... FILE: adk/agent_tool_test.go type mockAgentForTool (line 35) | type mockAgentForTool struct method Name (line 41) | func (a *mockAgentForTool) Name(_ context.Context) string { method Description (line 45) | func (a *mockAgentForTool) Description(_ context.Context) string { method Run (line 49) | func (a *mockAgentForTool) Run(_ context.Context, _ *AgentInput, _ ...... function newMockAgentForTool (line 68) | func newMockAgentForTool(name, description string, responses []*AgentEve... function TestAgentTool_Info (line 76) | func TestAgentTool_Info(t *testing.T) { function TestAgentTool_SharedParentSessionValues (line 95) | func TestAgentTool_SharedParentSessionValues(t *testing.T) { type sessionValuesAgent (line 141) | type sessionValuesAgent struct method Name (line 147) | func (a *sessionValuesAgent) Name(context.Context) string { ret... method Description (line 148) | func (a *sessionValuesAgent) Description(context.Context) string { ret... method Run (line 149) | func (a *sessionValuesAgent) Run(ctx context.Context, _ *AgentInput, _... function TestAgentTool_InvokableRun (line 171) | func TestAgentTool_InvokableRun(t *testing.T) { function TestGetReactHistory (line 269) | func TestGetReactHistory(t *testing.T) { type mockAgentWithInputCapture (line 302) | type mockAgentWithInputCapture struct method Name (line 309) | func (a *mockAgentWithInputCapture) Name(_ context.Context) string { method Description (line 313) | func (a *mockAgentWithInputCapture) Description(_ context.Context) str... method Run (line 317) | func (a *mockAgentWithInputCapture) Run(_ context.Context, input *Agen... function newMockAgentWithInputCapture (line 338) | func newMockAgentWithInputCapture(name, description string, responses []... function TestAgentToolWithOptions (line 346) | func TestAgentToolWithOptions(t *testing.T) { type fakeTCM (line 576) | type fakeTCM struct method Generate (line 578) | func (f *fakeTCM) Generate(ctx context.Context, input []*schema.Messag... method Stream (line 587) | func (f *fakeTCM) Stream(ctx context.Context, input []*schema.Message,... method WithTools (line 591) | func (f *fakeTCM) WithTools(tools []*schema.ToolInfo) (model.ToolCalli... type emitOnceModel (line 595) | type emitOnceModel struct method Generate (line 597) | func (e *emitOnceModel) Generate(ctx context.Context, input []*schema.... method Stream (line 600) | func (e *emitOnceModel) Stream(ctx context.Context, input []*schema.Me... method WithTools (line 604) | func (e *emitOnceModel) WithTools(tools []*schema.ToolInfo) (model.Too... type emitEventsAgent (line 608) | type emitEventsAgent struct method Name (line 610) | func (e *emitEventsAgent) Name(context.Context) string { return... method Description (line 611) | func (e *emitEventsAgent) Description(context.Context) string { return... method Run (line 612) | func (e *emitEventsAgent) Run(context.Context, *AgentInput, ...AgentRu... type spyAgent (line 624) | type spyAgent struct method Name (line 630) | func (s *spyAgent) Name(ctx context.Context) string { return s.... method Description (line 631) | func (s *spyAgent) Description(ctx context.Context) string { return s.... method Run (line 632) | func (s *spyAgent) Run(ctx context.Context, input *AgentInput, options... method getCaptured (line 641) | func (s *spyAgent) getCaptured() *runSession { function TestNestedAgentTool_RunPath (line 647) | func TestNestedAgentTool_RunPath(t *testing.T) { function TestNestedAgentTool_NoInternalEventsWhenDisabled (line 734) | func TestNestedAgentTool_NoInternalEventsWhenDisabled(t *testing.T) { function TestNestedAgentTool_InnerToolResultNotEmittedToOuter (line 774) | func TestNestedAgentTool_InnerToolResultNotEmittedToOuter(t *testing.T) { type simpleTool (line 817) | type simpleTool struct method Info (line 822) | func (s *simpleTool) Info(context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 826) | func (s *simpleTool) InvokableRun(ctx context.Context, argumentsInJSON... function TestAgentTool_InterruptWithoutCheckpoint (line 830) | func TestAgentTool_InterruptWithoutCheckpoint(t *testing.T) { function compositeInterruptFromLast (line 846) | func compositeInterruptFromLast(ctx context.Context, ms *bridgeStore, la... function TestAgentTool_InvokableRun_FinalOnly (line 860) | func TestAgentTool_InvokableRun_FinalOnly(t *testing.T) { type streamingAgent (line 879) | type streamingAgent struct method Name (line 881) | func (s *streamingAgent) Name(context.Context) string { return ... method Description (line 882) | func (s *streamingAgent) Description(context.Context) string { return ... method Run (line 883) | func (s *streamingAgent) Run(context.Context, *AgentInput, ...AgentRun... function TestAgentTool_InvokableRun_StreamingVariant (line 895) | func TestAgentTool_InvokableRun_StreamingVariant(t *testing.T) { function TestSequentialWorkflow_WithChatModelAgentTool_NestedRunPathAndSessions (line 908) | func TestSequentialWorkflow_WithChatModelAgentTool_NestedRunPathAndSessi... function TestRunPathGating_IgnoresInnerExitAndAllowsOutput (line 996) | func TestRunPathGating_IgnoresInnerExitAndAllowsOutput(t *testing.T) { function TestRunPathGating_IgnoresInnerTransfer (line 1024) | func TestRunPathGating_IgnoresInnerTransfer(t *testing.T) { type streamAgent (line 1052) | type streamAgent struct method Name (line 1054) | func (s *streamAgent) Name(context.Context) string { return "s" } method Description (line 1055) | func (s *streamAgent) Description(context.Context) string { return "s" } method Run (line 1056) | func (s *streamAgent) Run(context.Context, *AgentInput, ...AgentRunOpt... function TestInvokableAgentTool_InfoAndRun (line 1070) | func TestInvokableAgentTool_InfoAndRun(t *testing.T) { type emptyAgent (line 1104) | type emptyAgent struct method Name (line 1106) | func (e *emptyAgent) Name(context.Context) string { return "emp... method Description (line 1107) | func (e *emptyAgent) Description(context.Context) string { return "emp... method Run (line 1108) | func (e *emptyAgent) Run(context.Context, *AgentInput, ...AgentRunOpti... type noOutputAgent (line 1114) | type noOutputAgent struct method Name (line 1116) | func (n *noOutputAgent) Name(context.Context) string { return "... method Description (line 1117) | func (n *noOutputAgent) Description(context.Context) string { return "... method Run (line 1118) | func (n *noOutputAgent) Run(context.Context, *AgentInput, ...AgentRunO... function TestInvokableAgentTool_ErrorCases (line 1124) | func TestInvokableAgentTool_ErrorCases(t *testing.T) { FILE: adk/call_option.go type options (line 21) | type options struct type AgentRunOption (line 30) | type AgentRunOption struct method DesignateAgent (line 37) | func (o AgentRunOption) DesignateAgent(name ...string) AgentRunOption { function getCommonOptions (line 42) | func getCommonOptions(base *options, opts ...AgentRunOption) *options { function WithSessionValues (line 51) | func WithSessionValues(v map[string]any) AgentRunOption { function WithSkipTransferMessages (line 58) | func WithSkipTransferMessages() AgentRunOption { function withSharedParentSession (line 64) | func withSharedParentSession() AgentRunOption { function WithCallbacks (line 73) | func WithCallbacks(handlers ...callbacks.Handler) AgentRunOption { function WrapImplSpecificOptFn (line 80) | func WrapImplSpecificOptFn[T any](optFn func(*T)) AgentRunOption { function GetImplSpecificOptions (line 94) | func GetImplSpecificOptions[T any](base *T, opts ...AgentRunOption) *T { function filterCallbackHandlersForNestedAgents (line 125) | func filterCallbackHandlersForNestedAgents(currentAgentName string, opts... function filterOptions (line 160) | func filterOptions(agentName string, opts []AgentRunOption) []AgentRunOp... FILE: adk/call_option_test.go type mockAgentForOption (line 23) | type mockAgentForOption struct method Name (line 29) | func (m *mockAgentForOption) Name(ctx context.Context) string { method Description (line 33) | func (m *mockAgentForOption) Description(ctx context.Context) string { method Run (line 37) | func (m *mockAgentForOption) Run(ctx context.Context, input *AgentInpu... FILE: adk/callback.go type AgentCallbackInput (line 29) | type AgentCallbackInput struct type AgentCallbackOutput (line 41) | type AgentCallbackOutput struct function copyEventIterator (line 46) | func copyEventIterator(iter *AsyncIterator[*AgentEvent], n int) []*Async... function copyAgentCallbackOutput (line 82) | func copyAgentCallbackOutput(out *AgentCallbackOutput, n int) []*AgentCa... function ConvAgentCallbackInput (line 100) | func ConvAgentCallbackInput(input callbacks.CallbackInput) *AgentCallbac... function ConvAgentCallbackOutput (line 109) | func ConvAgentCallbackOutput(output callbacks.CallbackOutput) *AgentCall... function initAgentCallbacks (line 116) | func initAgentCallbacks(ctx context.Context, agentName, agentType string... function getAgentType (line 130) | func getAgentType(agent Agent) string { FILE: adk/callback_integration_test.go type callbackRecorder (line 32) | type callbackRecorder struct method getOnStartCalled (line 43) | func (r *callbackRecorder) getOnStartCalled() bool { method getOnEndCalled (line 49) | func (r *callbackRecorder) getOnEndCalled() bool { method getEventsReceived (line 55) | func (r *callbackRecorder) getEventsReceived() []*AgentEvent { function newRecordingHandler (line 63) | func newRecordingHandler(recorder *callbackRecorder) callbacks.Handler { function TestCallbackOnStartInvocation (line 111) | func TestCallbackOnStartInvocation(t *testing.T) { function TestCallbackOnEndInvocation (line 150) | func TestCallbackOnEndInvocation(t *testing.T) { function TestCallbackRunInfoForChatModelAgent (line 187) | func TestCallbackRunInfoForChatModelAgent(t *testing.T) { function TestMultipleCallbackHandlers (line 226) | func TestMultipleCallbackHandlers(t *testing.T) { function TestCallbackWithWorkflowAgent (line 271) | func TestCallbackWithWorkflowAgent(t *testing.T) { function TestCallbackEventsMatchAgentOutput (line 345) | func TestCallbackEventsMatchAgentOutput(t *testing.T) { function TestCallbackOnEndForWorkflowAgent (line 397) | func TestCallbackOnEndForWorkflowAgent(t *testing.T) { type ctxKeyForTest (line 456) | type ctxKeyForTest constant testOnStartMarkerKey (line 458) | testOnStartMarkerKey ctxKeyForTest = "onStartMarker" function TestSubAgentContextIsolation (line 460) | func TestSubAgentContextIsolation(t *testing.T) { function TestCallbackDesignatedToSpecificAgent (line 564) | func TestCallbackDesignatedToSpecificAgent(t *testing.T) { function TestCallbackDesignatedToMultipleAgents (line 657) | func TestCallbackDesignatedToMultipleAgents(t *testing.T) { function TestCallbackDesignatedExcludesNonMatchingAgents (line 750) | func TestCallbackDesignatedExcludesNonMatchingAgents(t *testing.T) { function TestMixedDesignatedAndGlobalCallbacks (line 843) | func TestMixedDesignatedAndGlobalCallbacks(t *testing.T) { function TestOnStartCalledOncePerAgentWithDesignation (line 971) | func TestOnStartCalledOncePerAgentWithDesignation(t *testing.T) { FILE: adk/callback_test.go function TestCopyEventIterator (line 30) | func TestCopyEventIterator(t *testing.T) { function TestCopyAgentCallbackOutput (line 100) | func TestCopyAgentCallbackOutput(t *testing.T) { function TestConvAgentCallbackInput (line 136) | func TestConvAgentCallbackInput(t *testing.T) { function TestConvAgentCallbackOutput (line 156) | func TestConvAgentCallbackOutput(t *testing.T) { type mockTyperAgent (line 175) | type mockTyperAgent struct method Name (line 180) | func (a *mockTyperAgent) Name(_ context.Context) string { retur... method Description (line 181) | func (a *mockTyperAgent) Description(_ context.Context) string { retur... method GetType (line 182) | func (a *mockTyperAgent) GetType() string { retur... method Run (line 183) | func (a *mockTyperAgent) Run(_ context.Context, _ *AgentInput, _ ...Ag... type mockNonTyperAgent (line 189) | type mockNonTyperAgent struct method Name (line 193) | func (a *mockNonTyperAgent) Name(_ context.Context) string { re... method Description (line 194) | func (a *mockNonTyperAgent) Description(_ context.Context) string { re... method Run (line 195) | func (a *mockNonTyperAgent) Run(_ context.Context, _ *AgentInput, _ ..... function TestGetAgentType (line 201) | func TestGetAgentType(t *testing.T) { function TestWithCallbacksOption (line 215) | func TestWithCallbacksOption(t *testing.T) { function TestWithMultipleCallbacksOption (line 228) | func TestWithMultipleCallbacksOption(t *testing.T) { FILE: adk/chatmodel.go type chatModelAgentExecCtx (line 41) | type chatModelAgentExecCtx struct method send (line 46) | func (e *chatModelAgentExecCtx) send(event *AgentEvent) { type chatModelAgentExecCtxKey (line 52) | type chatModelAgentExecCtxKey struct function withChatModelAgentExecCtx (line 54) | func withChatModelAgentExecCtx(ctx context.Context, execCtx *chatModelAg... function getChatModelAgentExecCtx (line 58) | func getChatModelAgentExecCtx(ctx context.Context) *chatModelAgentExecCtx { type chatModelAgentRunOptions (line 65) | type chatModelAgentRunOptions struct function WithChatModelOptions (line 74) | func WithChatModelOptions(opts []model.Option) AgentRunOption { function WithToolOptions (line 81) | func WithToolOptions(opts []tool.Option) AgentRunOption { function WithAgentToolRunOptions (line 88) | func WithAgentToolRunOptions(opts map[string][]AgentRunOption) AgentRunO... function WithHistoryModifier (line 96) | func WithHistoryModifier(f func(context.Context, []Message) []Message) A... type ToolsConfig (line 102) | type ToolsConfig struct type GenModelInput (line 126) | type GenModelInput function defaultGenModelInput (line 128) | func defaultGenModelInput(ctx context.Context, instruction string, input... type ChatModelAgentState (line 158) | type ChatModelAgentState struct type AgentMiddleware (line 175) | type AgentMiddleware struct type ChatModelAgentConfig (line 195) | type ChatModelAgentConfig struct type ChatModelAgent (line 309) | type ChatModelAgent struct method Name (line 502) | func (a *ChatModelAgent) Name(_ context.Context) string { method Description (line 506) | func (a *ChatModelAgent) Description(_ context.Context) string { method GetType (line 510) | func (a *ChatModelAgent) GetType() string { method OnSetSubAgents (line 514) | func (a *ChatModelAgent) OnSetSubAgents(_ context.Context, subAgents [... method OnSetAsSubAgent (line 527) | func (a *ChatModelAgent) OnSetAsSubAgent(_ context.Context, parent Age... method OnDisallowTransferToParent (line 540) | func (a *ChatModelAgent) OnDisallowTransferToParent(_ context.Context)... method applyBeforeAgent (line 600) | func (a *ChatModelAgent) applyBeforeAgent(ctx context.Context, ec *exe... method prepareExecContext (line 637) | func (a *ChatModelAgent) prepareExecContext(ctx context.Context) (*exe... method buildNoToolsRunFunc (line 696) | func (a *ChatModelAgent) buildNoToolsRunFunc(_ context.Context) runFunc { method buildReactRunFunc (line 761) | func (a *ChatModelAgent) buildReactRunFunc(ctx context.Context, bc *ex... method buildRunFunc (line 884) | func (a *ChatModelAgent) buildRunFunc(ctx context.Context) runFunc { method getRunFunc (line 912) | func (a *ChatModelAgent) getRunFunc(ctx context.Context) (context.Cont... method Run (line 952) | func (a *ChatModelAgent) Run(ctx context.Context, input *AgentInput, o... method Resume (line 1001) | func (a *ChatModelAgent) Resume(ctx context.Context, info *ResumeInfo,... type runFunc (line 340) | type runFunc function NewChatModelAgent (line 343) | func NewChatModelAgent(ctx context.Context, config *ChatModelAgentConfig... function collectToolMiddlewaresFromMiddlewares (line 394) | func collectToolMiddlewaresFromMiddlewares(mws []AgentMiddleware) []comp... constant TransferToAgentToolName (line 406) | TransferToAgentToolName = "transfer_to_agent" constant TransferToAgentToolDesc (line 407) | TransferToAgentToolDesc = "Transfer the question to another agent." constant TransferToAgentToolDescChinese (line 408) | TransferToAgentToolDescChinese = "将问题移交给其他 Agent。" type ExitTool (line 438) | type ExitTool struct method Info (line 440) | func (et ExitTool) Info(_ context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 444) | func (et ExitTool) InvokableRun(ctx context.Context, argumentsInJSON s... type transferToAgent (line 463) | type transferToAgent struct method Info (line 465) | func (tta transferToAgent) Info(_ context.Context) (*schema.ToolInfo, ... method InvokableRun (line 483) | func (tta transferToAgent) InvokableRun(ctx context.Context, arguments... function transferToAgentToolOutput (line 475) | func transferToAgentToolOutput(destName string) string { type ChatModelAgentInterruptInfo (line 550) | type ChatModelAgentInterruptInfo struct function init (line 555) | func init() { function setOutputToSession (line 559) | func setOutputToSession(ctx context.Context, msg Message, msgStream Mess... function errFunc (line 574) | func errFunc(err error) runFunc { type ChatModelAgentResumeData (line 582) | type ChatModelAgentResumeData struct type execContext (line 588) | type execContext struct function getComposeOptions (line 1097) | func getComposeOptions(opts []AgentRunOption) []compose.Option { type gobSerializer (line 1126) | type gobSerializer struct method Marshal (line 1128) | func (g *gobSerializer) Marshal(v any) ([]byte, error) { method Unmarshal (line 1137) | func (g *gobSerializer) Unmarshal(data []byte, v any) error { function preprocessComposeCheckpoint (line 1151) | func preprocessComposeCheckpoint(data []byte) ([]byte, error) { FILE: adk/chatmodel_retry_test.go function TestChatModelAgentRetry_NoTools_DirectError_Generate (line 41) | func TestChatModelAgentRetry_NoTools_DirectError_Generate(t *testing.T) { function TestChatModelAgentRetry_NoTools_DirectError_Stream (line 87) | func TestChatModelAgentRetry_NoTools_DirectError_Stream(t *testing.T) { type streamErrorModel (line 136) | type streamErrorModel struct method Generate (line 144) | func (m *streamErrorModel) Generate(_ context.Context, _ []*schema.Mes... method Stream (line 148) | func (m *streamErrorModel) Stream(_ context.Context, _ []*schema.Messa... method WithTools (line 172) | func (m *streamErrorModel) WithTools(tools []*schema.ToolInfo) (model.... function TestChatModelAgentRetry_StreamError (line 177) | func TestChatModelAgentRetry_StreamError(t *testing.T) { function TestChatModelAgentRetry_WithTools_DirectError_Generate (line 322) | func TestChatModelAgentRetry_WithTools_DirectError_Generate(t *testing.T) { function TestChatModelAgentRetry_NonRetryableError (line 376) | func TestChatModelAgentRetry_NonRetryableError(t *testing.T) { type inputCapturingModel (line 413) | type inputCapturingModel struct method Generate (line 417) | func (m *inputCapturingModel) Generate(_ context.Context, input []*sch... method Stream (line 422) | func (m *inputCapturingModel) Stream(_ context.Context, input []*schem... method WithTools (line 429) | func (m *inputCapturingModel) WithTools(_ []*schema.ToolInfo) (model.T... function TestChatModelAgentRetry_MaxRetriesExhausted (line 433) | func TestChatModelAgentRetry_MaxRetriesExhausted(t *testing.T) { function TestChatModelAgentRetry_BackoffFunction (line 473) | func TestChatModelAgentRetry_BackoffFunction(t *testing.T) { function TestChatModelAgentRetry_NoRetryConfig (line 522) | func TestChatModelAgentRetry_NoRetryConfig(t *testing.T) { function TestChatModelAgentRetry_WithTools_NonRetryAbleStreamError (line 555) | func TestChatModelAgentRetry_WithTools_NonRetryAbleStreamError(t *testin... type nonRetryAbleStreamErrorModel (line 601) | type nonRetryAbleStreamErrorModel struct method Generate (line 605) | func (m *nonRetryAbleStreamErrorModel) Generate(_ context.Context, _ [... method Stream (line 609) | func (m *nonRetryAbleStreamErrorModel) Stream(_ context.Context, _ []*... method WithTools (line 619) | func (m *nonRetryAbleStreamErrorModel) WithTools(tools []*schema.ToolI... function TestChatModelAgentRetry_NoTools_NonRetryAbleStreamError (line 624) | func TestChatModelAgentRetry_NoTools_NonRetryAbleStreamError(t *testing.... function TestDefaultBackoff (line 682) | func TestDefaultBackoff(t *testing.T) { function TestRetryExhaustedError_ErrorString (line 709) | func TestRetryExhaustedError_ErrorString(t *testing.T) { function TestWillRetryError_ErrorString (line 724) | func TestWillRetryError_ErrorString(t *testing.T) { type customError (line 729) | type customError struct method Error (line 734) | func (e *customError) Error() string { function TestWillRetryError_Unwrap (line 738) | func TestWillRetryError_Unwrap(t *testing.T) { function TestChatModelAgentRetry_DefaultIsRetryAble (line 750) | func TestChatModelAgentRetry_DefaultIsRetryAble(t *testing.T) { function TestSequentialWorkflow_RetryAbleStreamError_SuccessfulRetry (line 794) | func TestSequentialWorkflow_RetryAbleStreamError_SuccessfulRetry(t *test... type streamErrorModelNoRetry (line 881) | type streamErrorModelNoRetry struct method Generate (line 885) | func (m *streamErrorModelNoRetry) Generate(_ context.Context, _ []*sch... method Stream (line 889) | func (m *streamErrorModelNoRetry) Stream(_ context.Context, _ []*schem... method WithTools (line 901) | func (m *streamErrorModelNoRetry) WithTools(_ []*schema.ToolInfo) (mod... function TestSequentialWorkflow_NonRetryAbleStreamError_StopsFlow (line 905) | func TestSequentialWorkflow_NonRetryAbleStreamError_StopsFlow(t *testing... function TestSequentialWorkflow_NoRetryConfig_StreamError_StopsFlow (line 979) | func TestSequentialWorkflow_NoRetryConfig_StreamError_StopsFlow(t *testi... FILE: adk/chatmodel_test.go function TestChatModelAgentRun (line 36) | func TestChatModelAgentRun(t *testing.T) { function TestExitTool (line 535) | func TestExitTool(t *testing.T) { function TestParallelReturnDirectlyToolCall (line 612) | func TestParallelReturnDirectlyToolCall(t *testing.T) { function TestConcurrentSameToolSendToolGenActionUsesToolCallID (line 684) | func TestConcurrentSameToolSendToolGenActionUsesToolCallID(t *testing.T) { type myTool (line 732) | type myTool struct method Info (line 738) | func (m *myTool) Info(ctx context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 745) | func (m *myTool) InvokableRun(ctx context.Context, argumentsInJSON str... type actionTool (line 750) | type actionTool struct method Info (line 752) | func (a actionTool) Info(ctx context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 756) | func (a actionTool) InvokableRun(ctx context.Context, argumentsInJSON ... type streamActionTool (line 761) | type streamActionTool struct method Info (line 763) | func (s streamActionTool) Info(ctx context.Context) (*schema.ToolInfo,... method StreamableRun (line 767) | func (s streamActionTool) StreamableRun(ctx context.Context, arguments... type legacyStreamActionTool (line 778) | type legacyStreamActionTool struct method Info (line 780) | func (s legacyStreamActionTool) Info(ctx context.Context) (*schema.Too... method StreamableRun (line 784) | func (s legacyStreamActionTool) StreamableRun(ctx context.Context, arg... function TestChatModelAgentOutputKey (line 799) | func TestChatModelAgentOutputKey(t *testing.T) { function TestConcurrentSameStreamToolSendToolGenActionUsesToolCallID (line 1083) | func TestConcurrentSameStreamToolSendToolGenActionUsesToolCallID(t *test... function TestStreamToolLegacyNameKeyFallback (line 1133) | func TestStreamToolLegacyNameKeyFallback(t *testing.T) { function TestChatModelAgent_ToolResultMiddleware_EmitsFinalResult (line 1178) | func TestChatModelAgent_ToolResultMiddleware_EmitsFinalResult(t *testing... type simpleToolForMiddlewareTest (line 1358) | type simpleToolForMiddlewareTest struct method Info (line 1363) | func (s *simpleToolForMiddlewareTest) Info(_ context.Context) (*schema... method InvokableRun (line 1378) | func (s *simpleToolForMiddlewareTest) InvokableRun(_ context.Context, ... method StreamableRun (line 1382) | func (s *simpleToolForMiddlewareTest) StreamableRun(_ context.Context,... function TestGetComposeOptions (line 1386) | func TestGetComposeOptions(t *testing.T) { type toolOptionCapturingTool (line 1472) | type toolOptionCapturingTool struct method Info (line 1477) | func (t *toolOptionCapturingTool) Info(_ context.Context) (*schema.Too... method InvokableRun (line 1481) | func (t *toolOptionCapturingTool) InvokableRun(_ context.Context, _ st... type testToolOptions (line 1488) | type testToolOptions struct function testToolOption (line 1492) | func testToolOption(value string) tool.Option { type errorTool (line 1498) | type errorTool struct method Info (line 1502) | func (e *errorTool) Info(_ context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 1506) | func (e *errorTool) InvokableRun(_ context.Context, _ string, _ ...too... function TestChatModelAgent_PrepareExecContextError (line 1510) | func TestChatModelAgent_PrepareExecContextError(t *testing.T) { function TestPreprocessComposeCheckpoint_MigrateErrorIsReturned (line 1579) | func TestPreprocessComposeCheckpoint_MigrateErrorIsReturned(t *testing.T) { FILE: adk/config.go constant LanguageEnglish (line 26) | LanguageEnglish Language = internal.LanguageEnglish constant LanguageChinese (line 28) | LanguageChinese Language = internal.LanguageChinese function SetLanguage (line 33) | func SetLanguage(lang Language) error { FILE: adk/deterministic_transfer.go function init (line 30) | func init() { type deterministicTransferState (line 34) | type deterministicTransferState struct function AgentWithDeterministicTransferTo (line 39) | func AgentWithDeterministicTransferTo(_ context.Context, config *Determi... type agentWithDeterministicTransferTo (line 52) | type agentWithDeterministicTransferTo struct method Description (line 57) | func (a *agentWithDeterministicTransferTo) Description(ctx context.Con... method Name (line 61) | func (a *agentWithDeterministicTransferTo) Name(ctx context.Context) s... method GetType (line 65) | func (a *agentWithDeterministicTransferTo) GetType() string { method Run (line 72) | func (a *agentWithDeterministicTransferTo) Run(ctx context.Context, type resumableAgentWithDeterministicTransferTo (line 87) | type resumableAgentWithDeterministicTransferTo struct method Description (line 92) | func (a *resumableAgentWithDeterministicTransferTo) Description(ctx co... method Name (line 96) | func (a *resumableAgentWithDeterministicTransferTo) Name(ctx context.C... method GetType (line 100) | func (a *resumableAgentWithDeterministicTransferTo) GetType() string { method Run (line 107) | func (a *resumableAgentWithDeterministicTransferTo) Run(ctx context.Co... method Resume (line 122) | func (a *resumableAgentWithDeterministicTransferTo) Resume(ctx context... function forwardEventsAndAppendTransfer (line 135) | func forwardEventsAndAppendTransfer(iter *AsyncIterator[*AgentEvent], function runFlowAgentWithIsolatedSession (line 162) | func runFlowAgentWithIsolatedSession(ctx context.Context, fa *flowAgent,... function resumeFlowAgentWithIsolatedSession (line 193) | func resumeFlowAgentWithIsolatedSession(ctx context.Context, fa *flowAge... function handleFlowAgentEvents (line 230) | func handleFlowAgentEvents(ctx context.Context, iter *AsyncIterator[*Age... function sendTransferEvents (line 282) | func sendTransferEvents(generator *AsyncGenerator[*AgentEvent], toAgentN... FILE: adk/deterministic_transfer_test.go type dtTestStore (line 28) | type dtTestStore struct method Set (line 36) | func (s *dtTestStore) Set(_ context.Context, key string, value []byte)... method Get (line 41) | func (s *dtTestStore) Get(_ context.Context, key string) ([]byte, bool... function newDTTestStore (line 32) | func newDTTestStore() *dtTestStore { type dtTestAgent (line 46) | type dtTestAgent struct method Name (line 52) | func (a *dtTestAgent) Name(_ context.Context) string { method Description (line 56) | func (a *dtTestAgent) Description(_ context.Context) string { method Run (line 60) | func (a *dtTestAgent) Run(ctx context.Context, input *AgentInput, opti... method Resume (line 64) | func (a *dtTestAgent) Resume(ctx context.Context, info *ResumeInfo, op... function TestDeterministicTransferFlowAgentInterruptResume (line 71) | func TestDeterministicTransferFlowAgentInterruptResume(t *testing.T) { function TestDeterministicTransferRunPathPreserved (line 264) | func TestDeterministicTransferRunPathPreserved(t *testing.T) { function TestDeterministicTransferExitSkipsTransfer (line 337) | func TestDeterministicTransferExitSkipsTransfer(t *testing.T) { type nonFlowTestAgent (line 411) | type nonFlowTestAgent struct method Name (line 417) | func (a *nonFlowTestAgent) Name(_ context.Context) string { method Description (line 421) | func (a *nonFlowTestAgent) Description(_ context.Context) string { method Run (line 425) | func (a *nonFlowTestAgent) Run(ctx context.Context, input *AgentInput,... method Resume (line 429) | func (a *nonFlowTestAgent) Resume(ctx context.Context, info *ResumeInf... type nonResumableTestAgent (line 436) | type nonResumableTestAgent struct method Name (line 441) | func (a *nonResumableTestAgent) Name(_ context.Context) string { method Description (line 445) | func (a *nonResumableTestAgent) Description(_ context.Context) string { method Run (line 449) | func (a *nonResumableTestAgent) Run(ctx context.Context, input *AgentI... function TestDeterministicTransferNonFlowAgent_ExitSkipsTransfer (line 453) | func TestDeterministicTransferNonFlowAgent_ExitSkipsTransfer(t *testing.... function TestDeterministicTransferNonFlowAgent_AppendsTransfer (line 499) | func TestDeterministicTransferNonFlowAgent_AppendsTransfer(t *testing.T) { function TestDeterministicTransferNonFlowAgent_InterruptSkipsTransfer (line 542) | func TestDeterministicTransferNonFlowAgent_InterruptSkipsTransfer(t *tes... function TestDeterministicTransferNonFlowAgent_Resume (line 591) | func TestDeterministicTransferNonFlowAgent_Resume(t *testing.T) { function TestDeterministicTransferFlowAgent_ResumeWithInvalidState (line 645) | func TestDeterministicTransferFlowAgent_ResumeWithInvalidState(t *testin... function TestDeterministicTransferNonResumableAgent (line 692) | func TestDeterministicTransferNonResumableAgent(t *testing.T) { FILE: adk/filesystem/backend.go type FileInfo (line 27) | type FileInfo struct type GrepMatch (line 45) | type GrepMatch struct type LsInfoRequest (line 56) | type LsInfoRequest struct type ReadRequest (line 62) | type ReadRequest struct type GrepRequest (line 80) | type GrepRequest struct type GlobInfoRequest (line 131) | type GlobInfoRequest struct type WriteRequest (line 145) | type WriteRequest struct type EditRequest (line 154) | type EditRequest struct type FileContent (line 172) | type FileContent struct type Backend (line 180) | type Backend interface type ExecuteRequest (line 223) | type ExecuteRequest struct type ExecuteResponse (line 229) | type ExecuteResponse struct type Shell (line 235) | type Shell interface type StreamingShell (line 239) | type StreamingShell interface FILE: adk/filesystem/backend_inmemory.go type fileEntry (line 31) | type fileEntry struct type InMemoryBackend (line 38) | type InMemoryBackend struct method LsInfo (line 51) | func (b *InMemoryBackend) LsInfo(ctx context.Context, req *LsInfoReque... method Read (line 136) | func (b *InMemoryBackend) Read(ctx context.Context, req *ReadRequest) ... method GrepRaw (line 194) | func (b *InMemoryBackend) GrepRaw(ctx context.Context, req *GrepReques... method grepFilesInParallel (line 240) | func (b *InMemoryBackend) grepFilesInParallel(filteredFiles []string, ... method compilePattern (line 322) | func (b *InMemoryBackend) compilePattern(req *GrepRequest) (*regexp.Re... method filterFiles (line 334) | func (b *InMemoryBackend) filterFiles(searchPath string, req *GrepRequ... method filterByGlob (line 362) | func (b *InMemoryBackend) filterByGlob(files []string, searchPath stri... method filterByFileType (line 389) | func (b *InMemoryBackend) filterByFileType(files []string, fileType st... method applyContext (line 492) | func (b *InMemoryBackend) applyContext(matches []GrepMatch, req *GrepR... method GlobInfo (line 573) | func (b *InMemoryBackend) GlobInfo(ctx context.Context, req *GlobInfoR... method Write (line 623) | func (b *InMemoryBackend) Write(ctx context.Context, req *WriteRequest... method Edit (line 637) | func (b *InMemoryBackend) Edit(ctx context.Context, req *EditRequest) ... function NewInMemoryBackend (line 44) | func NewInMemoryBackend() *InMemoryBackend { function mustParseTime (line 130) | func mustParseTime(s string) time.Time { function matchFileType (line 403) | func matchFileType(ext, fileType string) bool { function normalizePath (line 683) | func normalizePath(path string) string { type grepCollector (line 696) | type grepCollector struct method processFile (line 706) | func (c *grepCollector) processFile(filePath, content string, re *rege... method findMatches (line 713) | func (c *grepCollector) findMatches(filePath, content string, re *rege... method findMultilineMatches (line 720) | func (c *grepCollector) findMultilineMatches(filePath, content string,... method findSingleLineMatches (line 742) | func (c *grepCollector) findSingleLineMatches(filePath, content string... method buildResults (line 757) | func (c *grepCollector) buildResults(b *InMemoryBackend, req *GrepRequ... method buildContentResult (line 761) | func (c *grepCollector) buildContentResult(b *InMemoryBackend, req *Gr... function newGrepCollector (line 700) | func newGrepCollector() *grepCollector { FILE: adk/filesystem/backend_inmemory_test.go function TestInMemoryBackend_WriteAndRead (line 28) | func TestInMemoryBackend_WriteAndRead(t *testing.T) { function TestInMemoryBackend_LsInfo (line 78) | func TestInMemoryBackend_LsInfo(t *testing.T) { function TestInMemoryBackend_Edit (line 123) | func TestInMemoryBackend_Edit(t *testing.T) { function TestInMemoryBackend_LsInfo_PathIsFilename (line 191) | func TestInMemoryBackend_LsInfo_PathIsFilename(t *testing.T) { function TestInMemoryBackend_GlobInfo (line 276) | func TestInMemoryBackend_GlobInfo(t *testing.T) { function TestInMemoryBackend_GlobInfo_RelativePath (line 329) | func TestInMemoryBackend_GlobInfo_RelativePath(t *testing.T) { function TestInMemoryBackend_GlobInfo_RecursivePattern (line 478) | func TestInMemoryBackend_GlobInfo_RecursivePattern(t *testing.T) { function TestInMemoryBackend_Concurrent (line 640) | func TestInMemoryBackend_Concurrent(t *testing.T) { function TestInMemoryBackend_LsInfo_FileInfoMetadata (line 665) | func TestInMemoryBackend_LsInfo_FileInfoMetadata(t *testing.T) { function TestInMemoryBackend_GlobInfo_FileInfoMetadata (line 875) | func TestInMemoryBackend_GlobInfo_FileInfoMetadata(t *testing.T) { function TestInMemoryBackend_WriteAndEdit_ModifiedAt (line 954) | func TestInMemoryBackend_WriteAndEdit_ModifiedAt(t *testing.T) { function TestInMemoryBackend_Read_EdgeCases (line 1138) | func TestInMemoryBackend_Read_EdgeCases(t *testing.T) { function TestInMemoryBackend_Edit_EdgeCases (line 1207) | func TestInMemoryBackend_Edit_EdgeCases(t *testing.T) { function TestInMemoryBackend_NormalizePath (line 1338) | func TestInMemoryBackend_NormalizePath(t *testing.T) { function TestInMemoryBackend_MatchFileType (line 1374) | func TestInMemoryBackend_MatchFileType(t *testing.T) { function TestInMemoryBackend_GrepRaw (line 1406) | func TestInMemoryBackend_GrepRaw(t *testing.T) { function TestInMemoryBackend_GrepRaw_WithContext (line 1617) | func TestInMemoryBackend_GrepRaw_WithContext(t *testing.T) { function TestInMemoryBackend_GrepRaw_Multiline (line 1714) | func TestInMemoryBackend_GrepRaw_Multiline(t *testing.T) { function TestInMemoryBackend_GrepRaw_EmptyFiles (line 1822) | func TestInMemoryBackend_GrepRaw_EmptyFiles(t *testing.T) { function TestInMemoryBackend_GrepRaw_SpecialCharacters (line 1856) | func TestInMemoryBackend_GrepRaw_SpecialCharacters(t *testing.T) { function TestInMemoryBackend_GrepRaw_Concurrent (line 1926) | func TestInMemoryBackend_GrepRaw_Concurrent(t *testing.T) { function BenchmarkInMemoryBackend_GrepRaw (line 2036) | func BenchmarkInMemoryBackend_GrepRaw(b *testing.B) { function TestInMemoryBackend_GrepRaw_ComplexScenarios (line 2101) | func TestInMemoryBackend_GrepRaw_ComplexScenarios(t *testing.T) { function TestInMemoryBackend_Read_Scenarios (line 2218) | func TestInMemoryBackend_Read_Scenarios(t *testing.T) { FILE: adk/flow.go type HistoryEntry (line 34) | type HistoryEntry struct type HistoryRewriter (line 40) | type HistoryRewriter type flowAgent (line 42) | type flowAgent struct method deepCopy (line 54) | func (a *flowAgent) deepCopy() *flowAgent { method getAgent (line 157) | func (a *flowAgent) getAgent(ctx context.Context, name string) *flowAg... method genAgentInput (line 258) | func (a *flowAgent) genAgentInput(ctx context.Context, runCtx *runCont... method Run (line 335) | func (a *flowAgent) Run(ctx context.Context, input *AgentInput, opts .... method Resume (line 373) | func (a *flowAgent) Resume(ctx context.Context, info *ResumeInfo, opts... method run (line 435) | func (a *flowAgent) run( function SetSubAgents (line 71) | func SetSubAgents(ctx context.Context, agent Agent, subAgents []Agent) (... type AgentOption (line 75) | type AgentOption function WithDisallowTransferToParent (line 78) | func WithDisallowTransferToParent() AgentOption { function WithHistoryRewriter (line 85) | func WithHistoryRewriter(h HistoryRewriter) AgentOption { function toFlowAgent (line 91) | func toFlowAgent(ctx context.Context, agent Agent, opts ...AgentOption) ... function AgentWithOptions (line 111) | func AgentWithOptions(ctx context.Context, agent Agent, opts ...AgentOpt... function setSubAgents (line 115) | func setSubAgents(ctx context.Context, agent Agent, subAgents []Agent) (... function rewriteMessage (line 171) | func rewriteMessage(msg Message, agentName string) Message { function genMsg (line 238) | func genMsg(entry *HistoryEntry, agentName string) (Message, error) { method deepCopy (line 247) | func (ai *AgentInput) deepCopy() *AgentInput { function buildDefaultHistoryRewriter (line 313) | func buildDefaultHistoryRewriter(agentName string) HistoryRewriter { type DeterministicTransferConfig (line 430) | type DeterministicTransferConfig struct function exactRunPathMatch (line 536) | func exactRunPathMatch(aPath, bPath []RunStep) bool { function wrapIterWithOnEnd (line 548) | func wrapIterWithOnEnd(ctx context.Context, iter *AsyncIterator[*AgentEv... FILE: adk/flow_test.go function strPtr (line 32) | func strPtr(s string) *string { return &s } function TestRewriteMessage (line 34) | func TestRewriteMessage(t *testing.T) { function TestTransferToAgent (line 95) | func TestTransferToAgent(t *testing.T) { function TestTransferToAgentWithDesignatedCallback (line 211) | func TestTransferToAgentWithDesignatedCallback(t *testing.T) { FILE: adk/handler.go type InvokableToolCallEndpoint (line 31) | type InvokableToolCallEndpoint type StreamableToolCallEndpoint (line 35) | type StreamableToolCallEndpoint type EnhancedInvokableToolCallEndpoint (line 37) | type EnhancedInvokableToolCallEndpoint type EnhancedStreamableToolCallEndpoint (line 39) | type EnhancedStreamableToolCallEndpoint type ToolContext (line 42) | type ToolContext struct type ModelContext (line 48) | type ModelContext struct type ChatModelAgentContext (line 63) | type ChatModelAgentContext struct type ChatModelAgentMiddleware (line 111) | type ChatModelAgentMiddleware interface type BaseChatModelAgentMiddleware (line 213) | type BaseChatModelAgentMiddleware struct method WrapInvokableToolCall (line 215) | func (b *BaseChatModelAgentMiddleware) WrapInvokableToolCall(_ context... method WrapStreamableToolCall (line 219) | func (b *BaseChatModelAgentMiddleware) WrapStreamableToolCall(_ contex... method WrapEnhancedInvokableToolCall (line 223) | func (b *BaseChatModelAgentMiddleware) WrapEnhancedInvokableToolCall(_... method WrapEnhancedStreamableToolCall (line 227) | func (b *BaseChatModelAgentMiddleware) WrapEnhancedStreamableToolCall(... method WrapModel (line 231) | func (b *BaseChatModelAgentMiddleware) WrapModel(_ context.Context, m ... method BeforeAgent (line 235) | func (b *BaseChatModelAgentMiddleware) BeforeAgent(ctx context.Context... method BeforeModelRewriteState (line 239) | func (b *BaseChatModelAgentMiddleware) BeforeModelRewriteState(ctx con... method AfterModelRewriteState (line 243) | func (b *BaseChatModelAgentMiddleware) AfterModelRewriteState(ctx cont... function SetRunLocalValue (line 256) | func SetRunLocalValue(ctx context.Context, key string, value any) error { function GetRunLocalValue (line 279) | func GetRunLocalValue(ctx context.Context, key string) (any, bool, error) { function DeleteRunLocalValue (line 298) | func DeleteRunLocalValue(ctx context.Context, key string) error { function SendEvent (line 317) | func SendEvent(ctx context.Context, event *AgentEvent) error { FILE: adk/handler_test.go type testInstructionHandler (line 34) | type testInstructionHandler struct method BeforeAgent (line 39) | func (h *testInstructionHandler) BeforeAgent(ctx context.Context, runC... type testInstructionFuncHandler (line 48) | type testInstructionFuncHandler struct method BeforeAgent (line 53) | func (h *testInstructionFuncHandler) BeforeAgent(ctx context.Context, ... type testToolsHandler (line 62) | type testToolsHandler struct method BeforeAgent (line 67) | func (h *testToolsHandler) BeforeAgent(ctx context.Context, runCtx *Ch... type testToolsFuncHandler (line 72) | type testToolsFuncHandler struct method BeforeAgent (line 77) | func (h *testToolsFuncHandler) BeforeAgent(ctx context.Context, runCtx... type testBeforeAgentHandler (line 87) | type testBeforeAgentHandler struct method BeforeAgent (line 92) | func (h *testBeforeAgentHandler) BeforeAgent(ctx context.Context, runC... type testBeforeModelRewriteStateHandler (line 96) | type testBeforeModelRewriteStateHandler struct method BeforeModelRewriteState (line 101) | func (h *testBeforeModelRewriteStateHandler) BeforeModelRewriteState(c... type testAfterModelRewriteStateHandler (line 105) | type testAfterModelRewriteStateHandler struct method AfterModelRewriteState (line 110) | func (h *testAfterModelRewriteStateHandler) AfterModelRewriteState(ctx... type testToolWrapperHandler (line 114) | type testToolWrapperHandler struct method WrapInvokableToolCall (line 120) | func (h *testToolWrapperHandler) WrapInvokableToolCall(ctx context.Con... method WrapStreamableToolCall (line 127) | func (h *testToolWrapperHandler) WrapStreamableToolCall(ctx context.Co... type testModelWrapperHandler (line 134) | type testModelWrapperHandler struct method WrapModel (line 139) | func (h *testModelWrapperHandler) WrapModel(ctx context.Context, m mod... function newTestInvokableToolCallWrapper (line 143) | func newTestInvokableToolCallWrapper(beforeFn, afterFn func()) func(cont... function newResultModifyingInvokableToolCallWrapper (line 158) | func newResultModifyingInvokableToolCallWrapper(modifyFn func(string) st... function newTestStreamableToolCallWrapper (line 170) | func newTestStreamableToolCallWrapper(beforeFn, afterFn func()) func(con... function TestHandlerExecutionOrder (line 185) | func TestHandlerExecutionOrder(t *testing.T) { function TestToolsHandlerCombinations (line 271) | func TestToolsHandlerCombinations(t *testing.T) { function TestMessageRewriteHandlers (line 473) | func TestMessageRewriteHandlers(t *testing.T) { function TestToolCallWrapperHandlers (line 552) | func TestToolCallWrapperHandlers(t *testing.T) { function TestToolContextFunctions (line 757) | func TestToolContextFunctions(t *testing.T) { type toolChainingTestModel (line 812) | type toolChainingTestModel struct method Generate (line 818) | func (m *toolChainingTestModel) Generate(ctx context.Context, msgs []*... method Stream (line 825) | func (m *toolChainingTestModel) Stream(ctx context.Context, msgs []*sc... method BindTools (line 832) | func (m *toolChainingTestModel) BindTools(tools []*schema.ToolInfo) er... function TestContextPropagation (line 836) | func TestContextPropagation(t *testing.T) { function TestCustomHandler (line 919) | func TestCustomHandler(t *testing.T) { function TestHandlerErrorHandling (line 952) | func TestHandlerErrorHandling(t *testing.T) { type namedTool (line 990) | type namedTool struct method Info (line 994) | func (t *namedTool) Info(_ context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 998) | func (t *namedTool) InvokableRun(_ context.Context, _ string, _ ...too... type streamingNamedTool (line 1002) | type streamingNamedTool struct method Info (line 1006) | func (t *streamingNamedTool) Info(_ context.Context) (*schema.ToolInfo... method InvokableRun (line 1010) | func (t *streamingNamedTool) InvokableRun(_ context.Context, _ string,... method StreamableRun (line 1014) | func (t *streamingNamedTool) StreamableRun(_ context.Context, _ string... type callableTool (line 1018) | type callableTool struct method Info (line 1023) | func (t *callableTool) Info(_ context.Context) (*schema.ToolInfo, erro... method InvokableRun (line 1027) | func (t *callableTool) InvokableRun(_ context.Context, _ string, _ ...... type countingHandler (line 1034) | type countingHandler struct method BeforeAgent (line 1042) | func (h *countingHandler) BeforeAgent(ctx context.Context, runCtx *Cha... method BeforeModelRewriteState (line 1049) | func (h *countingHandler) BeforeModelRewriteState(ctx context.Context,... method AfterModelRewriteState (line 1056) | func (h *countingHandler) AfterModelRewriteState(ctx context.Context, ... function newTestModelWrapperFn (line 1063) | func newTestModelWrapperFn(beforeFn, afterFn func()) func(context.Contex... type testWrappedModel (line 1073) | type testWrappedModel struct method Generate (line 1079) | func (m *testWrappedModel) Generate(ctx context.Context, input []*sche... method Stream (line 1090) | func (m *testWrappedModel) Stream(ctx context.Context, input []*schema... function TestModelWrapperHandlers (line 1101) | func TestModelWrapperHandlers(t *testing.T) { type simpleChatModelWithoutCallbacks (line 1275) | type simpleChatModelWithoutCallbacks struct method Generate (line 1280) | func (m *simpleChatModelWithoutCallbacks) Generate(ctx context.Context... method Stream (line 1287) | func (m *simpleChatModelWithoutCallbacks) Stream(ctx context.Context, ... method WithTools (line 1294) | func (m *simpleChatModelWithoutCallbacks) WithTools(tools []*schema.To... function newInputModifyingWrapperFn (line 1298) | func newInputModifyingWrapperFn(inputPrefix string) func(context.Context... type inputOutputModifyingModel (line 1307) | type inputOutputModifyingModel struct method Generate (line 1312) | func (m *inputOutputModifyingModel) Generate(ctx context.Context, inpu... method Stream (line 1324) | func (m *inputOutputModifyingModel) Stream(ctx context.Context, input ... function TestModelWrapper_InputModification (line 1336) | func TestModelWrapper_InputModification(t *testing.T) { function TestRunLocalValueFunctions (line 1437) | func TestRunLocalValueFunctions(t *testing.T) { function TestHandlerErrorPropagation (line 1644) | func TestHandlerErrorPropagation(t *testing.T) { function TestToolContextInWrappers (line 1749) | func TestToolContextInWrappers(t *testing.T) { FILE: adk/instruction.go constant TransferToAgentInstruction (line 28) | TransferToAgentInstruction = `Available other agents: %s constant TransferToAgentInstructionChinese (line 36) | TransferToAgentInstructionChinese = `可用的其他 agent:%s constant agentDescriptionTpl (line 44) | agentDescriptionTpl = "\n- Agent name: %s\n Agent description: %s" constant agentDescriptionTplChinese (line 45) | agentDescriptionTplChinese = "\n- Agent 名字: %s\n Agent 描述: %s" function genTransferToAgentInstruction (line 48) | func genTransferToAgentInstruction(ctx context.Context, agents []Agent) ... FILE: adk/interface.go constant ComponentOfAgent (line 33) | ComponentOfAgent components.Component = "Agent" type MessageVariant (line 38) | type MessageVariant struct method GobEncode (line 73) | func (mv *MessageVariant) GobEncode() ([]byte, error) { method GobDecode (line 106) | func (mv *MessageVariant) GobDecode(b []byte) error { method GetMessage (line 122) | func (mv *MessageVariant) GetMessage() (Message, error) { function EventFromMessage (line 50) | func EventFromMessage(msg Message, msgStream MessageStream, type messageVariantSerialization (line 65) | type messageVariantSerialization struct type TransferToAgentAction (line 137) | type TransferToAgentAction struct type AgentOutput (line 141) | type AgentOutput struct function NewTransferToAgentAction (line 148) | func NewTransferToAgentAction(destAgentName string) *AgentAction { function NewExitAction (line 153) | func NewExitAction() *AgentAction { type AgentAction (line 168) | type AgentAction struct type RunStep (line 183) | type RunStep struct method String (line 191) | func (r *RunStep) String() string { method Equals (line 195) | func (r *RunStep) Equals(r1 RunStep) bool { method GobEncode (line 199) | func (r *RunStep) GobEncode() ([]byte, error) { method GobDecode (line 209) | func (r *RunStep) GobDecode(b []byte) error { function init (line 187) | func init() { type runStepSerialization (line 219) | type runStepSerialization struct type AgentEvent (line 224) | type AgentEvent struct type AgentInput (line 241) | type AgentInput struct type Agent (line 247) | type Agent interface type OnSubAgents (line 260) | type OnSubAgents interface type ResumableAgent (line 267) | type ResumableAgent interface FILE: adk/internal/config.go type Language (line 26) | type Language constant LanguageEnglish (line 30) | LanguageEnglish Language = iota constant LanguageChinese (line 32) | LanguageChinese function SetLanguage (line 39) | func SetLanguage(lang Language) error { function getLanguage (line 50) | func getLanguage() Language { type I18nPrompts (line 58) | type I18nPrompts struct function SelectPrompt (line 65) | func SelectPrompt(prompts I18nPrompts) string { FILE: adk/interrupt.go type ResumeInfo (line 32) | type ResumeInfo struct type InterruptInfo (line 48) | type InterruptInfo struct function Interrupt (line 60) | func Interrupt(ctx context.Context, info any) *AgentEvent { function StatefulInterrupt (line 89) | func StatefulInterrupt(ctx context.Context, info any, state any) *AgentE... function CompositeInterrupt (line 120) | func CompositeInterrupt(ctx context.Context, info any, state any, constant AddressSegmentAgent (line 154) | AddressSegmentAgent AddressSegmentType = "agent" constant AddressSegmentTool (line 155) | AddressSegmentTool AddressSegmentType = "tool" function AppendAddressSegment (line 161) | func AppendAddressSegment(ctx context.Context, segType AddressSegmentTyp... function FromInterruptContexts (line 172) | func FromInterruptContexts(contexts []*InterruptCtx) *InterruptSignal { function WithCheckPointID (line 177) | func WithCheckPointID(id string) AgentRunOption { function init (line 183) | func init() { type serialization (line 190) | type serialization struct method loadCheckPoint (line 199) | func (r *Runner) loadCheckPoint(ctx context.Context, checkpointID string) ( function preprocessADKCheckpoint (line 247) | func preprocessADKCheckpoint(data []byte) []byte { method saveCheckPoint (line 263) | func (r *Runner) saveCheckPoint( constant bridgeCheckpointID (line 287) | bridgeCheckpointID = "adk_react_mock_key" function newBridgeStore (line 289) | func newBridgeStore() *bridgeStore { function newResumeBridgeStore (line 293) | func newResumeBridgeStore(data []byte) *bridgeStore { type bridgeStore (line 300) | type bridgeStore struct method Get (line 305) | func (m *bridgeStore) Get(_ context.Context, _ string) ([]byte, bool, ... method Set (line 312) | func (m *bridgeStore) Set(_ context.Context, _ string, checkPoint []by... function getNextResumeAgent (line 318) | func getNextResumeAgent(ctx context.Context, info *ResumeInfo) (string, ... function getNextResumeAgents (line 343) | func getNextResumeAgents(ctx context.Context, info *ResumeInfo) (map[str... function buildResumeInfo (line 356) | func buildResumeInfo(ctx context.Context, nextAgentID string, info *Resu... FILE: adk/interrupt_test.go type interruptTestToolsHandler (line 35) | type interruptTestToolsHandler struct method BeforeAgent (line 61) | func (h *interruptTestToolsHandler) BeforeAgent(ctx context.Context, r... function TestPreprocessADKCheckpoint (line 40) | func TestPreprocessADKCheckpoint(t *testing.T) { function TestSaveAgentEventWrapper (line 66) | func TestSaveAgentEventWrapper(t *testing.T) { function TestInterruptFunctionsPopulateInterruptContextsImmediately (line 105) | func TestInterruptFunctionsPopulateInterruptContextsImmediately(t *testi... function TestSimpleInterrupt (line 167) | func TestSimpleInterrupt(t *testing.T) { function TestMultiAgentInterrupt (line 233) | func TestMultiAgentInterrupt(t *testing.T) { function TestWorkflowInterrupt (line 324) | func TestWorkflowInterrupt(t *testing.T) { function TestChatModelInterrupt (line 1052) | func TestChatModelInterrupt(t *testing.T) { function TestChatModelAgentToolInterrupt (line 1142) | func TestChatModelAgentToolInterrupt(t *testing.T) { function newMyStore (line 1263) | func newMyStore() *myStore { type myStore (line 1269) | type myStore struct method Set (line 1273) | func (m *myStore) Set(_ context.Context, key string, value []byte) err... method Get (line 1278) | func (m *myStore) Get(_ context.Context, key string) ([]byte, bool, er... type myAgentOptions (line 1283) | type myAgentOptions struct function withValue (line 1289) | func withValue(value string) AgentRunOption { type myAgent (line 1295) | type myAgent struct method Name (line 1301) | func (m *myAgent) Name(_ context.Context) string { method Description (line 1308) | func (m *myAgent) Description(_ context.Context) string { method Run (line 1312) | func (m *myAgent) Run(ctx context.Context, input *AgentInput, options ... method Resume (line 1316) | func (m *myAgent) Resume(ctx context.Context, info *ResumeInfo, opts .... type myModel (line 1320) | type myModel struct method Generate (line 1326) | func (m *myModel) Generate(_ context.Context, input []*schema.Message,... method Stream (line 1338) | func (m *myModel) Stream(_ context.Context, _ []*schema.Message, _ ...... method WithTools (line 1342) | func (m *myModel) WithTools(_ []*schema.ToolInfo) (model.ToolCallingCh... type myTool1 (line 1346) | type myTool1 struct method Info (line 1348) | func (m *myTool1) Info(_ context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 1355) | func (m *myTool1) InvokableRun(ctx context.Context, _ string, _ ...too... function TestCyclicalAgentInterrupt (line 1369) | func TestCyclicalAgentInterrupt(t *testing.T) { type myStatefulTool (line 1511) | type myStatefulTool struct method Info (line 1516) | func (m *myStatefulTool) Info(_ context.Context) (*schema.ToolInfo, er... method InvokableRun (line 1531) | func (m *myStatefulTool) InvokableRun(ctx context.Context, _ string, _... type myStatefulToolState (line 1523) | type myStatefulToolState struct function init (line 1527) | func init() { function TestChatModelParallelToolInterruptAndResume (line 1546) | func TestChatModelParallelToolInterruptAndResume(t *testing.T) { function TestNestedChatModelAgentWithAgentTool (line 1651) | func TestNestedChatModelAgentWithAgentTool(t *testing.T) { function consumeUntilInterrupt (line 1807) | func consumeUntilInterrupt(iter *AsyncIterator[*AgentEvent]) (normalEven... type returnDirectlyTool (line 1822) | type returnDirectlyTool struct method Info (line 1826) | func (t *returnDirectlyTool) Info(_ context.Context) (*schema.ToolInfo... method InvokableRun (line 1833) | func (t *returnDirectlyTool) InvokableRun(_ context.Context, _ string,... type interruptingTool (line 1837) | type interruptingTool struct method Info (line 1841) | func (i *interruptingTool) Info(_ context.Context) (*schema.ToolInfo, ... method InvokableRun (line 1848) | func (i *interruptingTool) InvokableRun(ctx context.Context, _ string,... type twoToolCallModel (line 1860) | type twoToolCallModel struct method Generate (line 1868) | func (m *twoToolCallModel) Generate(_ context.Context, _ []*schema.Mes... method Stream (line 1905) | func (m *twoToolCallModel) Stream(_ context.Context, _ []*schema.Messa... method WithTools (line 1909) | func (m *twoToolCallModel) WithTools(_ []*schema.ToolInfo) (model.Tool... method GetReceivedTools (line 1913) | func (m *twoToolCallModel) GetReceivedTools() []*schema.ToolInfo { type dynamicTool (line 1919) | type dynamicTool struct method Info (line 1923) | func (t *dynamicTool) Info(_ context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 1930) | func (t *dynamicTool) InvokableRun(_ context.Context, _ string, _ ...t... function TestReturnDirectlyEventSentAfterResume (line 1934) | func TestReturnDirectlyEventSentAfterResume(t *testing.T) { FILE: adk/middlewares/dynamictool/toolsearch/toolsearch.go type Config (line 33) | type Config struct function New (line 57) | func New(ctx context.Context, config *Config) (adk.ChatModelAgentMiddlew... type middleware (line 70) | type middleware struct method BeforeAgent (line 75) | func (m *middleware) BeforeAgent(ctx context.Context, runCtx *adk.Chat... method WrapModel (line 90) | func (m *middleware) WrapModel(_ context.Context, cm model.BaseChatMod... type wrapper (line 94) | type wrapper struct method Generate (line 101) | func (w *wrapper) Generate(ctx context.Context, input []*schema.Messag... method Stream (line 109) | func (w *wrapper) Stream(ctx context.Context, input []*schema.Message,... function newToolSearchTool (line 117) | func newToolSearchTool(toolNames []string) *toolSearchTool { type toolSearchTool (line 121) | type toolSearchTool struct method Info (line 129) | func (t *toolSearchTool) Info(ctx context.Context) (*schema.ToolInfo, ... method InvokableRun (line 151) | func (t *toolSearchTool) InvokableRun(ctx context.Context, argumentsIn... constant toolSearchToolName (line 126) | toolSearchToolName = "tool_search" type toolSearchArgs (line 143) | type toolSearchArgs struct type toolSearchResult (line 147) | type toolSearchResult struct function getToolNames (line 185) | func getToolNames(ctx context.Context, tools []tool.BaseTool) ([]string,... function extractSelectedTools (line 197) | func extractSelectedTools(ctx context.Context, messages []*schema.Messag... function invertSelect (line 214) | func invertSelect[T comparable](all []T, selected []T) map[T]struct{} { function removeTools (line 229) | func removeTools(ctx context.Context, all []*schema.ToolInfo, dynamicToo... FILE: adk/middlewares/dynamictool/toolsearch/toolsearch_test.go type mockTool (line 33) | type mockTool struct method Info (line 38) | func (m *mockTool) Info(ctx context.Context) (*schema.ToolInfo, error) { function newMockTool (line 45) | func newMockTool(name, desc string) *mockTool { function TestNew (line 49) | func TestNew(t *testing.T) { function TestMiddleware_BeforeAgent (line 77) | func TestMiddleware_BeforeAgent(t *testing.T) { function TestToolSearchTool_Info (line 111) | func TestToolSearchTool_Info(t *testing.T) { function TestToolSearchTool_InvokableRun (line 123) | func TestToolSearchTool_InvokableRun(t *testing.T) { function TestGetToolNames (line 197) | func TestGetToolNames(t *testing.T) { function TestExtractSelectedTools (line 218) | func TestExtractSelectedTools(t *testing.T) { function TestInvertSelect (line 275) | func TestInvertSelect(t *testing.T) { function TestRemoveTools (line 319) | func TestRemoveTools(t *testing.T) { type mockChatModel (line 388) | type mockChatModel struct method Generate (line 393) | func (m *mockChatModel) Generate(ctx context.Context, input []*schema.... method Stream (line 400) | func (m *mockChatModel) Stream(ctx context.Context, input []*schema.Me... function TestWrapper_Generate (line 407) | func TestWrapper_Generate(t *testing.T) { function TestWrapper_Stream (line 449) | func TestWrapper_Stream(t *testing.T) { FILE: adk/middlewares/filesystem/filesystem.go constant ToolNameLs (line 40) | ToolNameLs = "ls" constant ToolNameReadFile (line 41) | ToolNameReadFile = "read_file" constant ToolNameWriteFile (line 42) | ToolNameWriteFile = "write_file" constant ToolNameEditFile (line 43) | ToolNameEditFile = "edit_file" constant ToolNameGlob (line 44) | ToolNameGlob = "glob" constant ToolNameGrep (line 45) | ToolNameGrep = "grep" constant ToolNameExecute (line 46) | ToolNameExecute = "execute" constant noFilesFound (line 48) | noFilesFound = "No files found" constant noMatchesFound (line 49) | noMatchesFound = "No matches found" type ToolConfig (line 53) | type ToolConfig struct type Config (line 75) | type Config struct method Validate (line 151) | func (c *Config) Validate() error { function NewMiddleware (line 170) | func NewMiddleware(ctx context.Context, config *Config) (adk.AgentMiddle... type MiddlewareConfig (line 219) | type MiddlewareConfig struct method Validate (line 282) | func (c *MiddlewareConfig) Validate() error { method mergeToolConfigWithDesc (line 298) | func (c *MiddlewareConfig) mergeToolConfigWithDesc( function New (line 340) | func New(ctx context.Context, config *MiddlewareConfig) (adk.ChatModelAg... type filesystemMiddleware (line 362) | type filesystemMiddleware struct method BeforeAgent (line 368) | func (m *filesystemMiddleware) BeforeAgent(ctx context.Context, runCtx... type toolSpec (line 384) | type toolSpec struct function getFilesystemTools (line 390) | func getFilesystemTools(_ context.Context, middlewareConfig *MiddlewareC... function createToolFromSpec (line 497) | func createToolFromSpec(middlewareConfig *MiddlewareConfig, spec toolSpe... function getOrCreateTool (line 513) | func getOrCreateTool(customTool tool.BaseTool, createFunc func() (tool.B... type lsArgs (line 520) | type lsArgs struct function newLsTool (line 524) | func newLsTool(fs filesystem.Backend, name string, desc string) (tool.Ba... type readFileArgs (line 546) | type readFileArgs struct function newReadFileTool (line 557) | func newReadFileTool(fs filesystem.Backend, name string, desc string) (t... type writeFileArgs (line 592) | type writeFileArgs struct function newWriteFileTool (line 600) | func newWriteFileTool(fs filesystem.Backend, name string, desc string) (... type editFileArgs (line 618) | type editFileArgs struct function newEditFileTool (line 632) | func newEditFileTool(fs filesystem.Backend, name string, desc string) (t... type globArgs (line 652) | type globArgs struct function newGlobTool (line 660) | func newGlobTool(fs filesystem.Backend, name string, desc string) (tool.... type grepArgs (line 685) | type grepArgs struct function newGrepTool (line 739) | func newGrepTool(fs filesystem.Backend, name string, desc string) (tool.... type executeArgs (line 804) | type executeArgs struct function newExecuteTool (line 808) | func newExecuteTool(sb filesystem.Shell, name string, desc string) (tool... function newStreamingExecuteTool (line 826) | func newStreamingExecuteTool(sb filesystem.StreamingShell, name string, ... function convExecuteResponse (line 893) | func convExecuteResponse(response *filesystem.ExecuteResponse) string { function valueOrDefault (line 913) | func valueOrDefault[T any](ptr *T, defaultValue T) T { function applyPagination (line 920) | func applyPagination[T any](items []T, offset, headLimit int) []T { function formatFileMatches (line 935) | func formatFileMatches(matches []filesystem.GrepMatch, offset, headLimit... function formatContentMatches (line 957) | func formatContentMatches(matches []filesystem.GrepMatch, showLineNum bo... function formatCountMatches (line 975) | func formatCountMatches(matches []filesystem.GrepMatch, offset, headLimi... function selectToolDesc (line 1018) | func selectToolDesc(customDesc string, defaultEnglish, defaultChinese st... function selectToolName (line 1029) | func selectToolName(customName string, defaultName string) string { FILE: adk/middlewares/filesystem/filesystem_test.go function setupTestBackend (line 36) | func setupTestBackend() *filesystem.InMemoryBackend { function invokeTool (line 66) | func invokeTool(_ *testing.T, bt tool.BaseTool, input string) (string, e... function TestLsTool (line 75) | func TestLsTool(t *testing.T) { function TestReadFileTool (line 120) | func TestReadFileTool(t *testing.T) { function TestWriteFileTool (line 179) | func TestWriteFileTool(t *testing.T) { function TestEditFileTool (line 238) | func TestEditFileTool(t *testing.T) { function TestGlobTool (line 319) | func TestGlobTool(t *testing.T) { function TestGrepTool (line 381) | func TestGrepTool(t *testing.T) { function TestExecuteTool (line 443) | func TestExecuteTool(t *testing.T) { function ptrOf (line 521) | func ptrOf[T any](t T) *T { type mockShellBackend (line 525) | type mockShellBackend struct method Execute (line 530) | func (m *mockShellBackend) Execute(ctx context.Context, req *filesyste... function TestGetFilesystemTools (line 534) | func TestGetFilesystemTools(t *testing.T) { function TestNew (line 600) | func TestNew(t *testing.T) { function TestFilesystemMiddleware_BeforeAgent (line 653) | func TestFilesystemMiddleware_BeforeAgent(t *testing.T) { function TestFilesystemMiddleware_WrapInvokableToolCall (line 685) | func TestFilesystemMiddleware_WrapInvokableToolCall(t *testing.T) { function TestGrepToolWithSortingAndPagination (line 708) | func TestGrepToolWithSortingAndPagination(t *testing.T) { function TestApplyPagination (line 817) | func TestApplyPagination(t *testing.T) { function TestCustomToolNames (line 849) | func TestCustomToolNames(t *testing.T) { function TestSelectToolName (line 991) | func TestSelectToolName(t *testing.T) { function TestGetOrCreateTool (line 1004) | func TestGetOrCreateTool(t *testing.T) { function TestCustomTools (line 1057) | func TestCustomTools(t *testing.T) { function TestToolConfig (line 1217) | func TestToolConfig(t *testing.T) { function TestToolConfigEdgeCases (line 1360) | func TestToolConfigEdgeCases(t *testing.T) { function TestGetFilesystemTools_DisableAllTools (line 1513) | func TestGetFilesystemTools_DisableAllTools(t *testing.T) { function TestGetFilesystemTools_StreamingShell (line 1532) | func TestGetFilesystemTools_StreamingShell(t *testing.T) { function TestGetFilesystemTools_NilBackend (line 1572) | func TestGetFilesystemTools_NilBackend(t *testing.T) { function TestGetFilesystemTools_PartialDisable (line 1617) | func TestGetFilesystemTools_PartialDisable(t *testing.T) { type mockStreamingShell (line 1644) | type mockStreamingShell struct method ExecuteStreaming (line 1646) | func (m *mockStreamingShell) ExecuteStreaming(ctx context.Context, inp... type mockStreamingShellWithError (line 1658) | type mockStreamingShellWithError struct method ExecuteStreaming (line 1660) | func (m *mockStreamingShellWithError) ExecuteStreaming(ctx context.Con... type mockStreamingShellWithRecvError (line 1664) | type mockStreamingShellWithRecvError struct method ExecuteStreaming (line 1666) | func (m *mockStreamingShellWithRecvError) ExecuteStreaming(ctx context... type mockStreamingShellWithExitCode (line 1675) | type mockStreamingShellWithExitCode struct method ExecuteStreaming (line 1679) | func (m *mockStreamingShellWithExitCode) ExecuteStreaming(ctx context.... type mockStreamingShellNoOutput (line 1691) | type mockStreamingShellNoOutput struct method ExecuteStreaming (line 1693) | func (m *mockStreamingShellNoOutput) ExecuteStreaming(ctx context.Cont... type mockStreamingShellTruncated (line 1704) | type mockStreamingShellTruncated struct method ExecuteStreaming (line 1706) | func (m *mockStreamingShellTruncated) ExecuteStreaming(ctx context.Con... type mockStreamingShellNilChunk (line 1719) | type mockStreamingShellNilChunk struct method ExecuteStreaming (line 1721) | func (m *mockStreamingShellNilChunk) ExecuteStreaming(ctx context.Cont... function TestNewStreamingExecuteTool (line 1734) | func TestNewStreamingExecuteTool(t *testing.T) { function TestNew_StreamingShell (line 1892) | func TestNew_StreamingShell(t *testing.T) { function TestNewMiddleware_Validation (line 1919) | func TestNewMiddleware_Validation(t *testing.T) { function TestMiddlewareConfig_Validate (line 1946) | func TestMiddlewareConfig_Validate(t *testing.T) { function TestNewStreamingExecuteTool_MultipleChunks (line 1981) | func TestNewStreamingExecuteTool_MultipleChunks(t *testing.T) { type mockStreamingShellMultiChunk (line 2008) | type mockStreamingShellMultiChunk struct method ExecuteStreaming (line 2010) | func (m *mockStreamingShellMultiChunk) ExecuteStreaming(ctx context.Co... function TestNewStreamingExecuteTool_ExitCodeOnlyInLastChunk (line 2021) | func TestNewStreamingExecuteTool_ExitCodeOnlyInLastChunk(t *testing.T) { type mockStreamingShellExitCodeLast (line 2045) | type mockStreamingShellExitCodeLast struct method ExecuteStreaming (line 2049) | func (m *mockStreamingShellExitCodeLast) ExecuteStreaming(ctx context.... function TestConvExecuteResponse_NilResponse (line 2059) | func TestConvExecuteResponse_NilResponse(t *testing.T) { function TestConvExecuteResponse_NilExitCode (line 2064) | func TestConvExecuteResponse_NilExitCode(t *testing.T) { function TestConfig_Validate (line 2071) | func TestConfig_Validate(t *testing.T) { function TestGetFilesystemTools_CustomToolWithShell (line 2104) | func TestGetFilesystemTools_CustomToolWithShell(t *testing.T) { function TestMergeToolConfigWithDesc (line 2133) | func TestMergeToolConfigWithDesc(t *testing.T) { function TestNewMiddleware_WithShell (line 2175) | func TestNewMiddleware_WithShell(t *testing.T) { function TestNewExecuteTool_ShellError (line 2202) | func TestNewExecuteTool_ShellError(t *testing.T) { type mockShellBackendWithError (line 2213) | type mockShellBackendWithError struct method Execute (line 2215) | func (m *mockShellBackendWithError) Execute(ctx context.Context, req *... FILE: adk/middlewares/filesystem/large_tool_result.go type toolResultOffloadingConfig (line 36) | type toolResultOffloadingConfig struct function newToolResultOffloading (line 42) | func newToolResultOffloading(ctx context.Context, config *toolResultOffl... type toolResultOffloading (line 65) | type toolResultOffloading struct method invoke (line 71) | func (t *toolResultOffloading) invoke(endpoint compose.InvokableToolEn... method stream (line 85) | func (t *toolResultOffloading) stream(endpoint compose.StreamableToolE... method handleResult (line 103) | func (t *toolResultOffloading) handleResult(ctx context.Context, resul... function concatString (line 138) | func concatString(sr *schema.StreamReader[string]) (string, error) { function formatToolMessage (line 155) | func formatToolMessage(s string) string { FILE: adk/middlewares/filesystem/large_tool_result_test.go type mockBackend (line 32) | type mockBackend struct method Write (line 42) | func (m *mockBackend) Write(ctx context.Context, req *WriteRequest) er... method Read (line 47) | func (m *mockBackend) Read(ctx context.Context, req *ReadRequest) (*Fi... method LsInfo (line 55) | func (m *mockBackend) LsInfo(ctx context.Context, _ *LsInfoRequest) ([... method GrepRaw (line 59) | func (m *mockBackend) GrepRaw(ctx context.Context, _ *GrepRequest) ([]... method GlobInfo (line 63) | func (m *mockBackend) GlobInfo(ctx context.Context, _ *GlobInfoRequest... method Edit (line 67) | func (m *mockBackend) Edit(ctx context.Context, _ *EditRequest) error { function newMockBackend (line 36) | func newMockBackend() *mockBackend { function TestToolResultOffloading_SmallResult (line 71) | func TestToolResultOffloading_SmallResult(t *testing.T) { function TestToolResultOffloading_LargeResult (line 113) | func TestToolResultOffloading_LargeResult(t *testing.T) { function TestToolResultOffloading_CustomPathGenerator (line 170) | func TestToolResultOffloading_CustomPathGenerator(t *testing.T) { function TestToolResultOffloading_PathGeneratorError (line 218) | func TestToolResultOffloading_PathGeneratorError(t *testing.T) { function TestToolResultOffloading_EndpointError (line 255) | func TestToolResultOffloading_EndpointError(t *testing.T) { function TestToolResultOffloading_DefaultTokenLimit (line 288) | func TestToolResultOffloading_DefaultTokenLimit(t *testing.T) { function TestToolResultOffloading_Stream (line 328) | func TestToolResultOffloading_Stream(t *testing.T) { function TestToolResultOffloading_StreamError (line 400) | func TestToolResultOffloading_StreamError(t *testing.T) { function TestFormatToolMessage (line 433) | func TestFormatToolMessage(t *testing.T) { function TestConcatString (line 481) | func TestConcatString(t *testing.T) { function TestToolResultOffloading_BackendWriteError (line 544) | func TestToolResultOffloading_BackendWriteError(t *testing.T) { type failingBackend (line 582) | type failingBackend struct method Write (line 586) | func (f *failingBackend) Write(ctx context.Context, req *WriteRequest)... method Read (line 593) | func (f *failingBackend) Read(ctx context.Context, req *ReadRequest) (... method LsInfo (line 597) | func (f *failingBackend) LsInfo(ctx context.Context, _ *LsInfoRequest)... method GrepRaw (line 601) | func (f *failingBackend) GrepRaw(ctx context.Context, _ *GrepRequest) ... method GlobInfo (line 605) | func (f *failingBackend) GlobInfo(ctx context.Context, _ *GlobInfoRequ... method Edit (line 609) | func (f *failingBackend) Edit(ctx context.Context, _ *EditRequest) err... FILE: adk/middlewares/filesystem/prompt.go constant tooLargeToolMessage (line 28) | tooLargeToolMessage = `Tool result too large, the result of this tool ca... constant tooLargeToolMessageChinese (line 36) | tooLargeToolMessageChinese = `工具结果过大,此工具调用 {tool_call_id} 的结果已保存到文件系统的以下... constant ListFilesToolDesc (line 44) | ListFilesToolDesc = `Lists all files in the filesystem, filtering by dir... constant ListFilesToolDescChinese (line 52) | ListFilesToolDescChinese = `列出文件系统中的所有文件,按目录过滤。 constant ReadFileToolDesc (line 60) | ReadFileToolDesc = `Reads a file from the filesystem. You can access any... constant ReadFileToolDescChinese (line 76) | ReadFileToolDescChinese = `从文件系统读取文件。你可以使用此工具直接访问任何文件。 constant EditFileToolDesc (line 92) | EditFileToolDesc = `Performs exact string replacements in files. constant EditFileToolDescChinese (line 102) | EditFileToolDescChinese = `在文件中执行精确的字符串替换。 constant WriteFileToolDesc (line 112) | WriteFileToolDesc = `Writes a file to the local filesystem. constant WriteFileToolDescChinese (line 121) | WriteFileToolDescChinese = `将文件写入本地文件系统。 constant GlobToolDesc (line 130) | GlobToolDesc = `Fast file pattern matching tool that works with any code... constant GlobToolDescChinese (line 141) | GlobToolDescChinese = `适用于任何代码库大小的快速文件模式匹配工具 constant GrepToolDesc (line 152) | GrepToolDesc = ` constant GrepToolDescChinese (line 164) | GrepToolDescChinese = ` constant ExecuteToolDesc (line 176) | ExecuteToolDesc = ` constant ExecuteToolDescChinese (line 219) | ExecuteToolDescChinese = ` FILE: adk/middlewares/patchtoolcalls/patchtoolcalls.go type Config (line 30) | type Config struct function New (line 49) | func New(ctx context.Context, cfg *Config) (adk.ChatModelAgentMiddleware... type middleware (line 59) | type middleware struct method BeforeModelRewriteState (line 64) | func (m *middleware) BeforeModelRewriteState(ctx context.Context, stat... method createPatchedToolMessage (line 107) | func (m *middleware) createPatchedToolMessage(ctx context.Context, tc ... function hasCorrespondingToolMessage (line 98) | func hasCorrespondingToolMessage(messages []adk.Message, toolCallID stri... constant defaultPatchedToolMessageTemplate (line 124) | defaultPatchedToolMessageTemplate = "Tool call %s with id %s was ... constant defaultPatchedToolMessageTemplateChinese (line 125) | defaultPatchedToolMessageTemplateChinese = "工具调用 %s(ID 为 %s)已被取消——在其完成之前... FILE: adk/middlewares/patchtoolcalls/patchtoolcalls_test.go function TestPatchToolCalls (line 30) | func TestPatchToolCalls(t *testing.T) { FILE: adk/middlewares/plantask/backend_test.go type inMemoryBackend (line 29) | type inMemoryBackend struct method LsInfo (line 40) | func (b *inMemoryBackend) LsInfo(ctx context.Context, req *LsInfoReque... method Read (line 55) | func (b *inMemoryBackend) Read(ctx context.Context, req *ReadRequest) ... method Write (line 66) | func (b *inMemoryBackend) Write(ctx context.Context, req *WriteRequest... method Delete (line 74) | func (b *inMemoryBackend) Delete(ctx context.Context, req *DeleteReque... function newInMemoryBackend (line 34) | func newInMemoryBackend() *inMemoryBackend { FILE: adk/middlewares/plantask/plantask.go type Config (line 28) | type Config struct function New (line 36) | func New(ctx context.Context, config *Config) (adk.ChatModelAgentMiddlew... type middleware (line 50) | type middleware struct method BeforeAgent (line 56) | func (m *middleware) BeforeAgent(ctx context.Context, runCtx *adk.Chat... FILE: adk/middlewares/plantask/plantask_test.go function TestNew (line 30) | func TestNew(t *testing.T) { function TestMiddlewareBeforeAgent (line 50) | func TestMiddlewareBeforeAgent(t *testing.T) { function TestIntegration (line 83) | func TestIntegration(t *testing.T) { FILE: adk/middlewares/plantask/task.go constant highWatermarkFileName (line 28) | highWatermarkFileName = ".highwatermark" type task (line 30) | type task struct type taskOut (line 42) | type taskOut struct constant taskStatusPending (line 47) | taskStatusPending = "pending" constant taskStatusInProgress (line 48) | taskStatusInProgress = "in_progress" constant taskStatusCompleted (line 49) | taskStatusCompleted = "completed" constant taskStatusDeleted (line 50) | taskStatusDeleted = "deleted" type DeleteRequest (line 58) | type DeleteRequest struct type Backend (line 64) | type Backend interface function isValidTaskID (line 75) | func isValidTaskID(taskID string) bool { function appendUnique (line 79) | func appendUnique(slice []string, items ...string) []string { function hasCyclicDependency (line 93) | func hasCyclicDependency(taskMap map[string]*task, blockerID, blockedID ... function canReach (line 102) | func canReach(taskMap map[string]*task, fromID, toID string, visited map... FILE: adk/middlewares/plantask/task_create.go function newTaskCreateTool (line 32) | func newTaskCreateTool(backend Backend, baseDir string, lock *sync.Mutex... type taskCreateTool (line 36) | type taskCreateTool struct method Info (line 49) | func (t *taskCreateTool) Info(ctx context.Context) (*schema.ToolInfo, ... method InvokableRun (line 88) | func (t *taskCreateTool) InvokableRun(ctx context.Context, argumentsIn... type taskCreateArgs (line 42) | type taskCreateArgs struct constant TaskCreateToolName (line 182) | TaskCreateToolName = "TaskCreate" constant taskCreateToolDesc (line 183) | taskCreateToolDesc = `Use this tool to create a structured task list for... constant taskCreateToolDescChinese (line 225) | taskCreateToolDescChinese = `使用此工具为当前编码会话创建结构化的任务列表。这有助于跟踪进度、组织复杂任务,并向用户... FILE: adk/middlewares/plantask/task_create_test.go function TestTaskCreateTool (line 29) | func TestTaskCreateTool(t *testing.T) { function TestTaskCreateToolWithMetadata (line 71) | func TestTaskCreateToolWithMetadata(t *testing.T) { FILE: adk/middlewares/plantask/task_get.go function newTaskGetTool (line 33) | func newTaskGetTool(backend Backend, baseDir string, lock *sync.Mutex) *... type taskGetTool (line 37) | type taskGetTool struct method Info (line 43) | func (t *taskGetTool) Info(ctx context.Context) (*schema.ToolInfo, err... method InvokableRun (line 66) | func (t *taskGetTool) InvokableRun(ctx context.Context, argumentsInJSO... type taskGetArgs (line 62) | type taskGetArgs struct constant TaskGetToolName (line 131) | TaskGetToolName = "TaskGet" constant taskGetToolDesc (line 132) | taskGetToolDesc = `Use this tool to retrieve a task by its ID from the t... constant taskGetToolDescChinese (line 155) | taskGetToolDescChinese = `使用此工具通过任务 ID 从任务列表中获取任务。 FILE: adk/middlewares/plantask/task_get_test.go function TestTaskGetTool (line 29) | func TestTaskGetTool(t *testing.T) { function TestTaskGetToolInvalidTaskID (line 65) | func TestTaskGetToolInvalidTaskID(t *testing.T) { FILE: adk/middlewares/plantask/task_list.go function newTaskListTool (line 34) | func newTaskListTool(backend Backend, baseDir string, lock *sync.Mutex) ... type taskListTool (line 38) | type taskListTool struct method Info (line 44) | func (t *taskListTool) Info(ctx context.Context) (*schema.ToolInfo, er... method InvokableRun (line 101) | func (t *taskListTool) InvokableRun(ctx context.Context, argumentsInJS... function listTasks (line 57) | func listTasks(ctx context.Context, backend Backend, baseDir string) ([]... constant TaskListToolName (line 151) | TaskListToolName = "TaskList" constant taskListToolDesc (line 152) | taskListToolDesc = `Use this tool to list all tasks in the task list. constant taskListToolDescChinese (line 174) | taskListToolDescChinese = `使用此工具列出任务列表中的所有任务。 FILE: adk/middlewares/plantask/task_list_test.go function TestTaskListTool (line 29) | func TestTaskListTool(t *testing.T) { FILE: adk/middlewares/plantask/task_update.go function newTaskUpdateTool (line 33) | func newTaskUpdateTool(backend Backend, baseDir string, lock *sync.Mutex... type taskUpdateTool (line 37) | type taskUpdateTool struct method Info (line 55) | func (t *taskUpdateTool) Info(ctx context.Context) (*schema.ToolInfo, ... method InvokableRun (line 122) | func (t *taskUpdateTool) InvokableRun(ctx context.Context, argumentsIn... method removeTaskFromDependencies (line 286) | func (t *taskUpdateTool) removeTaskFromDependencies(ctx context.Contex... method addBlockedByToTask (line 335) | func (t *taskUpdateTool) addBlockedByToTask(ctx context.Context, targe... method addBlocksToTask (line 362) | func (t *taskUpdateTool) addBlocksToTask(ctx context.Context, targetTa... method checkIfNeedDeleteAllTasks (line 390) | func (t *taskUpdateTool) checkIfNeedDeleteAllTasks(ctx context.Context... type taskUpdateArgs (line 43) | type taskUpdateArgs struct constant TaskUpdateToolName (line 414) | TaskUpdateToolName = "TaskUpdate" constant taskUpdateToolDesc (line 415) | taskUpdateToolDesc = `Use this tool to update a task in the task list. constant taskUpdateToolDescChinese (line 491) | taskUpdateToolDescChinese = `使用此工具更新任务列表中的任务。 FILE: adk/middlewares/plantask/task_update_test.go function TestTaskUpdateTool (line 29) | func TestTaskUpdateTool(t *testing.T) { function TestTaskUpdateToolOwnerAndMetadata (line 75) | func TestTaskUpdateToolOwnerAndMetadata(t *testing.T) { function TestTaskUpdateToolBlocks (line 124) | func TestTaskUpdateToolBlocks(t *testing.T) { function TestTaskUpdateToolDelete (line 194) | func TestTaskUpdateToolDelete(t *testing.T) { function TestTaskUpdateToolInvalidTaskID (line 219) | func TestTaskUpdateToolInvalidTaskID(t *testing.T) { function TestTaskUpdateToolBlocksDeduplication (line 259) | func TestTaskUpdateToolBlocksDeduplication(t *testing.T) { function TestTaskUpdateToolBidirectionalBlocks (line 338) | func TestTaskUpdateToolBidirectionalBlocks(t *testing.T) { function TestTaskUpdateToolBidirectionalBlockedBy (line 401) | func TestTaskUpdateToolBidirectionalBlockedBy(t *testing.T) { function TestTaskUpdateToolBidirectionalWithNonExistentTask (line 464) | func TestTaskUpdateToolBidirectionalWithNonExistentTask(t *testing.T) { function TestTaskUpdateToolCyclicDependencyDetection (line 492) | func TestTaskUpdateToolCyclicDependencyDetection(t *testing.T) { function TestTaskUpdateToolDeleteCleansDependencies (line 582) | func TestTaskUpdateToolDeleteCleansDependencies(t *testing.T) { function TestTaskUpdateToolAutoDeleteAllTasksWhenAllCompleted (line 645) | func TestTaskUpdateToolAutoDeleteAllTasksWhenAllCompleted(t *testing.T) { function TestTaskUpdateToolNoDeleteWhenNotAllCompleted (line 697) | func TestTaskUpdateToolNoDeleteWhenNotAllCompleted(t *testing.T) { FILE: adk/middlewares/reduction/consts.go constant truncFmt (line 23) | truncFmt = ` constant truncFmtZh (line 32) | truncFmtZh = ` constant clearWithOffloadingFmt (line 44) | clearWithOffloadingFmt = `Tool result saved to: {file_... constant clearWithOffloadingFmtZh (line 46) | clearWithOffloadingFmtZh = `工具结果已保存至: {file_path} constant clearWithoutOffloadingFmt (line 49) | clearWithoutOffloadingFmt = `[Old tool result content cleared]` constant clearWithoutOffloadingFmtZh (line 50) | clearWithoutOffloadingFmtZh = `[工具输出结果已清理]` constant msgReducedFlag (line 54) | msgReducedFlag = "_reduction_mw_processed" constant msgReducedTokens (line 55) | msgReducedTokens = "_reduction_mw_tokens" function getTruncFmt (line 58) | func getTruncFmt() string { function getClearWithOffloadingFmt (line 65) | func getClearWithOffloadingFmt() string { function getClearWithoutOffloadingFmt (line 72) | func getClearWithoutOffloadingFmt() string { type scene (line 79) | type scene constant sceneTruncation (line 82) | sceneTruncation scene = 1 constant sceneClear (line 83) | sceneClear scene = 2 FILE: adk/middlewares/reduction/internal/clear_tool_result.go type ClearToolResultConfig (line 30) | type ClearToolResultConfig struct function NewClearToolResult (line 58) | func NewClearToolResult(ctx context.Context, config *ClearToolResultConf... function newClearToolResult (line 64) | func newClearToolResult(ctx context.Context, config *ClearToolResultConf... function defaultTokenCounter (line 97) | func defaultTokenCounter(msg *schema.Message) int { function reduceByTokens (line 113) | func reduceByTokens(state *adk.ChatModelAgentState, toolResultTokenThres... function excluded (line 158) | func excluded(name string, exclude []string) bool { FILE: adk/middlewares/reduction/internal/clear_tool_result_test.go function Test_reduceByTokens (line 31) | func Test_reduceByTokens(t *testing.T) { function Test_newClearToolResult (line 268) | func Test_newClearToolResult(t *testing.T) { FILE: adk/middlewares/reduction/internal/large_tool_result.go constant tooLargeToolMessage (line 37) | tooLargeToolMessage = `Tool result too large, the result of this tool ca... constant tooLargeToolMessageChinese (line 45) | tooLargeToolMessageChinese = `工具结果过大,此工具调用 {tool_call_id} 的结果已保存到文件系统的以下... type toolResultOffloadingConfig (line 54) | type toolResultOffloadingConfig struct function newToolResultOffloading (line 62) | func newToolResultOffloading(_ context.Context, config *toolResultOffloa... type toolResultOffloading (line 95) | type toolResultOffloading struct method invoke (line 103) | func (t *toolResultOffloading) invoke(endpoint compose.InvokableToolEn... method stream (line 117) | func (t *toolResultOffloading) stream(endpoint compose.StreamableToolE... method handleResult (line 135) | func (t *toolResultOffloading) handleResult(ctx context.Context, resul... function concatString (line 171) | func concatString(sr *schema.StreamReader[string]) (string, error) { function formatToolMessage (line 188) | func formatToolMessage(s string) string { FILE: adk/middlewares/reduction/internal/large_tool_result_test.go type mockBackend (line 33) | type mockBackend struct method Write (line 43) | func (m *mockBackend) Write(_ context.Context, wr *filesystem.WriteReq... function newMockBackend (line 37) | func newMockBackend() *mockBackend { function TestToolResultOffloading_SmallResult (line 48) | func TestToolResultOffloading_SmallResult(t *testing.T) { function TestToolResultOffloading_LargeResult (line 90) | func TestToolResultOffloading_LargeResult(t *testing.T) { function TestToolResultOffloading_CustomPathGenerator (line 147) | func TestToolResultOffloading_CustomPathGenerator(t *testing.T) { function TestToolResultOffloading_PathGeneratorError (line 195) | func TestToolResultOffloading_PathGeneratorError(t *testing.T) { function TestToolResultOffloading_EndpointError (line 232) | func TestToolResultOffloading_EndpointError(t *testing.T) { function TestToolResultOffloading_DefaultTokenLimit (line 265) | func TestToolResultOffloading_DefaultTokenLimit(t *testing.T) { function TestToolResultOffloading_Stream (line 305) | func TestToolResultOffloading_Stream(t *testing.T) { function TestToolResultOffloading_StreamError (line 377) | func TestToolResultOffloading_StreamError(t *testing.T) { function TestFormatToolMessage (line 410) | func TestFormatToolMessage(t *testing.T) { function TestConcatString (line 458) | func TestConcatString(t *testing.T) { function TestToolResultOffloading_BackendWriteError (line 521) | func TestToolResultOffloading_BackendWriteError(t *testing.T) { type failingBackend (line 559) | type failingBackend struct method Write (line 563) | func (f *failingBackend) Write(context.Context, *filesystem.WriteReque... FILE: adk/middlewares/reduction/internal/tool_result.go type Backend (line 30) | type Backend interface type ToolResultConfig (line 35) | type ToolResultConfig struct function NewToolResultMiddleware (line 103) | func NewToolResultMiddleware(ctx context.Context, cfg *ToolResultConfig)... FILE: adk/middlewares/reduction/reduction.go type Config (line 51) | type Config struct method copyAndFillDefaults (line 179) | func (t *Config) copyAndFillDefaults() (*Config, error) { type ToolReductionConfig (line 101) | type ToolReductionConfig struct type ToolDetail (line 121) | type ToolDetail struct type TruncResult (line 132) | type TruncResult struct type ClearResult (line 154) | type ClearResult struct function New (line 225) | func New(_ context.Context, config *Config) (adk.ChatModelAgentMiddlewar... type toolReductionMiddleware (line 256) | type toolReductionMiddleware struct method getToolConfig (line 263) | func (t *toolReductionMiddleware) getToolConfig(toolName string, sc sc... method WrapInvokableToolCall (line 276) | func (t *toolReductionMiddleware) WrapInvokableToolCall(_ context.Cont... method WrapStreamableToolCall (line 320) | func (t *toolReductionMiddleware) WrapStreamableToolCall(_ context.Con... method BeforeModelRewriteState (line 386) | func (t *toolReductionMiddleware) BeforeModelRewriteState(ctx context.... function defaultTokenCounter (line 522) | func defaultTokenCounter(_ context.Context, msgs []*schema.Message, tool... function defaultTruncHandler (line 567) | func defaultTruncHandler(rootDir string, truncMaxLength int) func(ctx co... function defaultClearHandler (line 601) | func defaultClearHandler(rootDir string, needOffload bool, readFileToolN... function getMsgOffloadedFlag (line 654) | func getMsgOffloadedFlag(msg *schema.Message) (offloaded bool) { function setMsgOffloadedFlag (line 665) | func setMsgOffloadedFlag(msg *schema.Message) { function getMsgCachedToken (line 672) | func getMsgCachedToken(msg *schema.Message) (int64, bool) { function setMsgCachedToken (line 680) | func setMsgCachedToken(msg *schema.Message, tokens int64) { function toolResultFromMessage (line 687) | func toolResultFromMessage(msg *schema.Message) (result *schema.ToolResu... function convMessageInputPartToToolOutputPart (line 705) | func convMessageInputPartToToolOutputPart(msgPart schema.MessageInputPar... FILE: adk/middlewares/reduction/reduction_test.go function TestReductionMiddlewareTrunc (line 35) | func TestReductionMiddlewareTrunc(t *testing.T) { function TestReductionMiddlewareClear (line 109) | func TestReductionMiddlewareClear(t *testing.T) { function TestDefaultOffloadHandler (line 446) | func TestDefaultOffloadHandler(t *testing.T) { function mockInvokableTool (line 476) | func mockInvokableTool() tool.InvokableTool { function mockStreamableTool (line 489) | func mockStreamableTool() tool.StreamableTool { function splitStrings (line 507) | func splitStrings(s string, n int) []string { function toJson (line 536) | func toJson(v any) string { function TestToolResultFromMessage (line 541) | func TestToolResultFromMessage(t *testing.T) { function TestConvMessageInputPartToToolOutputPart (line 578) | func TestConvMessageInputPartToToolOutputPart(t *testing.T) { function TestGetSetMsgOffloadedFlag (line 644) | func TestGetSetMsgOffloadedFlag(t *testing.T) { function TestGetSetMsgCachedToken (line 671) | func TestGetSetMsgCachedToken(t *testing.T) { function TestNewErrors (line 706) | func TestNewErrors(t *testing.T) { function TestGetToolConfig (line 726) | func TestGetToolConfig(t *testing.T) { function TestCopyAndFillDefaults (line 788) | func TestCopyAndFillDefaults(t *testing.T) { function TestDefaultTokenCounter (line 816) | func TestDefaultTokenCounter(t *testing.T) { function TestDefaultClearHandler (line 837) | func TestDefaultClearHandler(t *testing.T) { FILE: adk/middlewares/skill/filesystem_backend.go constant skillFileName (line 30) | skillFileName = "SKILL.md" type filesystemBackend (line 32) | type filesystemBackend struct method List (line 66) | func (b *filesystemBackend) List(ctx context.Context) ([]FrontMatter, ... method Get (line 80) | func (b *filesystemBackend) Get(ctx context.Context, name string) (Ski... method list (line 95) | func (b *filesystemBackend) list(ctx context.Context) ([]Skill, error) { method loadSkillFromFile (line 123) | func (b *filesystemBackend) loadSkillFromFile(ctx context.Context, pat... type BackendFromFilesystemConfig (line 38) | type BackendFromFilesystemConfig struct function NewBackendFromFilesystem (line 49) | func NewBackendFromFilesystem(_ context.Context, config *BackendFromFile... function stripLineNumbers (line 152) | func stripLineNumbers(data string) string { function parseFrontmatter (line 165) | func parseFrontmatter(data string) (frontmatter string, content string, ... FILE: adk/middlewares/skill/filesystem_backend_test.go function TestNewBackendFromFilesystem (line 29) | func TestNewBackendFromFilesystem(t *testing.T) { function TestFilesystemBackend_List (line 71) | func TestFilesystemBackend_List(t *testing.T) { function TestFilesystemBackend_Get (line 259) | func TestFilesystemBackend_Get(t *testing.T) { function TestParseFrontmatter (line 332) | func TestParseFrontmatter(t *testing.T) { function TestLoadSkillFromFile (line 432) | func TestLoadSkillFromFile(t *testing.T) { FILE: adk/middlewares/skill/prompt.go constant systemPrompt (line 20) | systemPrompt = ` constant systemPromptChinese (line 52) | systemPromptChinese = ` constant toolDescriptionBase (line 84) | toolDescriptionBase = `Execute a skill within the main conversation constant toolDescriptionBaseChinese (line 106) | toolDescriptionBaseChinese = `在主对话中执行 Skill(技能) constant toolDescriptionTemplate (line 128) | toolDescriptionTemplate = ` constant toolResult (line 142) | toolResult = "Launching skill: %s\n" constant toolResultChinese (line 143) | toolResultChinese = "正在启动 Skill:%s\n" constant userContent (line 144) | userContent = `Base directory for this skill: %s constant userContentChinese (line 147) | userContentChinese = `此 Skill 的目录:%s constant toolName (line 150) | toolName = "skill" constant subAgentResultFormat (line 152) | subAgentResultFormat = "Skill \"%s\" completed (sub-agent executi... constant subAgentResultFormatChinese (line 153) | subAgentResultFormatChinese = "Skill \"%s\" 已完成(子 Agent 执行)。\n\n结果:\n%s" FILE: adk/middlewares/skill/skill.go type ContextMode (line 38) | type ContextMode constant ContextModeForkWithContext (line 43) | ContextModeForkWithContext ContextMode = "fork_with_context" constant ContextModeFork (line 46) | ContextModeFork ContextMode = "fork" type FrontMatter (line 49) | type FrontMatter struct type Skill (line 57) | type Skill struct type Backend (line 63) | type Backend interface type AgentHubOptions (line 69) | type AgentHubOptions struct type AgentHub (line 76) | type AgentHub interface type ModelHub (line 83) | type ModelHub interface type SystemPromptFunc (line 89) | type SystemPromptFunc type ToolDescriptionFunc (line 93) | type ToolDescriptionFunc type Config (line 96) | type Config struct function NewMiddleware (line 153) | func NewMiddleware(ctx context.Context, config *Config) (adk.ChatModelAg... type skillHandler (line 190) | type skillHandler struct method BeforeAgent (line 196) | func (h *skillHandler) BeforeAgent(ctx context.Context, runCtx *adk.Ch... method WrapModel (line 202) | func (h *skillHandler) WrapModel(ctx context.Context, m model.BaseChat... constant activeModelKey (line 224) | activeModelKey = "__skill_active_model__" function New (line 231) | func New(ctx context.Context, config *Config) (adk.AgentMiddleware, erro... function buildSystemPrompt (line 266) | func buildSystemPrompt(skillToolName string, useChinese bool) (string, e... type skillTool (line 281) | type skillTool struct method Info (line 294) | func (s *skillTool) Info(ctx context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 338) | func (s *skillTool) InvokableRun(ctx context.Context, argumentsInJSON ... method setActiveModel (line 362) | func (s *skillTool) setActiveModel(ctx context.Context, modelName stri... method buildSkillResult (line 366) | func (s *skillTool) buildSkillResult(skill Skill) (string, error) { method runAgentMode (line 379) | func (s *skillTool) runAgentMode(ctx context.Context, skill Skill, for... method getMessagesFromState (line 458) | func (s *skillTool) getMessagesFromState(ctx context.Context) ([]adk.M... type descriptionTemplateHelper (line 290) | type descriptionTemplateHelper struct type inputArguments (line 334) | type inputArguments struct function renderToolDescription (line 471) | func renderToolDescription(matters []FrontMatter) (string, error) { FILE: adk/middlewares/skill/skill_test.go type inMemoryBackend (line 36) | type inMemoryBackend struct method List (line 40) | func (i *inMemoryBackend) List(ctx context.Context) ([]FrontMatter, er... method Get (line 48) | func (i *inMemoryBackend) Get(ctx context.Context, name string) (Skill... function TestTool (line 57) | func TestTool(t *testing.T) { function TestSkillToolName (line 158) | func TestSkillToolName(t *testing.T) { type mockModel (line 183) | type mockModel struct type mockModelHub (line 188) | type mockModelHub struct method Get (line 192) | func (h *mockModelHub) Get(_ context.Context, name string) (model.Tool... type mockAgent (line 200) | type mockAgent struct method Name (line 204) | func (a *mockAgent) Name(_ context.Context) string { return "mo... method Description (line 205) | func (a *mockAgent) Description(_ context.Context) string { return "m... method Run (line 206) | func (a *mockAgent) Run(_ context.Context, _ *adk.AgentInput, _ ...adk... type mockAgentHub (line 217) | type mockAgentHub struct method Get (line 223) | func (h *mockAgentHub) Get(_ context.Context, name string, opts *Agent... type errorBackend (line 235) | type errorBackend struct method List (line 240) | func (b *errorBackend) List(_ context.Context) ([]FrontMatter, error) { method Get (line 243) | func (b *errorBackend) Get(_ context.Context, _ string) (Skill, error) { function TestNewMiddleware (line 249) | func TestNewMiddleware(t *testing.T) { function TestBeforeAgent (line 319) | func TestBeforeAgent(t *testing.T) { function TestSkillToolInfo (line 343) | func TestSkillToolInfo(t *testing.T) { function TestInvokableRun_InlineMode (line 374) | func TestInvokableRun_InlineMode(t *testing.T) { function TestInvokableRun_AgentMode (line 416) | func TestInvokableRun_AgentMode(t *testing.T) { FILE: adk/middlewares/summarization/consts.go constant extraKeyContentType (line 20) | extraKeyContentType = "_eino_summarization_content_type" type summarizationContentType (line 23) | type summarizationContentType constant contentTypeSummary (line 26) | contentTypeSummary summarizationContentType = "summary" type ActionType (line 29) | type ActionType constant ActionTypeBeforeSummarize (line 32) | ActionTypeBeforeSummarize ActionType = "before_summarize" constant ActionTypeAfterSummarize (line 33) | ActionTypeAfterSummarize ActionType = "after_summarize" FILE: adk/middlewares/summarization/customized_action.go type CustomizedAction (line 23) | type CustomizedAction struct type BeforeSummarizeAction (line 36) | type BeforeSummarizeAction struct type AfterSummarizeAction (line 41) | type AfterSummarizeAction struct FILE: adk/middlewares/summarization/prompt.go function getSystemInstruction (line 27) | func getSystemInstruction() string { function getUserSummaryInstruction (line 34) | func getUserSummaryInstruction() string { function getSummaryPreamble (line 41) | func getSummaryPreamble() string { function getContinueInstruction (line 48) | func getContinueInstruction() string { function getTranscriptPathInstruction (line 55) | func getTranscriptPathInstruction() string { function getTruncatedMarkerFormat (line 62) | func getTruncatedMarkerFormat() string { function getUserMessagesReplacedNote (line 69) | func getUserMessagesReplacedNote() string { constant systemInstruction (line 76) | systemInstruction = `You are a helpful AI assistant tasked with summariz... constant systemInstructionZh (line 78) | systemInstructionZh = `你是一个负责总结对话的 AI 助手。` constant userSummaryInstruction (line 80) | userSummaryInstruction = `Your task is to create a detailed summary of t... constant userSummaryInstructionZh (line 182) | userSummaryInstructionZh = `你的任务是对目前为止的对话创建一份详细的总结,需要密切关注用户的明确请求和你之前的操作。 constant summaryPreamble (line 284) | summaryPreamble = `This session is being continued from a previous conve... constant summaryPreambleZh (line 286) | summaryPreambleZh = `此会话延续自此前一段因上下文耗尽而终止的对话。以下总结概述了此前对话的内容。` constant continueInstruction (line 288) | continueInstruction = `Please continue the conversation from where we le... constant continueInstructionZh (line 290) | continueInstructionZh = `请从我们中断的地方继续对话,无需向用户提出任何进一步的问题。继续完成先前指令中未完成的任务。` constant transcriptPathInstruction (line 292) | transcriptPathInstruction = `If you need specific details from before co... constant transcriptPathInstructionZh (line 294) | transcriptPathInstructionZh = `如果你需要压缩之前的具体细节(如精确的代码片段、错误消息或你生成的内容),完整的对... constant truncatedMarkerFormat (line 296) | truncatedMarkerFormat = "…%d characters truncated…" constant truncatedMarkerFormatZh (line 298) | truncatedMarkerFormatZh = "…已截断 %d 个字符…" constant userMessagesReplacedNote (line 300) | userMessagesReplacedNote = "Some earlier user messages have been cleared... constant userMessagesReplacedNoteZh (line 302) | userMessagesReplacedNoteZh = "部分较早的用户消息已被清除,以下是保留的最近用户消息:" FILE: adk/middlewares/summarization/summarization.go function init (line 35) | func init() { type TokenCounterFunc (line 40) | type TokenCounterFunc type GenModelInputFunc (line 41) | type GenModelInputFunc type FinalizeFunc (line 42) | type FinalizeFunc type CallbackFunc (line 43) | type CallbackFunc type Config (line 47) | type Config struct method check (line 559) | func (c *Config) check() error { type TokenCounterInput (line 112) | type TokenCounterInput struct type TriggerCondition (line 119) | type TriggerCondition struct method check (line 575) | func (c *TriggerCondition) check() error { type PreserveUserMessages (line 127) | type PreserveUserMessages struct function New (line 138) | func New(ctx context.Context, cfg *Config) (adk.ChatModelAgentMiddleware... type middleware (line 148) | type middleware struct method BeforeModelRewriteState (line 153) | func (m *middleware) BeforeModelRewriteState(ctx context.Context, stat... method shouldSummarize (line 236) | func (m *middleware) shouldSummarize(ctx context.Context, input *Token... method getTriggerContextTokens (line 249) | func (m *middleware) getTriggerContextTokens() int { method getUserMessageContextTokens (line 257) | func (m *middleware) getUserMessageContextTokens() int { method emitEvent (line 264) | func (m *middleware) emitEvent(ctx context.Context, action *Customized... method countTokens (line 276) | func (m *middleware) countTokens(ctx context.Context, input *TokenCoun... method summarize (line 308) | func (m *middleware) summarize(ctx context.Context, originMsgs, contex... method buildSummarizationModelInput (line 322) | func (m *middleware) buildSummarizationModelInput(ctx context.Context,... method postProcessSummary (line 363) | func (m *middleware) postProcessSummary(ctx context.Context, messages ... method replaceUserMessagesInSummary (line 395) | func (m *middleware) replaceUserMessagesInSummary(ctx context.Context,... function defaultTokenCounter (line 283) | func defaultTokenCounter(ctx context.Context, input *TokenCounterInput) ... function estimateTokenCount (line 304) | func estimateTokenCount(text string) int { function newSummaryMessage (line 354) | func newSummaryMessage(content string) *schema.Message { function findLastMatch (line 475) | func findLastMatch(re *regexp.Regexp, s string) []int { function appendSection (line 483) | func appendSection(base, section string) string { function defaultTrimUserMessage (line 493) | func defaultTrimUserMessage(msg adk.Message, remainingTokens int) adk.Me... function truncateTextByChars (line 514) | func truncateTextByChars(text string) string { function extractTextContent (line 538) | func extractTextContent(msg adk.Message) string { function setContentType (line 588) | func setContentType(msg adk.Message, ct summarizationContentType) { function getContentType (line 592) | func getContentType(msg adk.Message) (summarizationContentType, bool) { function setExtra (line 600) | func setExtra(msg adk.Message, key string, value any) { function getExtra (line 607) | func getExtra[T any](msg adk.Message, key string) (T, bool) { FILE: adk/middlewares/summarization/summarization_test.go function TestNew (line 33) | func TestNew(t *testing.T) { function TestMiddlewareBeforeModelRewriteState (line 62) | func TestMiddlewareBeforeModelRewriteState(t *testing.T) { function TestMiddlewareShouldSummarize (line 236) | func TestMiddlewareShouldSummarize(t *testing.T) { function TestMiddlewareCountTokens (line 333) | func TestMiddlewareCountTokens(t *testing.T) { function TestExtractTextContent (line 383) | func TestExtractTextContent(t *testing.T) { function TestTruncateTextByChars (line 415) | func TestTruncateTextByChars(t *testing.T) { function TestAppendSection (line 441) | func TestAppendSection(t *testing.T) { function TestAllUserMessagesTagRegex (line 482) | func TestAllUserMessagesTagRegex(t *testing.T) { function TestConfigCheck (line 506) | func TestConfigCheck(t *testing.T) { function TestSetGetContentType (line 572) | func TestSetGetContentType(t *testing.T) { function TestSetGetExtra (line 585) | func TestSetGetExtra(t *testing.T) { function TestMiddlewareSummarize (line 617) | func TestMiddlewareSummarize(t *testing.T) { function TestReplaceUserMessagesInSummary (line 774) | func TestReplaceUserMessagesInSummary(t *testing.T) { function TestAllUserMessagesTagRegexMatch (line 891) | func TestAllUserMessagesTagRegexMatch(t *testing.T) { function TestDefaultTrimUserMessage (line 903) | func TestDefaultTrimUserMessage(t *testing.T) { function TestDefaultTokenCounter (line 925) | func TestDefaultTokenCounter(t *testing.T) { function TestPostProcessSummary (line 941) | func TestPostProcessSummary(t *testing.T) { FILE: adk/prebuilt/deep/checkpoint_compat_resume_test.go type compatCheckpointStore (line 38) | type compatCheckpointStore struct method Set (line 46) | func (s *compatCheckpointStore) Set(_ context.Context, key string, val... method Get (line 51) | func (s *compatCheckpointStore) Get(_ context.Context, key string) ([]... function newCompatCheckpointStore (line 42) | func newCompatCheckpointStore() *compatCheckpointStore { type interruptingSubAgentTool (line 59) | type interruptingSubAgentTool struct method Info (line 63) | func (t *interruptingSubAgentTool) Info(_ context.Context) (*schema.To... method InvokableRun (line 73) | func (t *interruptingSubAgentTool) InvokableRun(ctx context.Context, a... function readTestdataBytes (line 78) | func readTestdataBytes(t *testing.T, filename string) []byte { function runDeepAgentCheckpointCompat (line 89) | func runDeepAgentCheckpointCompat(t *testing.T, checkpointID string, fil... function TestDeepAgentCheckpointCompat_V0_8_Resume (line 170) | func TestDeepAgentCheckpointCompat_V0_8_Resume(t *testing.T) { FILE: adk/prebuilt/deep/deep.go function init (line 35) | func init() { type Config (line 41) | type Config struct function New (line 105) | func New(ctx context.Context, cfg *Config) (adk.ResumableAgent, error) { function genModelInput (line 155) | func genModelInput(ctx context.Context, instruction string, input *adk.A... function buildBuiltinAgentMiddlewares (line 167) | func buildBuiltinAgentMiddlewares(ctx context.Context, cfg *Config) ([]a... type TODO (line 192) | type TODO struct type writeTodosArguments (line 198) | type writeTodosArguments struct function newWriteTodos (line 202) | func newWriteTodos() (adk.ChatModelAgentMiddleware, error) { FILE: adk/prebuilt/deep/deep_test.go function TestGenModelInput (line 35) | func TestGenModelInput(t *testing.T) { function TestWriteTodos (line 69) | func TestWriteTodos(t *testing.T) { function TestDeepSubAgentSharesSessionValues (line 83) | func TestDeepSubAgentSharesSessionValues(t *testing.T) { function TestDeepSubAgentFollowsStreamingMode (line 130) | func TestDeepSubAgentFollowsStreamingMode(t *testing.T) { type spySubAgent (line 185) | type spySubAgent struct method Name (line 189) | func (s *spySubAgent) Name(context.Context) string { return "sp... method Description (line 190) | func (s *spySubAgent) Description(context.Context) string { return "sp... method Run (line 191) | func (s *spySubAgent) Run(ctx context.Context, _ *adk.AgentInput, _ ..... type spyStreamingSubAgent (line 199) | type spyStreamingSubAgent struct method Name (line 203) | func (s *spyStreamingSubAgent) Name(context.Context) string { r... method Description (line 204) | func (s *spyStreamingSubAgent) Description(context.Context) string { r... method Run (line 205) | func (s *spyStreamingSubAgent) Run(ctx context.Context, input *adk.Age... function TestDeepAgentWithPlanExecuteSubAgent_InternalEventsEmitted (line 215) | func TestDeepAgentWithPlanExecuteSubAgent_InternalEventsEmitted(t *testi... type namedPlanExecuteAgent (line 384) | type namedPlanExecuteAgent struct method Name (line 390) | func (n *namedPlanExecuteAgent) Name(_ context.Context) string { method Description (line 394) | func (n *namedPlanExecuteAgent) Description(_ context.Context) string { function TestDeepAgentOutputKey (line 398) | func TestDeepAgentOutputKey(t *testing.T) { type sessionCaptureAgent (line 531) | type sessionCaptureAgent struct method Run (line 536) | func (s *sessionCaptureAgent) Run(ctx context.Context, input *adk.Agen... FILE: adk/prebuilt/deep/prompt.go constant taskPrompt (line 28) | taskPrompt = ` constant baseAgentInstruction (line 59) | baseAgentInstruction = ` constant generalAgentDescription (line 111) | generalAgentDescription = `general-purpose agent for researching complex... constant taskToolDescription (line 112) | taskToolDescription = `Launch a new agent to handle complex, multi-s... constant writeTodosToolDescription (line 173) | writeTodosToolDescription = `Use this tool to create and manage a struct... constant taskPromptChinese (line 357) | taskPromptChinese = ` constant baseAgentInstructionChinese (line 388) | baseAgentInstructionChinese = ` constant generalAgentDescriptionChinese (line 440) | generalAgentDescriptionChinese = `通用代理,用于研究复杂问题、搜索代码和执行多步骤任务。当你搜索关键字或文件并... constant taskToolDescriptionChinese (line 441) | taskToolDescriptionChinese = `启动新代理以自主处理复杂的多步骤任务。 constant writeTodosToolDescriptionChinese (line 502) | writeTodosToolDescriptionChinese = `使用此工具为你当前的编码会话创建和管理结构化的任务列表。这有助于你跟踪进... FILE: adk/prebuilt/deep/task_tool.go function newTaskToolMiddleware (line 35) | func newTaskToolMiddleware( function newTaskTool (line 61) | func newTaskTool( type taskTool (line 125) | type taskTool struct method Info (line 131) | func (t *taskTool) Info(ctx context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 155) | func (t *taskTool) InvokableRun(ctx context.Context, argumentsInJSON s... type taskToolArgument (line 150) | type taskToolArgument struct function defaultTaskToolDescription (line 176) | func defaultTaskToolDescription(ctx context.Context, subAgents []adk.Age... FILE: adk/prebuilt/deep/task_tool_test.go function TestTaskTool (line 29) | func TestTaskTool(t *testing.T) { type myAgent (line 59) | type myAgent struct method Name (line 64) | func (m *myAgent) Name(ctx context.Context) string { method Description (line 68) | func (m *myAgent) Description(ctx context.Context) string { method Run (line 72) | func (m *myAgent) Run(ctx context.Context, input *adk.AgentInput, opti... FILE: adk/prebuilt/deep/testdata/_gen/generate_test.go type checkpointStore (line 38) | type checkpointStore struct method Set (line 42) | func (s *checkpointStore) Set(_ context.Context, key string, value []b... method Get (line 50) | func (s *checkpointStore) Get(_ context.Context, key string) ([]byte, ... type interruptTool (line 58) | type interruptTool struct method Info (line 62) | func (t *interruptTool) Info(_ context.Context) (*schema.ToolInfo, err... method InvokableRun (line 72) | func (t *interruptTool) InvokableRun(ctx context.Context, argumentsInJ... type scriptedModel (line 80) | type scriptedModel struct method Generate (line 84) | func (m *scriptedModel) Generate(_ context.Context, _ []*schema.Messag... method Stream (line 88) | func (m *scriptedModel) Stream(_ context.Context, _ []*schema.Message,... function TestGenerateV084CheckpointData (line 92) | func TestGenerateV084CheckpointData(t *testing.T) { FILE: adk/prebuilt/deep/types.go constant generalAgentName (line 28) | generalAgentName = "general-purpose" constant taskToolName (line 29) | taskToolName = "task" constant SessionKeyTodos (line 33) | SessionKeyTodos = "deep_agent_session_key_todos" function assertAgentTool (line 36) | func assertAgentTool(t tool.BaseTool) (tool.InvokableTool, error) { function buildAppendPromptTool (line 44) | func buildAppendPromptTool(prompt string, t tool.BaseTool) adk.ChatModel... type appendPromptTool (line 52) | type appendPromptTool struct method BeforeAgent (line 58) | func (w *appendPromptTool) BeforeAgent(ctx context.Context, runCtx *ad... FILE: adk/prebuilt/integration_test.go type approvalInfo (line 38) | type approvalInfo struct method String (line 44) | func (ai *approvalInfo) String() string { type approvalResult (line 49) | type approvalResult struct function init (line 54) | func init() { type approvableTool (line 59) | type approvableTool struct method Info (line 64) | func (m *approvableTool) Info(_ context.Context) (*schema.ToolInfo, er... method InvokableRun (line 74) | func (m *approvableTool) InvokableRun(ctx context.Context, argumentsIn... type integrationCheckpointStore (line 108) | type integrationCheckpointStore struct method Set (line 116) | func (s *integrationCheckpointStore) Set(_ context.Context, key string... method Get (line 121) | func (s *integrationCheckpointStore) Get(_ context.Context, key string... function newIntegrationCheckpointStore (line 112) | func newIntegrationCheckpointStore() *integrationCheckpointStore { type defaultPlan (line 126) | type defaultPlan struct method FirstStep (line 130) | func (p *defaultPlan) FirstStep() string { method MarshalJSON (line 137) | func (p *defaultPlan) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 142) | func (p *defaultPlan) UnmarshalJSON(bytes []byte) error { type namedAgent (line 147) | type namedAgent struct method Name (line 153) | func (n *namedAgent) Name(_ context.Context) string { method Description (line 157) | func (n *namedAgent) Description(_ context.Context) string { function formatRunPath (line 161) | func formatRunPath(runPath []adk.RunStep) string { function formatAgentEventIntegration (line 172) | func formatAgentEventIntegration(event *adk.AgentEvent) string { function TestSupervisorWithPlanExecuteInterruptResume (line 199) | func TestSupervisorWithPlanExecuteInterruptResume(t *testing.T) { FILE: adk/prebuilt/planexecute/plan_execute.go function init (line 37) | func init() { type Plan (line 45) | type Plan interface type NewPlan (line 58) | type NewPlan type defaultPlan (line 77) | type defaultPlan struct method FirstStep (line 84) | func (p *defaultPlan) FirstStep() string { method MarshalJSON (line 91) | func (p *defaultPlan) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 96) | func (p *defaultPlan) UnmarshalJSON(bytes []byte) error { type Response (line 104) | type Response struct constant UserInputSessionKey (line 243) | UserInputSessionKey = "UserInput" constant PlanSessionKey (line 246) | PlanSessionKey = "Plan" constant ExecutedStepSessionKey (line 249) | ExecutedStepSessionKey = "ExecutedStep" constant ExecutedStepsSessionKey (line 252) | ExecutedStepsSessionKey = "ExecutedSteps" type PlannerConfig (line 260) | type PlannerConfig struct type GenPlannerModelInputFn (line 285) | type GenPlannerModelInputFn function defaultNewPlan (line 287) | func defaultNewPlan(ctx context.Context) Plan { function defaultGenPlannerInputFn (line 291) | func defaultGenPlannerInputFn(ctx context.Context, userInput []adk.Messa... type planner (line 301) | type planner struct method Name (line 308) | func (p *planner) Name(_ context.Context) string { method Description (line 312) | func (p *planner) Description(_ context.Context) string { method Run (line 324) | func (p *planner) Run(ctx context.Context, input *adk.AgentInput, function argToContent (line 316) | func argToContent(msg adk.Message) (adk.Message, error) { function NewPlanner (line 437) | func NewPlanner(_ context.Context, cfg *PlannerConfig) (adk.Agent, error) { type ExecutionContext (line 475) | type ExecutionContext struct type GenModelInputFn (line 482) | type GenModelInputFn type ExecutorConfig (line 485) | type ExecutorConfig struct type ExecutedStep (line 504) | type ExecutedStep struct function NewExecutor (line 510) | func NewExecutor(ctx context.Context, cfg *ExecutorConfig) (adk.Agent, e... function defaultGenExecutorInputFn (line 566) | func defaultGenExecutorInputFn(ctx context.Context, in *ExecutionContext... type replanner (line 586) | type replanner struct method Name (line 638) | func (r *replanner) Name(_ context.Context) string { method Description (line 642) | func (r *replanner) Description(_ context.Context) string { method genInput (line 646) | func (r *replanner) genInput(ctx context.Context) ([]adk.Message, erro... method Run (line 696) | func (r *replanner) Run(ctx context.Context, input *adk.AgentInput, _ ... type ReplannerConfig (line 595) | type ReplannerConfig struct function formatInput (line 619) | func formatInput(input []adk.Message) string { function formatExecutedSteps (line 629) | func formatExecutedSteps(results []ExecutedStep) string { function buildGenReplannerInputFn (line 784) | func buildGenReplannerInputFn(planToolName, respondToolName string) GenM... function NewReplanner (line 807) | func NewReplanner(_ context.Context, cfg *ReplannerConfig) (adk.Agent, e... type Config (line 838) | type Config struct function New (line 862) | func New(ctx context.Context, cfg *Config) (adk.ResumableAgent, error) { FILE: adk/prebuilt/planexecute/plan_execute_test.go function TestNewPlannerWithFormattedOutput (line 39) | func TestNewPlannerWithFormattedOutput(t *testing.T) { function TestNewPlannerWithToolCalling (line 65) | func TestNewPlannerWithToolCalling(t *testing.T) { function TestPlannerRunWithFormattedOutput (line 93) | func TestPlannerRunWithFormattedOutput(t *testing.T) { function TestPlannerRunWithToolCalling (line 148) | func TestPlannerRunWithToolCalling(t *testing.T) { function TestNewExecutor (line 219) | func TestNewExecutor(t *testing.T) { function TestExecutorRun (line 246) | func TestExecutorRun(t *testing.T) { function TestNewReplanner (line 309) | func TestNewReplanner(t *testing.T) { function TestReplannerRunWithPlan (line 350) | func TestReplannerRunWithPlan(t *testing.T) { function TestReplannerRunWithRespond (line 452) | func TestReplannerRunWithRespond(t *testing.T) { function TestNewPlanExecuteAgent (line 538) | func TestNewPlanExecuteAgent(t *testing.T) { function TestPlanExecuteAgentWithReplan (line 572) | func TestPlanExecuteAgentWithReplan(t *testing.T) { type interruptibleTool (line 728) | type interruptibleTool struct method Info (line 733) | func (m *interruptibleTool) Info(_ context.Context) (*schema.ToolInfo,... method InvokableRun (line 747) | func (m *interruptibleTool) InvokableRun(ctx context.Context, argument... type checkpointStore (line 764) | type checkpointStore struct method Set (line 772) | func (s *checkpointStore) Set(_ context.Context, key string, value []b... method Get (line 777) | func (s *checkpointStore) Get(_ context.Context, key string) ([]byte, ... function newCheckpointStore (line 768) | func newCheckpointStore() *checkpointStore { function formatRunPath (line 782) | func formatRunPath(runPath []adk.RunStep) string { function formatAgentEvent (line 793) | func formatAgentEvent(event *adk.AgentEvent) string { function TestPlanExecuteAgentInterruptResume (line 817) | func TestPlanExecuteAgentInterruptResume(t *testing.T) { FILE: adk/prebuilt/planexecute/utils.go type outputSessionKVsAgent (line 25) | type outputSessionKVsAgent struct method Run (line 29) | func (o *outputSessionKVsAgent) Run(ctx context.Context, input *adk.Ag... function agentOutputSessionKVs (line 56) | func agentOutputSessionKVs(ctx context.Context, agent adk.Agent) (adk.Ag... FILE: adk/prebuilt/supervisor/supervisor.go type Config (line 40) | type Config struct type supervisorContainer (line 56) | type supervisorContainer struct method Name (line 61) | func (s *supervisorContainer) Name(_ context.Context) string { method Description (line 65) | func (s *supervisorContainer) Description(ctx context.Context) string { method GetType (line 69) | func (s *supervisorContainer) GetType() string { method Run (line 73) | func (s *supervisorContainer) Run(ctx context.Context, input *adk.Agen... method Resume (line 77) | func (s *supervisorContainer) Resume(ctx context.Context, info *adk.Re... function New (line 92) | func New(ctx context.Context, conf *Config) (adk.ResumableAgent, error) { FILE: adk/prebuilt/supervisor/supervisor_test.go function TestNewSupervisor (line 40) | func TestNewSupervisor(t *testing.T) { type approvalInfo (line 180) | type approvalInfo struct method String (line 186) | func (ai *approvalInfo) String() string { type approvalResult (line 191) | type approvalResult struct function init (line 196) | func init() { type approvableTool (line 201) | type approvableTool struct method Info (line 206) | func (m *approvableTool) Info(_ context.Context) (*schema.ToolInfo, er... method InvokableRun (line 216) | func (m *approvableTool) InvokableRun(ctx context.Context, argumentsIn... type checkpointStore (line 250) | type checkpointStore struct method Set (line 258) | func (s *checkpointStore) Set(_ context.Context, key string, value []b... method Get (line 263) | func (s *checkpointStore) Get(_ context.Context, key string) ([]byte, ... function newCheckpointStore (line 254) | func newCheckpointStore() *checkpointStore { type namedAgent (line 268) | type namedAgent struct method Name (line 274) | func (n *namedAgent) Name(_ context.Context) string { method Description (line 278) | func (n *namedAgent) Description(_ context.Context) string { function TestNestedSupervisorInterruptResume (line 282) | func TestNestedSupervisorInterruptResume(t *testing.T) { function TestSupervisorExit (line 498) | func TestSupervisorExit(t *testing.T) { function TestNestedSupervisorExit (line 575) | func TestNestedSupervisorExit(t *testing.T) { function TestChatModelAgentInternalEventsExit (line 682) | func TestChatModelAgentInternalEventsExit(t *testing.T) { function TestSupervisorContainerUnifiedTracing (line 831) | func TestSupervisorContainerUnifiedTracing(t *testing.T) { type traceContextKey (line 943) | type traceContextKey struct function TestSupervisorContainerUnifiedTracingOnResume (line 945) | func TestSupervisorContainerUnifiedTracingOnResume(t *testing.T) { FILE: adk/react.go type State (line 40) | type State struct method getReturnDirectlyEvent (line 86) | func (s *State) getReturnDirectlyEvent() *AgentEvent { method setReturnDirectlyEvent (line 90) | func (s *State) setReturnDirectlyEvent(event *AgentEvent) { method getRetryAttempt (line 94) | func (s *State) getRetryAttempt() int { method setRetryAttempt (line 98) | func (s *State) setRetryAttempt(attempt int) { method getReturnDirectlyToolCallID (line 102) | func (s *State) getReturnDirectlyToolCallID() string { method setReturnDirectlyToolCallID (line 106) | func (s *State) setReturnDirectlyToolCallID(id string) { method getToolGenActions (line 111) | func (s *State) getToolGenActions() map[string]*AgentAction { method setToolGenAction (line 115) | func (s *State) setToolGenAction(key string, action *AgentAction) { method popToolGenAction (line 122) | func (s *State) popToolGenAction(key string) *AgentAction { method getRemainingIterations (line 131) | func (s *State) getRemainingIterations() int { method setRemainingIterations (line 135) | func (s *State) setRemainingIterations(iterations int) { method decrementRemainingIterations (line 139) | func (s *State) decrementRemainingIterations() { constant stateGobNameV07 (line 56) | stateGobNameV07 = "_eino_adk_react_state" constant stateGobNameV080 (line 62) | stateGobNameV080 = "_eino_adk_state_v080_" function init (line 65) | func init() { type stateV080 (line 150) | type stateV080 struct method GobDecode (line 167) | func (sc *stateV080) GobDecode(b []byte) error { type stateV080Serialization (line 165) | type stateV080Serialization function stateV080ToState (line 184) | func stateV080ToState(sc *stateV080) *State { function SendToolGenAction (line 226) | func SendToolGenAction(ctx context.Context, toolName string, action *Age... type reactInput (line 239) | type reactInput struct type reactConfig (line 243) | type reactConfig struct function genToolInfos (line 258) | func genToolInfos(ctx context.Context, config *compose.ToolsNodeConfig) ... function getReturnDirectlyToolCallID (line 276) | func getReturnDirectlyToolCallID(ctx context.Context) (string, bool) { function genReactState (line 288) | func genReactState(config *reactConfig) func(ctx context.Context) *State { function newReact (line 302) | func newReact(ctx context.Context, config *reactConfig) (reactGraph, err... FILE: adk/react_test.go type testModelWrapper (line 40) | type testModelWrapper struct method Generate (line 81) | func (w *testModelWrapper) Generate(ctx context.Context, input []*sche... method Stream (line 85) | func (w *testModelWrapper) Stream(ctx context.Context, input []*schema... method WithTools (line 89) | func (w *testModelWrapper) WithTools(tools []*schema.ToolInfo) (model.... function TestStateCompatConversions_V080 (line 44) | func TestStateCompatConversions_V080(t *testing.T) { function TestStateGetToolGenActions (line 71) | func TestStateGetToolGenActions(t *testing.T) { function TestReact (line 98) | func TestReact(t *testing.T) { type fakeStreamToolForTest (line 560) | type fakeStreamToolForTest struct method StreamableRun (line 565) | func (t *fakeStreamToolForTest) StreamableRun(_ context.Context, argum... method Info (line 602) | func (t *fakeStreamToolForTest) Info(_ context.Context) (*schema.ToolI... type fakeToolForTest (line 582) | type fakeToolForTest struct method Info (line 587) | func (t *fakeToolForTest) Info(_ context.Context) (*schema.ToolInfo, e... method InvokableRun (line 617) | func (t *fakeToolForTest) InvokableRun(_ context.Context, argumentsInJ... type fakeToolInputForTest (line 632) | type fakeToolInputForTest struct function randStrForTest (line 636) | func randStrForTest() string { FILE: adk/retry_chatmodel.go type RetryExhaustedError (line 52) | type RetryExhaustedError struct method Error (line 57) | func (e *RetryExhaustedError) Error() string { method Unwrap (line 64) | func (e *RetryExhaustedError) Unwrap() error { type WillRetryError (line 79) | type WillRetryError struct method Error (line 85) | func (e *WillRetryError) Error() string { method Unwrap (line 89) | func (e *WillRetryError) Unwrap() error { function init (line 93) | func init() { type ModelRetryConfig (line 99) | type ModelRetryConfig struct function defaultIsRetryAble (line 119) | func defaultIsRetryAble(_ context.Context, err error) bool { function defaultBackoff (line 123) | func defaultBackoff(_ context.Context, attempt int) time.Duration { function genErrWrapper (line 144) | func genErrWrapper(ctx context.Context, maxRetries, attempt int, isRetry... function consumeStreamForError (line 156) | func consumeStreamForError(stream *schema.StreamReader[*schema.Message])... type retryModelWrapper (line 173) | type retryModelWrapper struct method Generate (line 182) | func (r *retryModelWrapper) Generate(ctx context.Context, input []*sch... method Stream (line 213) | func (r *retryModelWrapper) Stream(ctx context.Context, input []*schem... function newRetryModelWrapper (line 178) | func newRetryModelWrapper(inner model.BaseChatModel, config *ModelRetryC... FILE: adk/runctx.go type runSession (line 32) | type runSession struct method addEvent (line 131) | func (rs *runSession) addEvent(event *AgentEvent) { method getEvents (line 146) | func (rs *runSession) getEvents() []*agentEventWrapper { method getValues (line 183) | func (rs *runSession) getValues() map[string]any { method addValue (line 194) | func (rs *runSession) addValue(key string, value any) { method addValues (line 200) | func (rs *runSession) addValues(kvs map[string]any) { method getValue (line 208) | func (rs *runSession) getValue(key string) (any, bool) { type laneEvents (line 42) | type laneEvents struct type agentEventWrapper (line 48) | type agentEventWrapper struct method GobEncode (line 67) | func (a *agentEventWrapper) GobEncode() ([]byte, error) { method GobDecode (line 80) | func (a *agentEventWrapper) GobDecode(b []byte) error { type otherAgentEventWrapperForEncode (line 65) | type otherAgentEventWrapperForEncode function newRunSession (line 84) | func newRunSession() *runSession { function GetSessionValues (line 92) | func GetSessionValues(ctx context.Context) map[string]any { function AddSessionValue (line 102) | func AddSessionValue(ctx context.Context, key string, value any) { function AddSessionValues (line 112) | func AddSessionValues(ctx context.Context, kvs map[string]any) { function GetSessionValue (line 122) | func GetSessionValue(ctx context.Context, key string) (any, bool) { type runContext (line 216) | type runContext struct method isRoot (line 223) | func (rc *runContext) isRoot() bool { method deepCopy (line 227) | func (rc *runContext) deepCopy() *runContext { type runCtxKey (line 239) | type runCtxKey struct function getRunCtx (line 241) | func getRunCtx(ctx context.Context) *runContext { function setRunCtx (line 249) | func setRunCtx(ctx context.Context, runCtx *runContext) context.Context { function initRunCtx (line 253) | func initRunCtx(ctx context.Context, agentName string, input *AgentInput... function joinRunCtxs (line 269) | func joinRunCtxs(parentCtx context.Context, childCtxs ...context.Context) { function commitEvents (line 293) | func commitEvents(ctx context.Context, newEvents []*agentEventWrapper) { function unwindLaneEvents (line 313) | func unwindLaneEvents(ctxs ...context.Context) []*agentEventWrapper { function forkRunCtx (line 324) | func forkRunCtx(ctx context.Context) context.Context { function updateRunPathOnly (line 359) | func updateRunPathOnly(ctx context.Context, agentNames ...string) contex... function ClearRunCtx (line 379) | func ClearRunCtx(ctx context.Context) context.Context { function ctxWithNewRunCtx (line 383) | func ctxWithNewRunCtx(ctx context.Context, input *AgentInput, sharedPare... function getSession (line 399) | func getSession(ctx context.Context) *runSession { FILE: adk/runctx_test.go function TestSessionValues (line 29) | func TestSessionValues(t *testing.T) { function TestForkJoinRunCtx (line 337) | func TestForkJoinRunCtx(t *testing.T) { FILE: adk/runner.go type Runner (line 32) | type Runner struct method Run (line 75) | func (r *Runner) Run(ctx context.Context, messages []Message, method Query (line 102) | func (r *Runner) Query(ctx context.Context, method Resume (line 115) | func (r *Runner) Resume(ctx context.Context, checkPointID string, opts... method ResumeWithParams (line 138) | func (r *Runner) ResumeWithParams(ctx context.Context, checkPointID st... method resume (line 143) | func (r *Runner) resume(ctx context.Context, checkPointID string, resu... method handleIter (line 189) | func (r *Runner) handleIter(ctx context.Context, aIter *AsyncIterator[... type RunnerConfig (line 44) | type RunnerConfig struct type ResumeParams (line 54) | type ResumeParams struct function NewRunner (line 63) | func NewRunner(_ context.Context, conf RunnerConfig) *Runner { FILE: adk/runner_test.go type mockRunnerAgent (line 29) | type mockRunnerAgent struct method Name (line 39) | func (a *mockRunnerAgent) Name(_ context.Context) string { method Description (line 43) | func (a *mockRunnerAgent) Description(_ context.Context) string { method Run (line 47) | func (a *mockRunnerAgent) Run(_ context.Context, input *AgentInput, _ ... function newMockRunnerAgent (line 71) | func newMockRunnerAgent(name, description string, responses []*AgentEven... function TestNewRunner (line 79) | func TestNewRunner(t *testing.T) { function TestRunner_Run (line 89) | func TestRunner_Run(t *testing.T) { function TestRunner_Run_WithStreaming (line 135) | func TestRunner_Run_WithStreaming(t *testing.T) { function TestRunner_Query (line 181) | func TestRunner_Query(t *testing.T) { function TestRunner_Query_WithStreaming (line 223) | func TestRunner_Query_WithStreaming(t *testing.T) { FILE: adk/utils.go type AsyncIterator (line 31) | type AsyncIterator struct method Next (line 35) | func (ai *AsyncIterator[T]) Next() (T, bool) { type AsyncGenerator (line 39) | type AsyncGenerator struct method Send (line 43) | func (ag *AsyncGenerator[T]) Send(v T) { method Close (line 47) | func (ag *AsyncGenerator[T]) Close() { function NewAsyncIteratorPair (line 53) | func NewAsyncIteratorPair[T any]() (*AsyncIterator[T], *AsyncGenerator[T... function copyMap (line 58) | func copyMap[K comparable, V any](m map[K]V) map[K]V { function cloneSlice (line 66) | func cloneSlice[T any](s []T) []T { function concatInstructions (line 75) | func concatInstructions(instructions ...string) string { function GenTransferMessages (line 88) | func GenTransferMessages(_ context.Context, destAgentName string) (Messa... function setAutomaticClose (line 98) | func setAutomaticClose(e *AgentEvent) { function getMessageFromWrappedEvent (line 110) | func getMessageFromWrappedEvent(e *agentEventWrapper) (Message, error) { function copyAgentEvent (line 186) | func copyAgentEvent(ae *AgentEvent) *AgentEvent { function GetMessage (line 228) | func GetMessage(e *AgentEvent) (Message, *AgentEvent, error) { function genErrorIter (line 246) | func genErrorIter(err error) *AsyncIterator[*AgentEvent] { FILE: adk/utils_test.go function TestAsyncIteratorPair_Basic (line 33) | func TestAsyncIteratorPair_Basic(t *testing.T) { function TestAsyncIteratorPair_Close (line 68) | func TestAsyncIteratorPair_Close(t *testing.T) { function TestAsyncIteratorPair_Concurrency (line 102) | func TestAsyncIteratorPair_Concurrency(t *testing.T) { function TestGenErrorIter (line 165) | func TestGenErrorIter(t *testing.T) { function TestGetMessageFromWrappedEvent_StreamError_MultipleCallsGuard (line 174) | func TestGetMessageFromWrappedEvent_StreamError_MultipleCallsGuard(t *te... function TestGetMessageFromWrappedEvent_StreamSuccess_MultipleCallsCached (line 209) | func TestGetMessageFromWrappedEvent_StreamSuccess_MultipleCallsCached(t ... function TestGetMessageFromWrappedEvent_StreamError_PartialMessagesPreserved (line 242) | func TestGetMessageFromWrappedEvent_StreamError_PartialMessagesPreserved... function TestAgentEventWrapper_GobEncoding_WithWillRetryError (line 285) | func TestAgentEventWrapper_GobEncoding_WithWillRetryError(t *testing.T) { function TestAgentEventWrapper_GobEncoding_WithUnregisteredError (line 334) | func TestAgentEventWrapper_GobEncoding_WithUnregisteredError(t *testing.... function TestAgentEventWrapper_GobEncoding_WithStreamSuccess (line 367) | func TestAgentEventWrapper_GobEncoding_WithStreamSuccess(t *testing.T) { FILE: adk/workflow.go type workflowAgentMode (line 30) | type workflowAgentMode constant workflowAgentModeUnknown (line 33) | workflowAgentModeUnknown workflowAgentMode = iota constant workflowAgentModeSequential (line 34) | workflowAgentModeSequential constant workflowAgentModeLoop (line 35) | workflowAgentModeLoop constant workflowAgentModeParallel (line 36) | workflowAgentModeParallel type workflowAgent (line 39) | type workflowAgent struct method Name (line 49) | func (a *workflowAgent) Name(_ context.Context) string { method Description (line 53) | func (a *workflowAgent) Description(_ context.Context) string { method GetType (line 57) | func (a *workflowAgent) GetType() string { method Run (line 70) | func (a *workflowAgent) Run(ctx context.Context, _ *AgentInput, opts .... method Resume (line 123) | func (a *workflowAgent) Resume(ctx context.Context, info *ResumeInfo, ... method runSequential (line 172) | func (a *workflowAgent) runSequential(ctx context.Context, method runLoop (line 297) | func (a *workflowAgent) runLoop(ctx context.Context, generator *AsyncG... method runParallel (line 427) | func (a *workflowAgent) runParallel(ctx context.Context, generator *As... type sequentialWorkflowState (line 104) | type sequentialWorkflowState struct type parallelWorkflowState (line 108) | type parallelWorkflowState struct type loopWorkflowState (line 112) | type loopWorkflowState struct function init (line 117) | func init() { type WorkflowInterruptInfo (line 161) | type WorkflowInterruptInfo struct type BreakLoopAction (line 278) | type BreakLoopAction struct function NewBreakLoopAction (line 291) | func NewBreakLoopAction(agentName string) *AgentAction { type SequentialAgentConfig (line 553) | type SequentialAgentConfig struct type ParallelAgentConfig (line 559) | type ParallelAgentConfig struct type LoopAgentConfig (line 565) | type LoopAgentConfig struct function newWorkflowAgent (line 573) | func newWorkflowAgent(ctx context.Context, name, desc string, function NewSequentialAgent (line 600) | func NewSequentialAgent(ctx context.Context, config *SequentialAgentConf... function NewParallelAgent (line 605) | func NewParallelAgent(ctx context.Context, config *ParallelAgentConfig) ... function NewLoopAgent (line 610) | func NewLoopAgent(ctx context.Context, config *LoopAgentConfig) (Resumab... FILE: adk/workflow_test.go type mockAgent (line 32) | type mockAgent struct method Name (line 38) | func (a *mockAgent) Name(_ context.Context) string { method Description (line 42) | func (a *mockAgent) Description(_ context.Context) string { method Run (line 46) | func (a *mockAgent) Run(_ context.Context, _ *AgentInput, _ ...AgentRu... function newMockAgent (line 66) | func newMockAgent(name, description string, responses []*AgentEvent) *mo... function TestSequentialAgent (line 75) | func TestSequentialAgent(t *testing.T) { function TestSequentialAgentWithExit (line 162) | func TestSequentialAgentWithExit(t *testing.T) { function TestParallelAgent (line 234) | func TestParallelAgent(t *testing.T) { function TestLoopAgent (line 322) | func TestLoopAgent(t *testing.T) { function TestLoopAgentWithBreakLoop (line 390) | func TestLoopAgentWithBreakLoop(t *testing.T) { function TestWorkflowAgentPanicRecovery (line 463) | func TestWorkflowAgentPanicRecovery(t *testing.T) { type panicMockAgent (line 509) | type panicMockAgent struct method Run (line 513) | func (a *panicMockAgent) Run(_ context.Context, _ *AgentInput, _ ...Ag... function TestParallelWorkflowResumeWithEvents (line 517) | func TestParallelWorkflowResumeWithEvents(t *testing.T) { function TestNestedParallelWorkflow (line 733) | func TestNestedParallelWorkflow(t *testing.T) { function TestWorkflowAgentUnsupportedMode (line 1016) | func TestWorkflowAgentUnsupportedMode(t *testing.T) { function TestFilterOptions (line 1050) | func TestFilterOptions(t *testing.T) { function TestLoopAgentWithError (line 1091) | func TestLoopAgentWithError(t *testing.T) { function TestWorkflowCallbackHandlerNotDoubled (line 1150) | func TestWorkflowCallbackHandlerNotDoubled(t *testing.T) { function TestLoopAgentWithBreakLoopFollowedByMoreEvents (line 1289) | func TestLoopAgentWithBreakLoopFollowedByMoreEvents(t *testing.T) { FILE: adk/wrappers.go type generateEndpoint (line 33) | type generateEndpoint type streamEndpoint (line 34) | type streamEndpoint type modelWrapperConfig (line 36) | type modelWrapperConfig struct function buildModelWrappers (line 43) | func buildModelWrappers(m model.BaseChatModel, config *modelWrapperConfi... type callbackInjectionModelWrapper (line 62) | type callbackInjectionModelWrapper struct method WrapModel (line 64) | func (w *callbackInjectionModelWrapper) WrapModel(m model.BaseChatMode... type callbackInjectedModel (line 68) | type callbackInjectedModel struct method Generate (line 72) | func (m *callbackInjectedModel) Generate(ctx context.Context, input []... method Stream (line 83) | func (m *callbackInjectedModel) Stream(ctx context.Context, input []*s... function handlersToToolMiddlewares (line 94) | func handlersToToolMiddlewares(handlers []ChatModelAgentMiddleware) []co... type eventSenderModelWrapper (line 239) | type eventSenderModelWrapper struct method WrapModel (line 254) | func (w *eventSenderModelWrapper) WrapModel(_ context.Context, m model... function NewEventSenderModelWrapper (line 248) | func NewEventSenderModelWrapper() ChatModelAgentMiddleware { type eventSenderModel (line 262) | type eventSenderModel struct method Generate (line 267) | func (m *eventSenderModel) Generate(ctx context.Context, input []*sche... method Stream (line 285) | func (m *eventSenderModel) Stream(ctx context.Context, input []*schema... function popToolGenAction (line 322) | func popToolGenAction(ctx context.Context, toolName string) *AgentAction { type eventSenderToolHandler (line 344) | type eventSenderToolHandler struct method WrapInvokableToolCall (line 346) | func (h *eventSenderToolHandler) WrapInvokableToolCall(next compose.In... method WrapStreamableToolCall (line 377) | func (h *eventSenderToolHandler) WrapStreamableToolCall(next compose.S... method WrapEnhancedInvokableToolCall (line 411) | func (h *eventSenderToolHandler) WrapEnhancedInvokableToolCall(next co... method WrapEnhancedStreamableToolCall (line 446) | func (h *eventSenderToolHandler) WrapEnhancedStreamableToolCall(next c... type stateModelWrapper (line 486) | type stateModelWrapper struct method IsCallbacksEnabled (line 495) | func (w *stateModelWrapper) IsCallbacksEnabled() bool { method GetType (line 499) | func (w *stateModelWrapper) GetType() string { method hasUserEventSender (line 506) | func (w *stateModelWrapper) hasUserEventSender() bool { method wrapGenerateEndpoint (line 515) | func (w *stateModelWrapper) wrapGenerateEndpoint(endpoint generateEndp... method wrapStreamEndpoint (line 563) | func (w *stateModelWrapper) wrapStreamEndpoint(endpoint streamEndpoint... method Generate (line 611) | func (w *stateModelWrapper) Generate(ctx context.Context, input []*sch... method Stream (line 677) | func (w *stateModelWrapper) Stream(ctx context.Context, input []*schem... type endpointModel (line 747) | type endpointModel struct method Generate (line 752) | func (m *endpointModel) Generate(ctx context.Context, input []*schema.... method Stream (line 759) | func (m *endpointModel) Stream(ctx context.Context, input []*schema.Me... FILE: adk/wrappers_test.go type testEnhancedToolWrapperHandler (line 33) | type testEnhancedToolWrapperHandler struct method WrapEnhancedInvokableToolCall (line 39) | func (h *testEnhancedToolWrapperHandler) WrapEnhancedInvokableToolCall... method WrapEnhancedStreamableToolCall (line 46) | func (h *testEnhancedToolWrapperHandler) WrapEnhancedStreamableToolCal... function newTestEnhancedInvokableToolCallWrapper (line 53) | func newTestEnhancedInvokableToolCallWrapper(beforeFn, afterFn func()) f... function newTestEnhancedStreamableToolCallWrapper (line 68) | func newTestEnhancedStreamableToolCallWrapper(beforeFn, afterFn func()) ... function TestHandlersToToolMiddlewaresEnhanced (line 83) | func TestHandlersToToolMiddlewaresEnhanced(t *testing.T) { function TestEnhancedToolContextPropagation (line 396) | func TestEnhancedToolContextPropagation(t *testing.T) { function TestBaseChatModelAgentMiddlewareEnhancedDefaults (line 456) | func TestBaseChatModelAgentMiddlewareEnhancedDefaults(t *testing.T) { function TestEnhancedToolArgumentsPropagation (line 492) | func TestEnhancedToolArgumentsPropagation(t *testing.T) { function TestEnhancedToolResultPropagation (line 523) | func TestEnhancedToolResultPropagation(t *testing.T) { function TestEnhancedToolEndpointErrorFromNext (line 596) | func TestEnhancedToolEndpointErrorFromNext(t *testing.T) { function TestWrapModelStreamChunksPreserved (line 648) | func TestWrapModelStreamChunksPreserved(t *testing.T) { type mockStreamingModel (line 877) | type mockStreamingModel struct method Generate (line 881) | func (m *mockStreamingModel) Generate(ctx context.Context, input []*sc... method Stream (line 885) | func (m *mockStreamingModel) Stream(ctx context.Context, input []*sche... type streamConsumingModelWrapper (line 896) | type streamConsumingModelWrapper struct method Generate (line 900) | func (m *streamConsumingModelWrapper) Generate(ctx context.Context, in... method Stream (line 904) | func (m *streamConsumingModelWrapper) Stream(ctx context.Context, inpu... function TestEventSenderModelWrapperCustomPosition (line 916) | func TestEventSenderModelWrapperCustomPosition(t *testing.T) { type contentModifyingModelWrapper (line 1062) | type contentModifyingModelWrapper struct method Generate (line 1067) | func (m *contentModifyingModelWrapper) Generate(ctx context.Context, i... method Stream (line 1076) | func (m *contentModifyingModelWrapper) Stream(ctx context.Context, inp... FILE: callbacks/aspect_inject.go function OnStart (line 74) | func OnStart[T any](ctx context.Context, input T) context.Context { function OnEnd (line 86) | func OnEnd[T any](ctx context.Context, output T) context.Context { function OnStartWithStreamInput (line 100) | func OnStartWithStreamInput[T any](ctx context.Context, input *schema.St... function OnEndWithStreamOutput (line 113) | func OnEndWithStreamOutput[T any](ctx context.Context, output *schema.St... function OnError (line 125) | func OnError(ctx context.Context, err error) context.Context { function EnsureRunInfo (line 139) | func EnsureRunInfo(ctx context.Context, typ string, comp components.Comp... function ReuseHandlers (line 156) | func ReuseHandlers(ctx context.Context, info *RunInfo) context.Context { function InitCallbacks (line 172) | func InitCallbacks(ctx context.Context, info *RunInfo, handlers ...Handl... FILE: callbacks/aspect_inject_test.go function TestAspectInject (line 32) | func TestAspectInject(t *testing.T) { function TestGlobalCallbacksRepeated (line 187) | func TestGlobalCallbacksRepeated(t *testing.T) { function TestEnsureRunInfo (line 203) | func TestEnsureRunInfo(t *testing.T) { function TestNesting (line 237) | func TestNesting(t *testing.T) { function TestReuseHandlersOnEmptyCtx (line 262) | func TestReuseHandlersOnEmptyCtx(t *testing.T) { function TestAppendHandlersTwiceOnSameCtx (line 271) | func TestAppendHandlersTwiceOnSameCtx(t *testing.T) { type myCallback (line 286) | type myCallback struct method OnStart (line 291) | func (m *myCallback) OnStart(ctx context.Context, info *RunInfo, input... method OnEnd (line 306) | func (m *myCallback) OnEnd(ctx context.Context, info *RunInfo, output ... method OnError (line 320) | func (m *myCallback) OnError(ctx context.Context, info *RunInfo, err e... method OnStartWithStreamInput (line 324) | func (m *myCallback) OnStartWithStreamInput(ctx context.Context, info ... method OnEndWithStreamOutput (line 328) | func (m *myCallback) OnEndWithStreamOutput(ctx context.Context, info *... FILE: callbacks/handler_builder.go type HandlerBuilder (line 54) | type HandlerBuilder struct method OnStartFn (line 114) | func (hb *HandlerBuilder) OnStartFn( method OnEndFn (line 122) | func (hb *HandlerBuilder) OnEndFn( method OnErrorFn (line 130) | func (hb *HandlerBuilder) OnErrorFn( method OnStartWithStreamInputFn (line 141) | func (hb *HandlerBuilder) OnStartWithStreamInputFn( method OnEndWithStreamOutputFn (line 153) | func (hb *HandlerBuilder) OnEndWithStreamOutputFn( method Build (line 161) | func (hb *HandlerBuilder) Build() Handler { type handlerImpl (line 62) | type handlerImpl struct method OnStart (line 66) | func (hb *handlerImpl) OnStart(ctx context.Context, info *RunInfo, inp... method OnEnd (line 70) | func (hb *handlerImpl) OnEnd(ctx context.Context, info *RunInfo, outpu... method OnError (line 74) | func (hb *handlerImpl) OnError(ctx context.Context, info *RunInfo, err... method OnStartWithStreamInput (line 78) | func (hb *handlerImpl) OnStartWithStreamInput(ctx context.Context, inf... method OnEndWithStreamOutput (line 84) | func (hb *handlerImpl) OnEndWithStreamOutput(ctx context.Context, info... method Needed (line 90) | func (hb *handlerImpl) Needed(_ context.Context, _ *RunInfo, timing Ca... function NewHandlerBuilder (line 109) | func NewHandlerBuilder() *HandlerBuilder { FILE: callbacks/interface.go function InitCallbackHandlers (line 91) | func InitCallbackHandlers(handlers []Handler) { function AppendGlobalHandlers (line 103) | func AppendGlobalHandlers(handlers ...Handler) { constant TimingOnStart (line 117) | TimingOnStart CallbackTiming = iota constant TimingOnEnd (line 120) | TimingOnEnd constant TimingOnError (line 124) | TimingOnError constant TimingOnStartWithStreamInput (line 128) | TimingOnStartWithStreamInput constant TimingOnEndWithStreamOutput (line 133) | TimingOnEndWithStreamOutput FILE: callbacks/interface_test.go function TestAppendGlobalHandlers (line 28) | func TestAppendGlobalHandlers(t *testing.T) { FILE: components/document/callback_extra_loader.go type LoaderCallbackInput (line 25) | type LoaderCallbackInput struct type LoaderCallbackOutput (line 34) | type LoaderCallbackOutput struct function ConvLoaderCallbackInput (line 46) | func ConvLoaderCallbackInput(src callbacks.CallbackInput) *LoaderCallbac... function ConvLoaderCallbackOutput (line 60) | func ConvLoaderCallbackOutput(src callbacks.CallbackOutput) *LoaderCallb... FILE: components/document/callback_extra_transformer.go type TransformerCallbackInput (line 25) | type TransformerCallbackInput struct type TransformerCallbackOutput (line 34) | type TransformerCallbackOutput struct function ConvTransformerCallbackInput (line 43) | func ConvTransformerCallbackInput(src callbacks.CallbackInput) *Transfor... function ConvTransformerCallbackOutput (line 57) | func ConvTransformerCallbackOutput(src callbacks.CallbackOutput) *Transf... FILE: components/document/interface.go type Source (line 27) | type Source struct type Loader (line 43) | type Loader interface type Transformer (line 53) | type Transformer interface FILE: components/document/option.go type LoaderOptions (line 22) | type LoaderOptions struct type LoaderOption (line 29) | type LoaderOption struct function WrapLoaderImplSpecificOptFn (line 51) | func WrapLoaderImplSpecificOptFn[T any](optFn func(*T)) LoaderOption { function GetLoaderImplSpecificOptions (line 67) | func GetLoaderImplSpecificOptions[T any](base *T, opts ...LoaderOption) ... function GetLoaderCommonOptions (line 86) | func GetLoaderCommonOptions(base *LoaderOptions, opts ...LoaderOption) *... function WithParserOptions (line 102) | func WithParserOptions(opts ...parser.Option) LoaderOption { type TransformerOption (line 113) | type TransformerOption struct function WrapTransformerImplSpecificOptFn (line 135) | func WrapTransformerImplSpecificOptFn[T any](optFn func(*T)) Transformer... function GetTransformerImplSpecificOptions (line 151) | func GetTransformerImplSpecificOptions[T any](base *T, opts ...Transform... FILE: components/document/option_test.go function TestImplSpecificOpts (line 27) | func TestImplSpecificOpts(t *testing.T) { function TestCommonOptions (line 69) | func TestCommonOptions(t *testing.T) { FILE: components/document/parser/ext_parser.go type ExtParserConfig (line 29) | type ExtParserConfig struct type ExtParser (line 55) | type ExtParser struct method GetParsers (line 85) | func (p *ExtParser) GetParsers() map[string]Parser { method Parse (line 95) | func (p *ExtParser) Parse(ctx context.Context, reader io.Reader, opts ... function NewExtParser (line 62) | func NewExtParser(ctx context.Context, conf *ExtParserConfig) (*ExtParse... FILE: components/document/parser/interface.go type Parser (line 34) | type Parser interface FILE: components/document/parser/option.go type Options (line 20) | type Options struct type Option (line 31) | type Option struct function WithURI (line 39) | func WithURI(uri string) Option { function WithExtraMeta (line 48) | func WithExtraMeta(meta map[string]any) Option { function GetCommonOptions (line 57) | func GetCommonOptions(base *Options, opts ...Option) *Options { function WrapImplSpecificOptFn (line 90) | func WrapImplSpecificOptFn[T any](optFn func(*T)) Option { function GetImplSpecificOptions (line 100) | func GetImplSpecificOptions[T any](base *T, opts ...Option) *T { FILE: components/document/parser/option_test.go function TestImplSpecificOpts (line 25) | func TestImplSpecificOpts(t *testing.T) { FILE: components/document/parser/parser_test.go type ParserForTest (line 30) | type ParserForTest struct method Parse (line 34) | func (p *ParserForTest) Parse(ctx context.Context, reader io.Reader, o... function TestParser (line 38) | func TestParser(t *testing.T) { FILE: components/document/parser/text_parser.go constant MetaKeySource (line 28) | MetaKeySource = "_source" type TextParser (line 36) | type TextParser struct method Parse (line 39) | func (dp TextParser) Parse(ctx context.Context, reader io.Reader, opts... FILE: components/embedding/callback_extra.go type TokenUsage (line 24) | type TokenUsage struct type Config (line 34) | type Config struct type ComponentExtra (line 42) | type ComponentExtra struct type CallbackInput (line 50) | type CallbackInput struct type CallbackOutput (line 60) | type CallbackOutput struct function ConvCallbackInput (line 72) | func ConvCallbackInput(src callbacks.CallbackInput) *CallbackInput { function ConvCallbackOutput (line 86) | func ConvCallbackOutput(src callbacks.CallbackOutput) *CallbackOutput { FILE: components/embedding/callback_extra_test.go function TestConvEmbedding (line 25) | func TestConvEmbedding(t *testing.T) { FILE: components/embedding/interface.go type Embedder (line 37) | type Embedder interface FILE: components/embedding/option.go type Options (line 20) | type Options struct type Option (line 26) | type Option struct function WithModel (line 33) | func WithModel(model string) Option { function GetCommonOptions (line 49) | func GetCommonOptions(base *Options, opts ...Option) *Options { function WrapImplSpecificOptFn (line 72) | func WrapImplSpecificOptFn[T any](optFn func(*T)) Option { function GetImplSpecificOptions (line 86) | func GetImplSpecificOptions[T any](base *T, opts ...Option) *T { FILE: components/embedding/option_test.go function TestOptions (line 25) | func TestOptions(t *testing.T) { FILE: components/indexer/callback_extra.go type CallbackInput (line 25) | type CallbackInput struct type CallbackOutput (line 33) | type CallbackOutput struct function ConvCallbackInput (line 41) | func ConvCallbackInput(src callbacks.CallbackInput) *CallbackInput { function ConvCallbackOutput (line 55) | func ConvCallbackOutput(src callbacks.CallbackOutput) *CallbackOutput { FILE: components/indexer/callback_extra_test.go function TestConvIndexer (line 27) | func TestConvIndexer(t *testing.T) { FILE: components/indexer/interface.go type Indexer (line 37) | type Indexer interface FILE: components/indexer/option.go type Options (line 22) | type Options struct function WithSubIndexes (line 30) | func WithSubIndexes(subIndexes []string) Option { function WithEmbedding (line 39) | func WithEmbedding(emb embedding.Embedder) Option { type Option (line 48) | type Option struct function GetCommonOptions (line 61) | func GetCommonOptions(base *Options, opts ...Option) *Options { function WrapImplSpecificOptFn (line 78) | func WrapImplSpecificOptFn[T any](optFn func(*T)) Option { function GetImplSpecificOptions (line 86) | func GetImplSpecificOptions[T any](base *T, opts ...Option) *T { FILE: components/indexer/option_test.go function TestOptions (line 27) | func TestOptions(t *testing.T) { FILE: components/model/callback_extra.go type TokenUsage (line 25) | type TokenUsage struct type CompletionTokensDetails (line 38) | type CompletionTokensDetails struct type PromptTokenDetails (line 46) | type PromptTokenDetails struct type Config (line 52) | type Config struct type CallbackInput (line 66) | type CallbackInput struct type CallbackOutput (line 80) | type CallbackOutput struct function ConvCallbackInput (line 92) | func ConvCallbackInput(src callbacks.CallbackInput) *CallbackInput { function ConvCallbackOutput (line 106) | func ConvCallbackOutput(src callbacks.CallbackOutput) *CallbackOutput { FILE: components/model/callback_extra_test.go function TestConvModel (line 27) | func TestConvModel(t *testing.T) { FILE: components/model/interface.go type BaseChatModel (line 53) | type BaseChatModel interface type ChatModel (line 66) | type ChatModel interface type ToolCallingChatModel (line 85) | type ToolCallingChatModel interface FILE: components/model/option.go type Options (line 22) | type Options struct type Option (line 46) | type Option struct function WithTemperature (line 53) | func WithTemperature(temperature float32) Option { function WithMaxTokens (line 62) | func WithMaxTokens(maxTokens int) Option { function WithModel (line 71) | func WithModel(name string) Option { function WithTopP (line 80) | func WithTopP(topP float32) Option { function WithStop (line 89) | func WithStop(stop []string) Option { function WithTools (line 98) | func WithTools(tools []*schema.ToolInfo) Option { function WithToolChoice (line 111) | func WithToolChoice(toolChoice schema.ToolChoice, allowedToolNames ...st... function WrapImplSpecificOptFn (line 139) | func WrapImplSpecificOptFn[T any](optFn func(*T)) Option { function GetCommonOptions (line 154) | func GetCommonOptions(base *Options, opts ...Option) *Options { function GetImplSpecificOptions (line 182) | func GetImplSpecificOptions[T any](base *T, opts ...Option) *T { FILE: components/model/option_test.go function TestOptions (line 27) | func TestOptions(t *testing.T) { type implOption (line 87) | type implOption struct function WithUserID (line 92) | func WithUserID(uid int64) Option { function WithName (line 98) | func WithName(n string) Option { function TestImplSpecificOption (line 104) | func TestImplSpecificOption(t *testing.T) { FILE: components/prompt/callback_extra.go type CallbackInput (line 25) | type CallbackInput struct type CallbackOutput (line 35) | type CallbackOutput struct function ConvCallbackInput (line 45) | func ConvCallbackInput(src callbacks.CallbackInput) *CallbackInput { function ConvCallbackOutput (line 59) | func ConvCallbackOutput(src callbacks.CallbackOutput) *CallbackOutput { FILE: components/prompt/callback_extra_test.go function TestConvPrompt (line 27) | func TestConvPrompt(t *testing.T) { FILE: components/prompt/chat_template.go type DefaultChatTemplate (line 28) | type DefaultChatTemplate struct method Format (line 50) | func (t *DefaultChatTemplate) Format(ctx context.Context, method GetType (line 82) | func (t *DefaultChatTemplate) GetType() string { method IsCallbacksEnabled (line 87) | func (t *DefaultChatTemplate) IsCallbacksEnabled() bool { function FromMessages (line 42) | func FromMessages(formatType schema.FormatType, templates ...schema.Mess... FILE: components/prompt/chat_template_test.go function TestFormat (line 28) | func TestFormat(t *testing.T) { function TestDocumentFormat (line 86) | func TestDocumentFormat(t *testing.T) { function TestMultiContentFormat (line 117) | func TestMultiContentFormat(t *testing.T) { FILE: components/prompt/interface.go type ChatTemplate (line 42) | type ChatTemplate interface FILE: components/prompt/option.go type Option (line 22) | type Option struct function WrapImplSpecificOptFn (line 29) | func WrapImplSpecificOptFn[T any](optFn func(*T)) Option { function GetImplSpecificOptions (line 36) | func GetImplSpecificOptions[T any](base *T, opts ...Option) *T { FILE: components/prompt/option_test.go type implOption (line 25) | type implOption struct function WithUserID (line 30) | func WithUserID(uid int64) Option { function WithName (line 36) | func WithName(n string) Option { function TestImplSpecificOption (line 42) | func TestImplSpecificOption(t *testing.T) { FILE: components/retriever/callback_extra.go type CallbackInput (line 25) | type CallbackInput struct type CallbackOutput (line 41) | type CallbackOutput struct function ConvCallbackInput (line 49) | func ConvCallbackInput(src callbacks.CallbackInput) *CallbackInput { function ConvCallbackOutput (line 63) | func ConvCallbackOutput(src callbacks.CallbackOutput) *CallbackOutput { FILE: components/retriever/callback_extra_test.go function TestConvRetriever (line 27) | func TestConvRetriever(t *testing.T) { FILE: components/retriever/interface.go type Retriever (line 48) | type Retriever interface FILE: components/retriever/option.go type Options (line 22) | type Options struct function WithIndex (line 40) | func WithIndex(index string) Option { function WithSubIndex (line 49) | func WithSubIndex(subIndex string) Option { function WithTopK (line 58) | func WithTopK(topK int) Option { function WithScoreThreshold (line 67) | func WithScoreThreshold(threshold float64) Option { function WithEmbedding (line 76) | func WithEmbedding(emb embedding.Embedder) Option { function WithDSLInfo (line 85) | func WithDSLInfo(dsl map[string]any) Option { type Option (line 94) | type Option struct function GetCommonOptions (line 107) | func GetCommonOptions(base *Options, opts ...Option) *Options { function WrapImplSpecificOptFn (line 123) | func WrapImplSpecificOptFn[T any](optFn func(*T)) Option { function GetImplSpecificOptions (line 131) | func GetImplSpecificOptions[T any](base *T, opts ...Option) *T { FILE: components/retriever/option_test.go function TestOptions (line 27) | func TestOptions(t *testing.T) { FILE: components/tool/callback_extra.go type CallbackInput (line 25) | type CallbackInput struct type CallbackOutput (line 33) | type CallbackOutput struct function ConvCallbackInput (line 43) | func ConvCallbackInput(src callbacks.CallbackInput) *CallbackInput { function ConvCallbackOutput (line 57) | func ConvCallbackOutput(src callbacks.CallbackOutput) *CallbackOutput { FILE: components/tool/callback_extra_test.go function TestConvCallbackInput (line 25) | func TestConvCallbackInput(t *testing.T) { function TestConvCallbackOutput (line 32) | func TestConvCallbackOutput(t *testing.T) { FILE: components/tool/interface.go type BaseTool (line 32) | type BaseTool interface type InvokableTool (line 42) | type InvokableTool interface type StreamableTool (line 53) | type StreamableTool interface type EnhancedInvokableTool (line 67) | type EnhancedInvokableTool interface type EnhancedStreamableTool (line 76) | type EnhancedStreamableTool interface FILE: components/tool/interrupt.go function Interrupt (line 44) | func Interrupt(ctx context.Context, info any) error { function StatefulInterrupt (line 71) | func StatefulInterrupt(ctx context.Context, info any, state any) error { function CompositeInterrupt (line 100) | func CompositeInterrupt(ctx context.Context, info any, state any, errs .... function GetInterruptState (line 150) | func GetInterruptState[T any](ctx context.Context) (wasInterrupted bool,... function GetResumeContext (line 183) | func GetResumeContext[T any](ctx context.Context) (isResumeTarget bool, ... FILE: components/tool/interrupt_test.go function TestInterrupt (line 29) | func TestInterrupt(t *testing.T) { function TestStatefulInterrupt (line 43) | func TestStatefulInterrupt(t *testing.T) { function TestCompositeInterrupt (line 63) | func TestCompositeInterrupt(t *testing.T) { function TestGetInterruptState (line 116) | func TestGetInterruptState(t *testing.T) { function TestGetResumeContext (line 126) | func TestGetResumeContext(t *testing.T) { FILE: components/tool/option.go type Option (line 22) | type Option struct function WrapImplSpecificOptFn (line 44) | func WrapImplSpecificOptFn[T any](optFn func(*T)) Option { function GetImplSpecificOptions (line 62) | func GetImplSpecificOptions[T any](base *T, opts ...Option) *T { FILE: components/tool/option_test.go function TestImplSpecificOpts (line 25) | func TestImplSpecificOpts(t *testing.T) { FILE: components/tool/utils/common.go function marshalString (line 23) | func marshalString(resp any) (string, error) { FILE: components/tool/utils/common_test.go function TestMarshalString (line 26) | func TestMarshalString(t *testing.T) { function TestMarshalStringEdgeCases (line 145) | func TestMarshalStringEdgeCases(t *testing.T) { function TestMarshalStringConsistency (line 175) | func TestMarshalStringConsistency(t *testing.T) { FILE: components/tool/utils/create_options.go type UnmarshalArguments (line 27) | type UnmarshalArguments type MarshalOutput (line 30) | type MarshalOutput type toolOptions (line 32) | type toolOptions struct type Option (line 39) | type Option function WithUnmarshalArguments (line 43) | func WithUnmarshalArguments(um UnmarshalArguments) Option { function WithMarshalOutput (line 51) | func WithMarshalOutput(m MarshalOutput) Option { type SchemaModifierFn (line 64) | type SchemaModifierFn function WithSchemaModifier (line 67) | func WithSchemaModifier(modifier SchemaModifierFn) Option { function getToolOptions (line 73) | func getToolOptions(opt ...Option) *toolOptions { FILE: components/tool/utils/error_handler.go type ErrorHandler (line 28) | type ErrorHandler function WrapToolWithErrorHandler (line 42) | func WrapToolWithErrorHandler(t tool.BaseTool, h ErrorHandler) tool.Base... function WrapInvokableToolWithErrorHandler (line 81) | func WrapInvokableToolWithErrorHandler(t tool.InvokableTool, h ErrorHand... function WrapStreamableToolWithErrorHandler (line 102) | func WrapStreamableToolWithErrorHandler(t tool.StreamableTool, h ErrorHa... type errorWrapper (line 112) | type errorWrapper struct type streamErrorWrapper (line 117) | type streamErrorWrapper struct type combinedErrorWrapper (line 122) | type combinedErrorWrapper struct type infoHelper (line 128) | type infoHelper struct method Info (line 132) | func (i *infoHelper) Info(ctx context.Context) (*schema.ToolInfo, erro... type errorHelper (line 136) | type errorHelper struct method InvokableRun (line 141) | func (s *errorHelper) InvokableRun(ctx context.Context, argumentsInJSO... type streamErrorHelper (line 152) | type streamErrorHelper struct method StreamableRun (line 157) | func (s *streamErrorHelper) StreamableRun(ctx context.Context, argumen... FILE: components/tool/utils/error_handler_test.go type testErrorTool (line 31) | type testErrorTool struct method Info (line 33) | func (t *testErrorTool) Info(ctx context.Context) (*schema.ToolInfo, e... method InvokableRun (line 37) | func (t *testErrorTool) InvokableRun(ctx context.Context, argumentsInJ... method StreamableRun (line 41) | func (t *testErrorTool) StreamableRun(ctx context.Context, argumentsIn... function TestErrorWrapper (line 45) | func TestErrorWrapper(t *testing.T) { FILE: components/tool/utils/invokable_func.go type InvokeFunc (line 33) | type InvokeFunc type OptionableInvokeFunc (line 36) | type OptionableInvokeFunc function InferTool (line 46) | func InferTool[T, D any](toolName, toolDesc string, i InvokeFunc[T, D], ... function InferOptionableTool (line 57) | func InferOptionableTool[T, D any](toolName, toolDesc string, i Optionab... type EnhancedInvokeFunc (line 67) | type EnhancedInvokeFunc type OptionableEnhancedInvokeFunc (line 70) | type OptionableEnhancedInvokeFunc function InferEnhancedTool (line 75) | func InferEnhancedTool[T any](toolName, toolDesc string, i EnhancedInvok... function InferOptionableEnhancedTool (line 85) | func InferOptionableEnhancedTool[T any](toolName, toolDesc string, i Opt... function GoStruct2ParamsOneOf (line 97) | func GoStruct2ParamsOneOf[T any](opts ...Option) (*schema.ParamsOneOf, e... function GoStruct2ToolInfo (line 104) | func GoStruct2ToolInfo[T any](toolName, toolDesc string, opts ...Option)... function goStruct2ToolInfo (line 108) | func goStruct2ToolInfo[T any](toolName, toolDesc string, opts ...Option)... function goStruct2ParamsOneOf (line 120) | func goStruct2ParamsOneOf[T any](opts ...Option) (*schema.ParamsOneOf, e... function NewTool (line 143) | func NewTool[T, D any](desc *schema.ToolInfo, i InvokeFunc[T, D], opts .... function newOptionableTool (line 149) | func newOptionableTool[T, D any](desc *schema.ToolInfo, i OptionableInvo... type invokableTool (line 160) | type invokableTool struct method Info (line 169) | func (i *invokableTool[T, D]) Info(ctx context.Context) (*schema.ToolInf... method InvokableRun (line 174) | func (i *invokableTool[T, D]) InvokableRun(ctx context.Context, argument... method GetType (line 217) | func (i *invokableTool[T, D]) GetType() string { method getToolName (line 221) | func (i *invokableTool[T, D]) getToolName() string { function snakeToCamel (line 230) | func snakeToCamel(s string) string { function NewEnhancedTool (line 248) | func NewEnhancedTool[T any](desc *schema.ToolInfo, i EnhancedInvokeFunc[... function newOptionableEnhancedTool (line 254) | func newOptionableEnhancedTool[T any](desc *schema.ToolInfo, i Optionabl... type enhancedInvokableTool (line 264) | type enhancedInvokableTool struct method Info (line 272) | func (e *enhancedInvokableTool[T]) Info(ctx context.Context) (*schema.To... method InvokableRun (line 276) | func (e *enhancedInvokableTool[T]) InvokableRun(ctx context.Context, too... method GetType (line 308) | func (e *enhancedInvokableTool[T]) GetType() string { method getToolName (line 312) | func (e *enhancedInvokableTool[T]) getToolName() string { FILE: components/tool/utils/invokable_func_test.go type Job (line 33) | type Job struct type Income (line 39) | type Income struct type User (line 46) | type User struct type UserResult (line 55) | type UserResult struct function updateUserInfo (line 194) | func updateUserInfo(ctx context.Context, input *User) (output *UserResul... type UserInfoOption (line 201) | type UserInfoOption struct function WithUserInfoOption (line 205) | func WithUserInfoOption(s string) tool.Option { function updateUserInfoWithOption (line 211) | func updateUserInfoWithOption(_ context.Context, input *User, opts ...to... function TestInferTool (line 223) | func TestInferTool(t *testing.T) { function TestInferOptionableTool (line 251) | func TestInferOptionableTool(t *testing.T) { function TestNewTool (line 265) | func TestNewTool(t *testing.T) { function TestSnakeToCamel (line 320) | func TestSnakeToCamel(t *testing.T) { type stringAlias (line 342) | type stringAlias type integerAlias (line 343) | type integerAlias type floatAlias (line 344) | type floatAlias type boolAlias (line 345) | type boolAlias type testEnumStruct (line 347) | type testEnumStruct struct type testEnumStruct2 (line 358) | type testEnumStruct2 struct type testEnumStruct3 (line 362) | type testEnumStruct3 struct function TestEnumTag (line 366) | func TestEnumTag(t *testing.T) { FILE: components/tool/utils/streamable_func.go type StreamFunc (line 31) | type StreamFunc type OptionableStreamFunc (line 34) | type OptionableStreamFunc function InferStreamTool (line 39) | func InferStreamTool[T, D any](toolName, toolDesc string, s StreamFunc[T... function InferOptionableStreamTool (line 50) | func InferOptionableStreamTool[T, D any](toolName, toolDesc string, s Op... function NewStreamTool (line 61) | func NewStreamTool[T, D any](desc *schema.ToolInfo, s StreamFunc[T, D], ... function newOptionableStreamTool (line 69) | func newOptionableStreamTool[T, D any](desc *schema.ToolInfo, s Optionab... type streamableTool (line 82) | type streamableTool struct method Info (line 92) | func (s *streamableTool[T, D]) Info(ctx context.Context) (*schema.ToolIn... method StreamableRun (line 97) | func (s *streamableTool[T, D]) StreamableRun(ctx context.Context, argume... method GetType (line 149) | func (s *streamableTool[T, D]) GetType() string { method getToolName (line 153) | func (s *streamableTool[T, D]) getToolName() string { type EnhancedStreamFunc (line 162) | type EnhancedStreamFunc type OptionableEnhancedStreamFunc (line 165) | type OptionableEnhancedStreamFunc function InferEnhancedStreamTool (line 170) | func InferEnhancedStreamTool[T any](toolName, toolDesc string, s Enhance... function InferOptionableEnhancedStreamTool (line 180) | func InferOptionableEnhancedStreamTool[T any](toolName, toolDesc string,... function NewEnhancedStreamTool (line 191) | func NewEnhancedStreamTool[T any](desc *schema.ToolInfo, s EnhancedStrea... function newOptionableEnhancedStreamTool (line 199) | func newOptionableEnhancedStreamTool[T any](desc *schema.ToolInfo, s Opt... type enhancedStreamableTool (line 209) | type enhancedStreamableTool struct method Info (line 217) | func (s *enhancedStreamableTool[T]) Info(ctx context.Context) (*schema.T... method StreamableRun (line 221) | func (s *enhancedStreamableTool[T]) StreamableRun(ctx context.Context, t... method GetType (line 249) | func (s *enhancedStreamableTool[T]) GetType() string { method getToolName (line 253) | func (s *enhancedStreamableTool[T]) getToolName() string { FILE: components/tool/utils/streamable_func_test.go function TestNewStreamableTool (line 33) | func TestNewStreamableTool(t *testing.T) { type FakeStreamOption (line 117) | type FakeStreamOption struct type FakeStreamInferToolInput (line 121) | type FakeStreamInferToolInput struct type FakeStreamInferToolOutput (line 125) | type FakeStreamInferToolOutput struct function FakeWithToolOption (line 129) | func FakeWithToolOption(s string) tool.Option { function fakeStreamFunc (line 135) | func fakeStreamFunc(ctx context.Context, input FakeStreamInferToolInput,... function TestInferStreamTool (line 148) | func TestInferStreamTool(t *testing.T) { type EnhancedStreamInput (line 171) | type EnhancedStreamInput struct function TestNewEnhancedStreamTool (line 175) | func TestNewEnhancedStreamTool(t *testing.T) { type FakeEnhancedStreamOption (line 238) | type FakeEnhancedStreamOption struct function FakeWithEnhancedStreamOption (line 242) | func FakeWithEnhancedStreamOption(prefix string) tool.Option { function fakeEnhancedStreamFunc (line 248) | func fakeEnhancedStreamFunc(ctx context.Context, input EnhancedStreamInp... function fakeOptionableEnhancedStreamFunc (line 258) | func fakeOptionableEnhancedStreamFunc(ctx context.Context, input Enhance... function TestInferEnhancedStreamTool (line 273) | func TestInferEnhancedStreamTool(t *testing.T) { function TestInferOptionableEnhancedStreamTool (line 295) | func TestInferOptionableEnhancedStreamTool(t *testing.T) { FILE: components/types.go type Typer (line 29) | type Typer interface function GetType (line 34) | func GetType(component any) (string, bool) { type Checker (line 50) | type Checker interface function IsCallbacksEnabled (line 55) | func IsCallbacksEnabled(i any) bool { type Component (line 64) | type Component constant ComponentOfPrompt (line 68) | ComponentOfPrompt Component = "ChatTemplate" constant ComponentOfChatModel (line 70) | ComponentOfChatModel Component = "ChatModel" constant ComponentOfEmbedding (line 72) | ComponentOfEmbedding Component = "Embedding" constant ComponentOfIndexer (line 74) | ComponentOfIndexer Component = "Indexer" constant ComponentOfRetriever (line 76) | ComponentOfRetriever Component = "Retriever" constant ComponentOfLoader (line 78) | ComponentOfLoader Component = "Loader" constant ComponentOfTransformer (line 80) | ComponentOfTransformer Component = "DocumentTransformer" constant ComponentOfTool (line 82) | ComponentOfTool Component = "Tool" FILE: compose/branch.go type GraphBranchCondition (line 29) | type GraphBranchCondition type StreamGraphBranchCondition (line 32) | type StreamGraphBranchCondition type GraphMultiBranchCondition (line 35) | type GraphMultiBranchCondition type StreamGraphMultiBranchCondition (line 38) | type StreamGraphMultiBranchCondition type GraphBranch (line 42) | type GraphBranch struct method GetEndNode (line 53) | func (gb *GraphBranch) GetEndNode() map[string]bool { function newGraphBranch (line 57) | func newGraphBranch[T any](r *runnablePacker[T, []string, any], endNodes... function NewGraphMultiBranch (line 89) | func NewGraphMultiBranch[T any](condition GraphMultiBranchCondition[T], ... function NewStreamGraphMultiBranch (line 111) | func NewStreamGraphMultiBranch[T any](condition StreamGraphMultiBranchCo... function NewGraphBranch (line 145) | func NewGraphBranch[T any](condition GraphBranchCondition[T], endNodes m... function NewStreamGraphBranch (line 168) | func NewStreamGraphBranch[T any](condition StreamGraphBranchCondition[T]... FILE: compose/branch_test.go function TestMultiBranch (line 29) | func TestMultiBranch(t *testing.T) { function TestStreamMultiBranch (line 81) | func TestStreamMultiBranch(t *testing.T) { FILE: compose/chain.go function NewChain (line 37) | func NewChain[I, O any](opts ...NewGraphOption) *Chain[I, O] { type Chain (line 72) | type Chain struct method compile (line 88) | func (c *Chain[I, O]) compile(ctx context.Context, option *graphCompileO... method addEndIfNeeded (line 98) | func (c *Chain[I, O]) addEndIfNeeded() error { method getGenericHelper (line 123) | func (c *Chain[I, O]) getGenericHelper() *genericHelper { method inputType (line 129) | func (c *Chain[I, O]) inputType() reflect.Type { method outputType (line 135) | func (c *Chain[I, O]) outputType() reflect.Type { method component (line 141) | func (c *Chain[I, O]) component() component { method Compile (line 157) | func (c *Chain[I, O]) Compile(ctx context.Context, opts ...GraphCompileO... method AppendChatModel (line 171) | func (c *Chain[I, O]) AppendChatModel(node model.BaseChatModel, opts ...... method AppendChatTemplate (line 186) | func (c *Chain[I, O]) AppendChatTemplate(node prompt.ChatTemplate, opts ... method AppendToolsNode (line 200) | func (c *Chain[I, O]) AppendToolsNode(node *ToolsNode, opts ...GraphAddN... method AppendDocumentTransformer (line 212) | func (c *Chain[I, O]) AppendDocumentTransformer(node document.Transforme... method AppendLambda (line 228) | func (c *Chain[I, O]) AppendLambda(node *Lambda, opts ...GraphAddNodeOpt... method AppendEmbedding (line 240) | func (c *Chain[I, O]) AppendEmbedding(node embedding.Embedder, opts ...G... method AppendRetriever (line 259) | func (c *Chain[I, O]) AppendRetriever(node retriever.Retriever, opts ...... method AppendLoader (line 271) | func (c *Chain[I, O]) AppendLoader(node document.Loader, opts ...GraphAd... method AppendIndexer (line 289) | func (c *Chain[I, O]) AppendIndexer(node indexer.Indexer, opts ...GraphA... method AppendBranch (line 304) | func (c *Chain[I, O]) AppendBranch(b *ChainBranch) *Chain[I, O] { method AppendParallel (line 421) | func (c *Chain[I, O]) AppendParallel(p *Parallel) *Chain[I, O] { method AppendGraph (line 484) | func (c *Chain[I, O]) AppendGraph(node AnyGraph, opts ...GraphAddNodeOpt... method AppendPassthrough (line 495) | func (c *Chain[I, O]) AppendPassthrough(opts ...GraphAddNodeOpt) *Chain[... method nextNodeKey (line 506) | func (c *Chain[I, O]) nextNodeKey() string { method reportError (line 514) | func (c *Chain[I, O]) reportError(err error) { method addNode (line 522) | func (c *Chain[I, O]) addNode(node *graphNode, options *graphAddNodeOpts) { FILE: compose/chain_branch.go type nodeOptionsPair (line 33) | type nodeOptionsPair type ChainBranch (line 38) | type ChainBranch struct method AddChatModel (line 144) | func (cb *ChainBranch) AddChatModel(key string, node model.BaseChatMod... method AddChatTemplate (line 165) | func (cb *ChainBranch) AddChatTemplate(key string, node prompt.ChatTem... method AddToolsNode (line 178) | func (cb *ChainBranch) AddToolsNode(key string, node *ToolsNode, opts ... method AddLambda (line 192) | func (cb *ChainBranch) AddLambda(key string, node *Lambda, opts ...Gra... method AddEmbedding (line 205) | func (cb *ChainBranch) AddEmbedding(key string, node embedding.Embedde... method AddRetriever (line 218) | func (cb *ChainBranch) AddRetriever(key string, node retriever.Retriev... method AddLoader (line 232) | func (cb *ChainBranch) AddLoader(key string, node document.Loader, opt... method AddIndexer (line 245) | func (cb *ChainBranch) AddIndexer(key string, node indexer.Indexer, op... method AddDocumentTransformer (line 256) | func (cb *ChainBranch) AddDocumentTransformer(key string, node documen... method AddGraph (line 267) | func (cb *ChainBranch) AddGraph(key string, node AnyGraph, opts ...Gra... method AddPassthrough (line 276) | func (cb *ChainBranch) AddPassthrough(key string, opts ...GraphAddNode... method addNode (line 281) | func (cb *ChainBranch) addNode(key string, node *graphNode, options *g... function NewChainMultiBranch (line 46) | func NewChainMultiBranch[T any](cond GraphMultiBranchCondition[T]) *Chai... function NewStreamChainMultiBranch (line 67) | func NewStreamChainMultiBranch[T any](cond StreamGraphMultiBranchConditi... function NewChainBranch (line 100) | func NewChainBranch[T any](cond GraphBranchCondition[T]) *ChainBranch { function NewStreamChainBranch (line 123) | func NewStreamChainBranch[T any](cond StreamGraphBranchCondition[T]) *Ch... FILE: compose/chain_branch_test.go function TestChainBranch (line 35) | func TestChainBranch(t *testing.T) { function TestChainMultiBranch (line 276) | func TestChainMultiBranch(t *testing.T) { function TestStreamChainMultiBranch (line 313) | func TestStreamChainMultiBranch(t *testing.T) { FILE: compose/chain_parallel.go function NewParallel (line 32) | func NewParallel() *Parallel { type Parallel (line 49) | type Parallel struct method AddChatModel (line 68) | func (p *Parallel) AddChatModel(outputKey string, node model.BaseChatM... method AddChatTemplate (line 82) | func (p *Parallel) AddChatTemplate(outputKey string, node prompt.ChatT... method AddToolsNode (line 95) | func (p *Parallel) AddToolsNode(outputKey string, node *ToolsNode, opt... method AddLambda (line 108) | func (p *Parallel) AddLambda(outputKey string, node *Lambda, opts ...G... method AddEmbedding (line 121) | func (p *Parallel) AddEmbedding(outputKey string, node embedding.Embed... method AddRetriever (line 132) | func (p *Parallel) AddRetriever(outputKey string, node retriever.Retri... method AddLoader (line 143) | func (p *Parallel) AddLoader(outputKey string, node document.Loader, o... method AddIndexer (line 156) | func (p *Parallel) AddIndexer(outputKey string, node indexer.Indexer, ... method AddDocumentTransformer (line 167) | func (p *Parallel) AddDocumentTransformer(outputKey string, node docum... method AddGraph (line 179) | func (p *Parallel) AddGraph(outputKey string, node AnyGraph, opts ...G... method AddPassthrough (line 188) | func (p *Parallel) AddPassthrough(outputKey string, opts ...GraphAddNo... method addNode (line 193) | func (p *Parallel) addNode(outputKey string, node *graphNode, options ... FILE: compose/chain_test.go function TestChain (line 37) | func TestChain(t *testing.T) { function TestChainWithException (line 112) | func TestChainWithException(t *testing.T) { function TestEmptyList (line 219) | func TestEmptyList(t *testing.T) { function TestChainList (line 250) | func TestChainList(t *testing.T) { function TestChainSingleNode (line 303) | func TestChainSingleNode(t *testing.T) { function TestParallelModels (line 340) | func TestParallelModels(t *testing.T) { function TestChainMultiNodes (line 376) | func TestChainMultiNodes(t *testing.T) { function TestParallelMultiNodes (line 551) | func TestParallelMultiNodes(t *testing.T) { type FakeLambdaOptions (line 590) | type FakeLambdaOptions struct type FakeLambdaOption (line 594) | type FakeLambdaOption function FakeWithLambdaInfo (line 596) | func FakeWithLambdaInfo(info string) FakeLambdaOption { function TestChainWithNodeKey (line 602) | func TestChainWithNodeKey(t *testing.T) { FILE: compose/checkpoint.go function init (line 28) | func init() { function RegisterSerializableType (line 47) | func RegisterSerializableType[T any](name string) (err error) { type Serializer (line 53) | type Serializer interface function WithCheckPointStore (line 59) | func WithCheckPointStore(store CheckPointStore) GraphCompileOption { function WithSerializer (line 66) | func WithSerializer(serializer Serializer) GraphCompileOption { function WithCheckPointID (line 73) | func WithCheckPointID(checkPointID string) Option { function WithWriteToCheckPointID (line 83) | func WithWriteToCheckPointID(checkPointID string) Option { function WithForceNewRun (line 90) | func WithForceNewRun() Option { type StateModifier (line 97) | type StateModifier function WithStateModifier (line 100) | func WithStateModifier(sm StateModifier) Option { type checkpoint (line 106) | type checkpoint struct type stateModifierKey (line 119) | type stateModifierKey struct type checkPointKey (line 120) | type checkPointKey struct function getStateModifier (line 122) | func getStateModifier(ctx context.Context) StateModifier { function setStateModifier (line 129) | func setStateModifier(ctx context.Context, modifier StateModifier) conte... function getCheckPointFromStore (line 133) | func getCheckPointFromStore(ctx context.Context, id string, cpr *checkPo... function setCheckPointToCtx (line 145) | func setCheckPointToCtx(ctx context.Context, cp *checkpoint) context.Con... function getCheckPointFromCtx (line 150) | func getCheckPointFromCtx(ctx context.Context) *checkpoint { function forwardCheckPoint (line 157) | func forwardCheckPoint(ctx context.Context, nodeKey string) context.Cont... function newCheckPointer (line 170) | func newCheckPointer( type checkPointer (line 185) | type checkPointer struct method get (line 191) | func (c *checkPointer) get(ctx context.Context, id string) (*checkpoin... method set (line 206) | func (c *checkPointer) set(ctx context.Context, id string, cp *checkpo... method convertCheckPoint (line 272) | func (c *checkPointer) convertCheckPoint(cp *checkpoint, isStream bool... method restoreCheckPoint (line 291) | func (c *checkPointer) restoreCheckPoint(cp *checkpoint, isStream bool... function MigrateCheckpointState (line 231) | func MigrateCheckpointState(data []byte, serializer Serializer, migrate ... function migrateCheckpoint (line 247) | func migrateCheckpoint(cp *checkpoint, migrate func(state any) (any, boo... function newStreamConverter (line 309) | func newStreamConverter(inputPairs, outputPairs map[string]streamConvert... type streamConverter (line 316) | type streamConverter struct method convertInputs (line 320) | func (s *streamConverter) convertInputs(isStream bool, values map[stri... method restoreInputs (line 324) | func (s *streamConverter) restoreInputs(isStream bool, values map[stri... method convertOutputs (line 328) | func (s *streamConverter) convertOutputs(isStream bool, values map[str... method restoreOutputs (line 332) | func (s *streamConverter) restoreOutputs(isStream bool, values map[str... function convert (line 336) | func convert(values map[string]any, convPairs map[string]streamConvertPa... function restore (line 358) | func restore(values map[string]any, convPairs map[string]streamConvertPa... FILE: compose/checkpoint_migrate_test.go type stubSerializer (line 26) | type stubSerializer struct method Marshal (line 31) | func (s stubSerializer) Marshal(v any) ([]byte, error) { method Unmarshal (line 35) | func (s stubSerializer) Unmarshal(data []byte, v any) error { function TestMigrateCheckpointState_UnmarshalError (line 39) | func TestMigrateCheckpointState_UnmarshalError(t *testing.T) { function TestMigrateCheckpointState_NoChangeReturnsOriginalBytes (line 51) | func TestMigrateCheckpointState_NoChangeReturnsOriginalBytes(t *testing.... function TestMigrateCheckpointState_ChangeTriggersMarshal (line 70) | func TestMigrateCheckpointState_ChangeTriggersMarshal(t *testing.T) { function TestMigrateCheckpointState_MigrateErrorStops (line 92) | func TestMigrateCheckpointState_MigrateErrorStops(t *testing.T) { FILE: compose/checkpoint_test.go type inMemoryStore (line 37) | type inMemoryStore struct method Get (line 41) | func (i *inMemoryStore) Get(_ context.Context, checkPointID string) ([... method Set (line 46) | func (i *inMemoryStore) Set(_ context.Context, checkPointID string, ch... function newInMemoryStore (line 51) | func newInMemoryStore() *inMemoryStore { type testStruct (line 57) | type testStruct struct function init (line 61) | func init() { function TestSimpleCheckPoint (line 65) | func TestSimpleCheckPoint(t *testing.T) { function TestCustomStructInAn2y (line 157) | func TestCustomStructInAn2y(t *testing.T) { function TestSubGraph (line 248) | func TestSubGraph(t *testing.T) { type testGraphCallback (line 389) | type testGraphCallback struct method OnStart (line 397) | func (t *testGraphCallback) OnStart(ctx context.Context, info *callbac... method OnEnd (line 404) | func (t *testGraphCallback) OnEnd(ctx context.Context, info *callbacks... method OnError (line 411) | func (t *testGraphCallback) OnError(ctx context.Context, info *callbac... method OnStartWithStreamInput (line 418) | func (t *testGraphCallback) OnStartWithStreamInput(ctx context.Context... method OnEndWithStreamOutput (line 426) | func (t *testGraphCallback) OnEndWithStreamOutput(ctx context.Context,... function TestNestedSubGraph (line 434) | func TestNestedSubGraph(t *testing.T) { function TestDAGInterrupt (line 1125) | func TestDAGInterrupt(t *testing.T) { function TestRerunNodeInterrupt (line 1165) | func TestRerunNodeInterrupt(t *testing.T) { type myInterface (line 1221) | type myInterface interface function TestInterfaceResume (line 1225) | func TestInterfaceResume(t *testing.T) { function TestEarlyFailCallback (line 1251) | func TestEarlyFailCallback(t *testing.T) { function TestGraphStartInterrupt (line 1269) | func TestGraphStartInterrupt(t *testing.T) { function TestWithForceNewRun (line 1299) | func TestWithForceNewRun(t *testing.T) { type failStore (line 1314) | type failStore struct method Get (line 1318) | func (f *failStore) Get(_ context.Context, _ string) ([]byte, bool, er... method Set (line 1323) | func (f *failStore) Set(_ context.Context, _ string, _ []byte) error { function TestPreHandlerInterrupt (line 1328) | func TestPreHandlerInterrupt(t *testing.T) { function TestCancelInterrupt (line 1358) | func TestCancelInterrupt(t *testing.T) { function TestPersistRerunInputNonStream (line 1539) | func TestPersistRerunInputNonStream(t *testing.T) { function TestPersistRerunInputStream (line 1600) | func TestPersistRerunInputStream(t *testing.T) { type testPersistRerunInputState (line 1692) | type testPersistRerunInputState struct function TestPersistRerunInputWithPreHandler (line 1696) | func TestPersistRerunInputWithPreHandler(t *testing.T) { function TestPersistRerunInputBackwardCompatibility (line 1765) | func TestPersistRerunInputBackwardCompatibility(t *testing.T) { function TestPersistRerunInputSubGraph (line 1812) | func TestPersistRerunInputSubGraph(t *testing.T) { type longRunningToolInput (line 1891) | type longRunningToolInput struct function TestToolsNodeWithExternalGraphInterrupt (line 1895) | func TestToolsNodeWithExternalGraphInterrupt(t *testing.T) { type checkpointTestTool (line 1977) | type checkpointTestTool struct function newCheckpointTestTool (line 1982) | func newCheckpointTestTool[I, O any](info *schema.ToolInfo, f func(ctx c... method Info (line 1989) | func (f *checkpointTestTool[I, O]) Info(ctx context.Context) (*schema.To... method InvokableRun (line 1993) | func (f *checkpointTestTool[I, O]) InvokableRun(ctx context.Context, arg... FILE: compose/component_to_graph_node.go function toComponentNode (line 29) | func toComponentNode[I, O, TOption any]( function toEmbeddingNode (line 49) | func toEmbeddingNode(node embedding.Embedder, opts ...GraphAddNodeOpt) (... function toRetrieverNode (line 60) | func toRetrieverNode(node retriever.Retriever, opts ...GraphAddNodeOpt) ... function toLoaderNode (line 71) | func toLoaderNode(node document.Loader, opts ...GraphAddNodeOpt) (*graph... function toIndexerNode (line 82) | func toIndexerNode(node indexer.Indexer, opts ...GraphAddNodeOpt) (*grap... function toChatModelNode (line 93) | func toChatModelNode(node model.BaseChatModel, opts ...GraphAddNodeOpt) ... function toChatTemplateNode (line 104) | func toChatTemplateNode(node prompt.ChatTemplate, opts ...GraphAddNodeOp... function toDocumentTransformerNode (line 115) | func toDocumentTransformerNode(node document.Transformer, opts ...GraphA... function toToolsNode (line 126) | func toToolsNode(node *ToolsNode, opts ...GraphAddNodeOpt) (*graphNode, ... function toLambdaNode (line 137) | func toLambdaNode(node *Lambda, opts ...GraphAddNodeOpt) (*graphNode, *g... function toAnyGraphNode (line 145) | func toAnyGraphNode(node AnyGraph, opts ...GraphAddNodeOpt) (*graphNode,... function toPassthroughNode (line 154) | func toPassthroughNode(opts ...GraphAddNodeOpt) (*graphNode, *graphAddNo... function toNode (line 161) | func toNode(nodeInfo *nodeInfo, executor *composableRunnable, graph AnyG... FILE: compose/dag.go function dagChannelBuilder (line 23) | func dagChannelBuilder(controlDependencies []string, dataDependencies []... type dependencyState (line 42) | type dependencyState constant dependencyStateWaiting (line 45) | dependencyStateWaiting dependencyState = iota constant dependencyStateReady (line 46) | dependencyStateReady constant dependencyStateSkipped (line 47) | dependencyStateSkipped type dagChannel (line 50) | type dagChannel struct method setMergeConfig (line 62) | func (ch *dagChannel) setMergeConfig(cfg FanInMergeConfig) { method load (line 66) | func (ch *dagChannel) load(c channel) error { method reportValues (line 78) | func (ch *dagChannel) reportValues(ins map[string]any) error { method reportDependencies (line 93) | func (ch *dagChannel) reportDependencies(dependencies []string) { method reportSkip (line 106) | func (ch *dagChannel) reportSkip(keys []string) bool { method get (line 128) | func (ch *dagChannel) get(isStream bool, name string, edgeHandler *edg... method convertValues (line 193) | func (ch *dagChannel) convertValues(fn func(map[string]any) error) err... FILE: compose/dag_test.go function TestDAG (line 26) | func TestDAG(t *testing.T) { FILE: compose/error.go function newUnexpectedInputTypeErr (line 29) | func newUnexpectedInputTypeErr(expected reflect.Type, got reflect.Type) ... type defaultImplAction (line 33) | type defaultImplAction constant actionInvokeByStream (line 36) | actionInvokeByStream defaultImplAction = "InvokeByStream" constant actionInvokeByCollect (line 37) | actionInvokeByCollect defaultImplAction = "InvokeByCollect" constant actionInvokeByTransform (line 38) | actionInvokeByTransform defaultImplAction = "InvokeByTransform" constant actionStreamByInvoke (line 39) | actionStreamByInvoke defaultImplAction = "StreamByInvoke" constant actionStreamByTransform (line 40) | actionStreamByTransform defaultImplAction = "StreamByTransform" constant actionStreamByCollect (line 41) | actionStreamByCollect defaultImplAction = "StreamByCollect" constant actionCollectByTransform (line 42) | actionCollectByTransform defaultImplAction = "CollectByTransform" constant actionCollectByInvoke (line 43) | actionCollectByInvoke defaultImplAction = "CollectByInvoke" constant actionCollectByStream (line 44) | actionCollectByStream defaultImplAction = "CollectByStream" constant actionTransformByStream (line 45) | actionTransformByStream defaultImplAction = "TransformByStream" constant actionTransformByCollect (line 46) | actionTransformByCollect defaultImplAction = "TransformByCollect" constant actionTransformByInvoke (line 47) | actionTransformByInvoke defaultImplAction = "TransformByInvoke" function newStreamReadError (line 50) | func newStreamReadError(err error) error { function newGraphRunError (line 54) | func newGraphRunError(err error) error { function wrapGraphNodeError (line 62) | func wrapGraphNodeError(nodeKey string, err error) error { type internalErrorType (line 79) | type internalErrorType constant internalErrorTypeNodeRun (line 82) | internalErrorTypeNodeRun = "NodeRunError" constant internalErrorTypeGraphRun (line 83) | internalErrorTypeGraphRun = "GraphRunError" type internalError (line 86) | type internalError struct method Error (line 92) | func (i *internalError) Error() string { method Unwrap (line 109) | func (i *internalError) Unwrap() error { FILE: compose/error_test.go function TestCommonError (line 30) | func TestCommonError(t *testing.T) { function TestSubGraphNodeError (line 59) | func TestSubGraphNodeError(t *testing.T) { function TestContextCancelDuringRun (line 82) | func TestContextCancelDuringRun(t *testing.T) { FILE: compose/field_mapping.go type FieldMapping (line 31) | type FieldMapping struct method String (line 40) | func (m *FieldMapping) String() string { method FromNodeKey (line 92) | func (m *FieldMapping) FromNodeKey() string { method FromPath (line 96) | func (m *FieldMapping) FromPath() FieldPath { method ToPath (line 100) | func (m *FieldMapping) ToPath() FieldPath { method Equals (line 104) | func (m *FieldMapping) Equals(o *FieldMapping) bool { method targetPath (line 208) | func (m *FieldMapping) targetPath() FieldPath { function FromField (line 65) | func FromField(from string) *FieldMapping { function ToField (line 73) | func ToField(to string, opts ...FieldMappingOption) *FieldMapping { function MapFields (line 85) | func MapFields(from, to string) *FieldMapping { type FieldPath (line 125) | type FieldPath method join (line 127) | func (fp *FieldPath) join() string { function splitFieldPath (line 131) | func splitFieldPath(path string) FieldPath { constant pathSeparator (line 142) | pathSeparator = "\x1F" function FromFieldPath (line 154) | func FromFieldPath(fromFieldPath FieldPath) *FieldMapping { function ToFieldPath (line 168) | func ToFieldPath(toFieldPath FieldPath, opts ...FieldMappingOption) *Fie... function MapFieldPaths (line 189) | func MapFieldPaths(fromFieldPath, toFieldPath FieldPath) *FieldMapping { type FieldMappingOption (line 197) | type FieldMappingOption function WithCustomExtractor (line 202) | func WithCustomExtractor(extractor func(input any) (any, error)) FieldMa... function buildFieldMappingConverter (line 212) | func buildFieldMappingConverter[I any]() func(input any) (any, error) { function buildStreamFieldMappingConverter (line 223) | func buildStreamFieldMappingConverter[I any]() func(input streamReader) ... function convertTo (line 237) | func convertTo(mappings map[string]any, typ reflect.Type) any { function assignOne (line 250) | func assignOne(destValue reflect.Value, taken any, to string) reflect.Va... function instantiateIfNeeded (line 366) | func instantiateIfNeeded(field reflect.Value) { function newInstanceByType (line 378) | func newInstanceByType(typ reflect.Type) reflect.Value { function checkAndExtractFromField (line 398) | func checkAndExtractFromField(fromField string, input reflect.Value) (re... type errMapKeyNotFound (line 411) | type errMapKeyNotFound struct method Error (line 415) | func (e *errMapKeyNotFound) Error() string { type errInterfaceNotValidForFieldMapping (line 419) | type errInterfaceNotValidForFieldMapping struct method Error (line 424) | func (e *errInterfaceNotValidForFieldMapping) Error() string { function checkAndExtractFromMapKey (line 428) | func checkAndExtractFromMapKey(fromMapKey string, input reflect.Value) (... function checkAndExtractFieldType (line 442) | func checkAndExtractFieldType(paths []string, typ reflect.Type) (extract... function fieldMap (line 484) | func fieldMap(mappings []*FieldMapping, allowMapKeyNotFound bool, unchec... function streamFieldMap (line 568) | func streamFieldMap(mappings []*FieldMapping, uncheckedSourcePaths map[s... function takeOne (line 574) | func takeOne(inputValue reflect.Value, inputType reflect.Type, from stri... function isFromAll (line 603) | func isFromAll(mappings []*FieldMapping) bool { function fromFields (line 612) | func fromFields(mappings []*FieldMapping) bool { function isToAll (line 622) | func isToAll(mappings []*FieldMapping) bool { function validateStructOrMap (line 631) | func validateStructOrMap(t reflect.Type) bool { function validateFieldMapping (line 645) | func validateFieldMapping(predecessorType reflect.Type, successorType re... FILE: compose/generic_graph.go type newGraphOptions (line 26) | type newGraphOptions struct type NewGraphOption (line 33) | type NewGraphOption function WithGenLocalState (line 37) | func WithGenLocalState[S any](gls GenLocalState[S]) NewGraphOption { function NewGraph (line 72) | func NewGraph[I, O any](opts ...NewGraphOption) *Graph[I, O] { type Graph (line 93) | type Graph struct method AddEdge (line 106) | func (g *Graph[I, O]) AddEdge(startNode, endNode string) (err error) { method Compile (line 123) | func (g *Graph[I, O]) Compile(ctx context.Context, opts ...GraphCompileO... function compileAnyGraph (line 127) | func compileAnyGraph[I, O any](ctx context.Context, g AnyGraph, opts ...... FILE: compose/generic_helper.go function newGenericHelper (line 28) | func newGenericHelper[I, O any]() *genericHelper { type genericHelper (line 57) | type genericHelper struct method forMapInput (line 71) | func (g *genericHelper) forMapInput() *genericHelper { method forMapOutput (line 95) | func (g *genericHelper) forMapOutput() *genericHelper { method forPredecessorPassthrough (line 119) | func (g *genericHelper) forPredecessorPassthrough() *genericHelper { method forSuccessorPassthrough (line 136) | func (g *genericHelper) forSuccessorPassthrough() *genericHelper { type streamMapFilter (line 153) | type streamMapFilter type valueHandler (line 155) | type valueHandler type streamHandler (line 156) | type streamHandler type handlerPair (line 158) | type handlerPair struct type streamConvertPair (line 163) | type streamConvertPair struct function defaultStreamConvertPair (line 168) | func defaultStreamConvertPair[T any]() streamConvertPair { function defaultStreamMapFilter (line 198) | func defaultStreamMapFilter[T any](key string, isr streamReader) (stream... function defaultStreamConverter (line 225) | func defaultStreamConverter[T any](reader streamReader) streamReader { function defaultValueChecker (line 236) | func defaultValueChecker[T any](v any) (any, error) { function zeroValueFromGeneric (line 245) | func zeroValueFromGeneric[T any]() any { function emptyStreamFromGeneric (line 250) | func emptyStreamFromGeneric[T any]() streamReader { FILE: compose/graph.go constant START (line 37) | START = "start" constant END (line 40) | END = "end" type graphRunType (line 43) | type graphRunType method String (line 53) | func (g graphRunType) String() string { constant runTypePregel (line 47) | runTypePregel graphRunType = "Pregel" constant runTypeDAG (line 49) | runTypeDAG graphRunType = "DAG" type graph (line 57) | type graph struct method component (line 147) | func (g *graph) component() component { method addNode (line 162) | func (g *graph) addNode(key string, node *graphNode, options *graphAdd... method addEdgeWithMappings (line 232) | func (g *graph) addEdgeWithMappings(startNode, endNode string, noContr... method AddEmbeddingNode (line 304) | func (g *graph) AddEmbeddingNode(key string, node embedding.Embedder, ... method AddRetrieverNode (line 315) | func (g *graph) AddRetrieverNode(key string, node retriever.Retriever,... method AddLoaderNode (line 326) | func (g *graph) AddLoaderNode(key string, node document.Loader, opts .... method AddIndexerNode (line 337) | func (g *graph) AddIndexerNode(key string, node indexer.Indexer, opts ... method AddChatModelNode (line 350) | func (g *graph) AddChatModelNode(key string, node model.BaseChatModel,... method AddChatTemplateNode (line 364) | func (g *graph) AddChatTemplateNode(key string, node prompt.ChatTempla... method AddToolsNode (line 375) | func (g *graph) AddToolsNode(key string, node *ToolsNode, opts ...Grap... method AddDocumentTransformerNode (line 386) | func (g *graph) AddDocumentTransformerNode(key string, node document.T... method AddLambdaNode (line 398) | func (g *graph) AddLambdaNode(key string, node *Lambda, opts ...GraphA... method AddGraphNode (line 406) | func (g *graph) AddGraphNode(key string, node AnyGraph, opts ...GraphA... method AddPassthroughNode (line 416) | func (g *graph) AddPassthroughNode(key string, opts ...GraphAddNodeOpt... method AddBranch (line 431) | func (g *graph) AddBranch(startNode string, branch *GraphBranch) (err ... method addBranch (line 435) | func (g *graph) addBranch(startNode string, branch *GraphBranch, skipD... method addToValidateMap (line 517) | func (g *graph) addToValidateMap(startNode, endNode string, mapping []... method updateToValidateMap (line 526) | func (g *graph) updateToValidateMap() error { method getNodeGenericHelper (line 604) | func (g *graph) getNodeGenericHelper(name string) *genericHelper { method getNodeInputType (line 613) | func (g *graph) getNodeInputType(name string) reflect.Type { method getNodeOutputType (line 622) | func (g *graph) getNodeOutputType(name string) reflect.Type { method inputType (line 631) | func (g *graph) inputType() reflect.Type { method outputType (line 635) | func (g *graph) outputType() reflect.Type { method compile (line 639) | func (g *graph) compile(ctx context.Context, opt *graphCompileOptions)... method beforeChildGraphsCompile (line 893) | func (g *graph) beforeChildGraphsCompile(opt *graphCompileOptions) map... method toGraphInfo (line 913) | func (g *graph) toGraphInfo(opt *graphCompileOptions, key2SubGraphs ma... method onCompileFinish (line 976) | func (g *graph) onCompileFinish(ctx context.Context, opt *graphCompile... method getGenericHelper (line 992) | func (g *graph) getGenericHelper() *genericHelper { method GetType (line 996) | func (g *graph) GetType() string { type newGraphConfig (line 91) | type newGraphConfig struct function newGraphFromGeneric (line 100) | func newGraphFromGeneric[I, O any]( function newGraph (line 117) | func newGraph(cfg *newGraphConfig) *graph { function isChain (line 151) | func isChain(cmp component) bool { function isWorkflow (line 155) | func isWorkflow(cmp component) bool { function getSuccessors (line 859) | func getSuccessors(c *chanCall) []string { function uniqueSlice (line 871) | func uniqueSlice(s []string) []string { type subGraphCompileCallback (line 884) | type subGraphCompileCallback struct method OnFinish (line 889) | func (s *subGraphCompileCallback) OnFinish(ctx context.Context, info *... method beforeChildGraphCompile (line 901) | func (gn *graphNode) beforeChildGraphCompile(nodeKey string, key2SubGrap... function transferTask (line 1000) | func transferTask(script [][]string, invertedEdges map[string][]string) ... function validateDAG (line 1042) | func validateDAG(chanSubscribeTo map[string]*chanCall, controlPredecesso... function findLoops (line 1096) | func findLoops(startNodes []string, chanCalls map[string]*chanCall) [][]... function formatLoops (line 1149) | func formatLoops(loops [][]string) string { function NewNodePath (line 1172) | func NewNodePath(nodeKeyPath ...string) *NodePath { type NodePath (line 1177) | type NodePath struct method GetPath (line 1182) | func (p *NodePath) GetPath() []string { FILE: compose/graph_add_node_options.go type graphAddNodeOpts (line 25) | type graphAddNodeOpts struct type GraphAddNodeOpt (line 36) | type GraphAddNodeOpt type nodeOptions (line 38) | type nodeOptions struct function WithNodeName (line 50) | func WithNodeName(n string) GraphAddNodeOpt { function WithNodeKey (line 58) | func WithNodeKey(key string) GraphAddNodeOpt { function WithInputKey (line 67) | func WithInputKey(k string) GraphAddNodeOpt { function WithOutputKey (line 76) | func WithOutputKey(k string) GraphAddNodeOpt { function WithGraphCompileOptions (line 86) | func WithGraphCompileOptions(opts ...GraphCompileOption) GraphAddNodeOpt { function WithStatePreHandler (line 96) | func WithStatePreHandler[I, S any](pre StatePreHandler[I, S]) GraphAddNo... function WithStatePostHandler (line 108) | func WithStatePostHandler[O, S any](post StatePostHandler[O, S]) GraphAd... function WithStreamStatePreHandler (line 122) | func WithStreamStatePreHandler[I, S any](pre StreamStatePreHandler[I, S]... function WithStreamStatePostHandler (line 136) | func WithStreamStatePostHandler[O, S any](post StreamStatePostHandler[O,... type processorOpts (line 144) | type processorOpts struct function getGraphAddNodeOpts (line 151) | func getGraphAddNodeOpts(opts ...GraphAddNodeOpt) *graphAddNodeOpts { FILE: compose/graph_call_options.go type graphCancelChanKey (line 34) | type graphCancelChanKey struct type graphCancelChanVal (line 35) | type graphCancelChanVal struct type graphInterruptOptions (line 39) | type graphInterruptOptions struct type GraphInterruptOption (line 44) | type GraphInterruptOption function WithGraphInterruptTimeout (line 48) | func WithGraphInterruptTimeout(timeout time.Duration) GraphInterruptOpti... function WithGraphInterrupt (line 72) | func WithGraphInterrupt(parent context.Context) (ctx context.Context, in... function getGraphCancel (line 87) | func getGraphCancel(ctx context.Context) *graphCancelChanVal { type Option (line 96) | type Option struct method deepCopy (line 109) | func (o Option) deepCopy() Option { method DesignateNode (line 133) | func (o Option) DesignateNode(nodeKey ...string) Option { method DesignateNodeWithPath (line 147) | func (o Option) DesignateNodeWithPath(path ...*NodePath) Option { function WithEmbeddingOption (line 157) | func WithEmbeddingOption(opts ...embedding.Option) Option { function WithRetrieverOption (line 166) | func WithRetrieverOption(opts ...retriever.Option) Option { function WithLoaderOption (line 175) | func WithLoaderOption(opts ...document.LoaderOption) Option { function WithDocumentTransformerOption (line 180) | func WithDocumentTransformerOption(opts ...document.TransformerOption) O... function WithIndexerOption (line 189) | func WithIndexerOption(opts ...indexer.Option) Option { function WithChatModelOption (line 198) | func WithChatModelOption(opts ...model.Option) Option { function WithChatTemplateOption (line 203) | func WithChatTemplateOption(opts ...prompt.Option) Option { function WithToolsNodeOption (line 208) | func WithToolsNodeOption(opts ...ToolsNodeOption) Option { function WithLambdaOption (line 213) | func WithLambdaOption(opts ...any) Option { function WithCallbacks (line 224) | func WithCallbacks(cbs ...callbacks.Handler) Option { function WithRuntimeMaxSteps (line 234) | func WithRuntimeMaxSteps(maxSteps int) Option { function withComponentOption (line 240) | func withComponentOption[TOption any](opts ...TOption) Option { function convertOption (line 251) | func convertOption[TOption any](opts ...any) ([]TOption, error) { FILE: compose/graph_call_options_test.go function checkOption (line 40) | func checkOption(opts ...model.Option) bool { type testModel (line 66) | type testModel struct method BindTools (line 68) | func (t *testModel) BindTools(tools []*schema.ToolInfo) error { method Generate (line 72) | func (t *testModel) Generate(ctx context.Context, input []*schema.Mess... method Stream (line 79) | func (t *testModel) Stream(ctx context.Context, input []*schema.Messag... function TestCallOption (line 89) | func TestCallOption(t *testing.T) { function TestCallOptionsOneByOne (line 204) | func TestCallOptionsOneByOne(t *testing.T) { function TestCallOptionInSubGraph (line 304) | func TestCallOptionInSubGraph(t *testing.T) { FILE: compose/graph_compile_options.go type graphCompileOptions (line 19) | type graphCompileOptions struct function newGraphCompileOptions (line 38) | func newGraphCompileOptions(opts ...GraphCompileOption) *graphCompileOpt... type GraphCompileOption (line 51) | type GraphCompileOption function WithMaxRunSteps (line 56) | func WithMaxRunSteps(maxSteps int) GraphCompileOption { function WithGraphName (line 65) | func WithGraphName(graphName string) GraphCompileOption { function WithEagerExecution (line 78) | func WithEagerExecution() GraphCompileOption { function WithEagerExecutionDisabled (line 88) | func WithEagerExecutionDisabled() GraphCompileOption { function WithNodeTriggerMode (line 97) | func WithNodeTriggerMode(triggerMode NodeTriggerMode) GraphCompileOption { function WithGraphCompileCallbacks (line 104) | func WithGraphCompileCallbacks(cbs ...GraphCompileCallback) GraphCompile... type FanInMergeConfig (line 115) | type FanInMergeConfig struct function WithFanInMergeConfig (line 121) | func WithFanInMergeConfig(confs map[string]FanInMergeConfig) GraphCompil... function InitGraphCompileCallbacks (line 129) | func InitGraphCompileCallbacks(cbs []GraphCompileCallback) { FILE: compose/graph_manager.go type channel (line 29) | type channel interface type edgeHandlerManager (line 40) | type edgeHandlerManager struct method handle (line 44) | func (e *edgeHandlerManager) handle(from, to string, value any, isStre... type preNodeHandlerManager (line 67) | type preNodeHandlerManager struct method handle (line 71) | func (p *preNodeHandlerManager) handle(nodeKey string, value any, isSt... type preBranchHandlerManager (line 91) | type preBranchHandlerManager struct method handle (line 95) | func (p *preBranchHandlerManager) handle(nodeKey string, idx int, valu... type channelManager (line 115) | type channelManager struct method loadChannels (line 127) | func (c *channelManager) loadChannels(channels map[string]channel) err... method updateValues (line 138) | func (c *channelManager) updateValues(_ context.Context, values map[st... method updateDependencies (line 167) | func (c *channelManager) updateDependencies(_ context.Context, depende... method getFromReadyChannels (line 189) | func (c *channelManager) getFromReadyChannels(_ context.Context) (map[... method updateAndGet (line 207) | func (c *channelManager) updateAndGet(ctx context.Context, values map[... method reportBranch (line 219) | func (c *channelManager) reportBranch(from string, skippedNodes []stri... function appendIfNotExist (line 248) | func appendIfNotExist(s []string, elem string) []string { type task (line 257) | type task struct type taskManager (line 269) | type taskManager struct method execute (line 285) | func (t *taskManager) execute(currentTask *task) { method submit (line 300) | func (t *taskManager) submit(tasks []*task) error { method wait (line 353) | func (t *taskManager) wait() (tasks []*task, canceled bool, canceledTa... method waitOne (line 381) | func (t *taskManager) waitOne() (ta *task, success bool, canceled bool) { method waitAll (line 415) | func (t *taskManager) waitAll() (successTasks []*task, canceledTasks [... method receive (line 434) | func (t *taskManager) receive(recv func() (*task, bool)) (ta *task, cl... function receiveWithDeadline (line 454) | func receiveWithDeadline(recv func() (*task, bool), deadline time.Time) ... function receiveWithListening (line 479) | func receiveWithListening(recv func() (*task, bool), cancel chan *time.D... function runPreHandler (line 524) | func runPreHandler(ta *task, runWrapper runnableCallWrapper) (err error) { function runPostHandler (line 540) | func runPostHandler(ta *task, runWrapper runnableCallWrapper) { FILE: compose/graph_node.go type executorMeta (line 29) | type executorMeta struct type nodeInfo (line 45) | type nodeInfo struct type graphNode (line 60) | type graphNode struct method getGenericHelper (line 72) | func (gn *graphNode) getGenericHelper() *genericHelper { method inputType (line 93) | func (gn *graphNode) inputType() reflect.Type { method outputType (line 107) | func (gn *graphNode) outputType() reflect.Type { method compileIfNeeded (line 121) | func (gn *graphNode) compileIfNeeded(ctx context.Context) (*composable... function parseExecutorInfoFromComponent (line 151) | func parseExecutorInfoFromComponent(c component, executor any) *executor... function getNodeInfo (line 165) | func getNodeInfo(opts ...GraphAddNodeOpt) (*nodeInfo, *graphAddNodeOpts) { FILE: compose/graph_run.go type chanCall (line 31) | type chanCall struct type chanBuilder (line 41) | type chanBuilder type runner (line 43) | type runner struct method invoke (line 86) | func (r *runner) invoke(ctx context.Context, input any, opts ...Option... method transform (line 90) | func (r *runner) transform(ctx context.Context, input streamReader, op... method run (line 109) | func (r *runner) run(ctx context.Context, isStream bool, input any, op... method resolveMaxSteps (line 362) | func (r *runner) resolveMaxSteps(maxSteps int, opts []Option) (int, er... method restoreCheckPointState (line 382) | func (r *runner) restoreCheckPointState( method resolveInterruptCompletedTasks (line 456) | func (r *runner) resolveInterruptCompletedTasks(tempInfo *interruptTem... method handleInterrupt (line 501) | func (r *runner) handleInterrupt( method handleInterruptWithSubGraphAndRerunNodes (line 595) | func (r *runner) handleInterruptWithSubGraphAndRerunNodes( method calculateNextTasks (line 708) | func (r *runner) calculateNextTasks(ctx context.Context, completedTask... method createTasks (line 733) | func (r *runner) createTasks(ctx context.Context, nodeMap map[string]a... method restoreTasks (line 775) | func (r *runner) restoreTasks( method resolveCompletedTasks (line 826) | func (r *runner) resolveCompletedTasks(ctx context.Context, completedT... method calculateBranch (line 864) | func (r *runner) calculateBranch(ctx context.Context, curNodeKey strin... method initTaskManager (line 931) | func (r *runner) initTaskManager(runWrapper runnableCallWrapper, cance... method initChannelManager (line 946) | func (r *runner) initChannelManager(isStream bool) *channelManager { method toComposableRunnable (line 992) | func (r *runner) toComposableRunnable() *composableRunnable { type runnableCallWrapper (line 99) | type runnableCallWrapper function runnableInvoke (line 101) | func runnableInvoke(ctx context.Context, r *composableRunnable, input an... function runnableTransform (line 105) | func runnableTransform(ctx context.Context, r *composableRunnable, input... function newInterruptTempInfo (line 424) | func newInterruptTempInfo() *interruptTempInfo { type interruptTempInfo (line 431) | type interruptTempInfo struct method collectCanceledInfo (line 441) | func (ti *interruptTempInfo) collectCanceledInfo(canceled bool, cancel... function getHitKey (line 489) | func getHitKey(tasks []*task, keys []string) []string { function deepCopyState (line 572) | func deepCopyState(state any) (any, error) { function getCheckPointInfo (line 756) | func getCheckPointInfo(opts ...Option) (checkPointID *string, writeToChe... function copyItem (line 1018) | func copyItem(item any, n int) []any { function printTask (line 1040) | func printTask(ts []*task) string { FILE: compose/graph_test.go function TestSingleGraph (line 37) | func TestSingleGraph(t *testing.T) { type person (line 116) | type person interface type doctor (line 120) | type doctor struct method Say (line 124) | func (d *doctor) Say() string { function TestGraphWithImplementableType (line 128) | func TestGraphWithImplementableType(t *testing.T) { function TestNestedGraph (line 182) | func TestNestedGraph(t *testing.T) { type chatModel (line 323) | type chatModel struct method BindTools (line 327) | func (c *chatModel) BindTools(tools []*schema.ToolInfo) error { method Generate (line 331) | func (c *chatModel) Generate(ctx context.Context, input []*schema.Mess... method Stream (line 335) | func (c *chatModel) Stream(ctx context.Context, input []*schema.Messag... function TestValidate (line 346) | func TestValidate(t *testing.T) { function TestValidateMultiAnyValueBranch (line 640) | func TestValidateMultiAnyValueBranch(t *testing.T) { function TestAnyTypeWithKey (line 802) | func TestAnyTypeWithKey(t *testing.T) { function TestInputKey (line 849) | func TestInputKey(t *testing.T) { function TestTransferTask (line 939) | func TestTransferTask(t *testing.T) { function TestPregelEnd (line 999) | func TestPregelEnd(t *testing.T) { type cb (line 1043) | type cb struct method OnFinish (line 1047) | func (c *cb) OnFinish(ctx context.Context, info *GraphInfo) { function TestGraphCompileCallback (line 1051) | func TestGraphCompileCallback(t *testing.T) { function TestCheckAddEdge (line 1293) | func TestCheckAddEdge(t *testing.T) { function TestStartWithEnd (line 1313) | func TestStartWithEnd(t *testing.T) { function TestToString (line 1352) | func TestToString(t *testing.T) { function TestInputKeyError (line 1360) | func TestInputKeyError(t *testing.T) { function TestContextCancel (line 1397) | func TestContextCancel(t *testing.T) { function TestDAGStart (line 1426) | func TestDAGStart(t *testing.T) { function concatLambda (line 1451) | func concatLambda(s string) *Lambda { function mapLambda (line 1454) | func mapLambda(k, v string) *Lambda { function TestBaseDAGBranch (line 1462) | func TestBaseDAGBranch(t *testing.T) { function TestMultiDAGBranch (line 1489) | func TestMultiDAGBranch(t *testing.T) { function TestCrossDAGBranch (line 1534) | func TestCrossDAGBranch(t *testing.T) { function TestNestedDAGBranch (line 1575) | func TestNestedDAGBranch(t *testing.T) { function TestHandlerTypeValidate (line 1620) | func TestHandlerTypeValidate(t *testing.T) { function TestSetFanInMergeConfig_RealStreamNode (line 1730) | func TestSetFanInMergeConfig_RealStreamNode(t *testing.T) { function TestFindLoops (line 1806) | func TestFindLoops(t *testing.T) { function normalizeLoops (line 1934) | func normalizeLoops(loops [][]string) []string { function TestPrintTasks (line 1969) | func TestPrintTasks(t *testing.T) { function TestSkipBranch (line 1978) | func TestSkipBranch(t *testing.T) { function TestGetStateInGraphCallback (line 2018) | func TestGetStateInGraphCallback(t *testing.T) { type state (line 2036) | type state struct type testGraphStateCallbackHandler (line 2040) | type testGraphStateCallbackHandler struct method OnStart (line 2044) | func (t *testGraphStateCallbackHandler) OnStart(ctx context.Context, i... method OnEnd (line 2052) | func (t *testGraphStateCallbackHandler) OnEnd(ctx context.Context, inf... method OnError (line 2056) | func (t *testGraphStateCallbackHandler) OnError(ctx context.Context, i... method OnStartWithStreamInput (line 2060) | func (t *testGraphStateCallbackHandler) OnStartWithStreamInput(ctx con... method OnEndWithStreamOutput (line 2064) | func (t *testGraphStateCallbackHandler) OnEndWithStreamOutput(ctx cont... function TestUniqueSlice (line 2068) | func TestUniqueSlice(t *testing.T) { FILE: compose/interrupt.go function WithInterruptBeforeNodes (line 31) | func WithInterruptBeforeNodes(nodes []string) GraphCompileOption { function WithInterruptAfterNodes (line 38) | func WithInterruptAfterNodes(nodes []string) GraphCompileOption { function NewInterruptAndRerunErr (line 52) | func NewInterruptAndRerunErr(extra any) error { function deprecatedInterruptAndRerunErr (line 55) | func deprecatedInterruptAndRerunErr(extra any) error { type wrappedInterruptAndRerun (line 62) | type wrappedInterruptAndRerun struct method Error (line 67) | func (w *wrappedInterruptAndRerun) Error() string { method Unwrap (line 71) | func (w *wrappedInterruptAndRerun) Unwrap() error { function WrapInterruptAndRerunIfNeeded (line 78) | func WrapInterruptAndRerunIfNeeded(ctx context.Context, step AddressSegm... function Interrupt (line 110) | func Interrupt(ctx context.Context, info any) error { function StatefulInterrupt (line 130) | func StatefulInterrupt(ctx context.Context, info any, state any) error { function CompositeInterrupt (line 174) | func CompositeInterrupt(ctx context.Context, info any, state any, errs .... function IsInterruptRerunError (line 241) | func IsInterruptRerunError(err error) (any, bool) { function isInterruptRerunError (line 246) | func isInterruptRerunError(err error) (info any, state any, ok bool) { type InterruptInfo (line 258) | type InterruptInfo struct function init (line 268) | func init() { constant AddressSegmentNode (line 277) | AddressSegmentNode AddressSegmentType = "node" constant AddressSegmentTool (line 279) | AddressSegmentTool AddressSegmentType = "tool" constant AddressSegmentRunnable (line 285) | AddressSegmentRunnable AddressSegmentType = "runnable" function ExtractInterruptInfo (line 299) | func ExtractInterruptInfo(err error) (info *InterruptInfo, existed bool) { type interruptError (line 314) | type interruptError struct method Error (line 318) | func (e *interruptError) Error() string { method GetInterruptContexts (line 322) | func (e *interruptError) GetInterruptContexts() []*InterruptCtx { function isSubGraphInterrupt (line 329) | func isSubGraphInterrupt(err error) *subGraphInterruptError { type subGraphInterruptError (line 340) | type subGraphInterruptError struct method Error (line 347) | func (e *subGraphInterruptError) Error() string { function isInterruptError (line 351) | func isInterruptError(err error) bool { FILE: compose/introspect.go type GraphNodeInfo (line 27) | type GraphNodeInfo struct type GraphInfo (line 41) | type GraphInfo struct type GraphCompileCallback (line 55) | type GraphCompileCallback interface FILE: compose/pregel.go function pregelChannelBuilder (line 21) | func pregelChannelBuilder(_ []string, _ []string, _ func() any, _ func()... type pregelChannel (line 25) | type pregelChannel struct method setMergeConfig (line 31) | func (ch *pregelChannel) setMergeConfig(cfg FanInMergeConfig) { method load (line 35) | func (ch *pregelChannel) load(c channel) error { method convertValues (line 44) | func (ch *pregelChannel) convertValues(fn func(map[string]any) error) ... method reportValues (line 48) | func (ch *pregelChannel) reportValues(ins map[string]any) error { method get (line 55) | func (ch *pregelChannel) get(isStream bool, name string, edgeHandler *... method reportSkip (line 90) | func (ch *pregelChannel) reportSkip(_ []string) bool { method reportDependencies (line 93) | func (ch *pregelChannel) reportDependencies(_ []string) { FILE: compose/resume.go function GetInterruptState (line 32) | func GetInterruptState[T any](ctx context.Context) (wasInterrupted bool,... function GetResumeContext (line 77) | func GetResumeContext[T any](ctx context.Context) (isResumeFlow bool, ha... function GetCurrentAddress (line 84) | func GetCurrentAddress(ctx context.Context) Address { function Resume (line 94) | func Resume(ctx context.Context, interruptIDs ...string) context.Context { function ResumeWithData (line 106) | func ResumeWithData(ctx context.Context, interruptID string, data any) c... function BatchResumeWithData (line 119) | func BatchResumeWithData(ctx context.Context, resumeData map[string]any)... function getNodePath (line 123) | func getNodePath(ctx context.Context) (*NodePath, bool) { function AppendAddressSegment (line 150) | func AppendAddressSegment(ctx context.Context, segType AddressSegmentTyp... function appendToolAddressSegment (line 154) | func appendToolAddressSegment(ctx context.Context, segID string, subID s... FILE: compose/resume_test.go type myInterruptState (line 35) | type myInterruptState struct type myResumeData (line 39) | type myResumeData struct type resumeTestState (line 43) | type resumeTestState struct function init (line 48) | func init() { function TestInterruptStateAndResumeForRootGraph (line 52) | func TestInterruptStateAndResumeForRootGraph(t *testing.T) { function TestProcessStateInOnStartDuringResume (line 116) | func TestProcessStateInOnStartDuringResume(t *testing.T) { function TestInterruptStateAndResumeForSubGraph (line 188) | func TestInterruptStateAndResumeForSubGraph(t *testing.T) { function TestInterruptStateAndResumeForToolInNestedSubGraph (line 259) | func TestInterruptStateAndResumeForToolInNestedSubGraph(t *testing.T) { constant PathSegmentTypeProcess (line 352) | PathSegmentTypeProcess AddressSegmentType = "process" type processState (line 355) | type processState struct type batchState (line 360) | type batchState struct type processResumeData (line 365) | type processResumeData struct function init (line 369) | func init() { function TestMultipleInterruptsAndResumes (line 375) | func TestMultipleInterruptsAndResumes(t *testing.T) { type toolsNodeResumeTargetCallback (line 535) | type toolsNodeResumeTargetCallback struct method OnStart (line 540) | func (c *toolsNodeResumeTargetCallback) OnStart(ctx context.Context, i... method OnEnd (line 550) | func (c *toolsNodeResumeTargetCallback) OnEnd(ctx context.Context, _ *... method OnError (line 554) | func (c *toolsNodeResumeTargetCallback) OnError(ctx context.Context, _... method OnStartWithStreamInput (line 558) | func (c *toolsNodeResumeTargetCallback) OnStartWithStreamInput(ctx con... method OnEndWithStreamOutput (line 563) | func (c *toolsNodeResumeTargetCallback) OnEndWithStreamOutput(ctx cont... type mockReentryTool (line 569) | type mockReentryTool struct method Info (line 575) | func (t *mockReentryTool) Info(_ context.Context) (*schema.ToolInfo, e... method InvokableRun (line 583) | func (t *mockReentryTool) InvokableRun(ctx context.Context, _ string, ... function TestReentryForResumedTools (line 628) | func TestReentryForResumedTools(t *testing.T) { type mockInterruptingTool (line 798) | type mockInterruptingTool struct method Info (line 802) | func (t *mockInterruptingTool) Info(_ context.Context) (*schema.ToolIn... method InvokableRun (line 812) | func (t *mockInterruptingTool) InvokableRun(ctx context.Context, argum... function TestGraphInterruptWithinLambda (line 837) | func TestGraphInterruptWithinLambda(t *testing.T) { function TestLegacyInterrupt (line 947) | func TestLegacyInterrupt(t *testing.T) { type wrapperToolForTest (line 1102) | type wrapperToolForTest struct method Info (line 1107) | func (w *wrapperToolForTest) Info(ctx context.Context) (*schema.ToolIn... method InvokableRun (line 1114) | func (w *wrapperToolForTest) InvokableRun(ctx context.Context, input s... function TestToolCompositeInterruptWithNestedGraphInterrupt (line 1128) | func TestToolCompositeInterruptWithNestedGraphInterrupt(t *testing.T) { FILE: compose/runnable.go type Runnable (line 32) | type Runnable interface type invoke (line 39) | type invoke type transform (line 40) | type transform type composableRunnable (line 46) | type composableRunnable struct function runnableLambda (line 65) | func runnableLambda[I, O, TOption any](i Invoke[I, O, TOption], s Stream... type runnablePacker (line 72) | type runnablePacker struct method wrapRunnableCtx (line 79) | func (rp *runnablePacker[I, O, TOption]) wrapRunnableCtx(ctxWrapper func... method toComposableRunnable (line 100) | func (rp *runnablePacker[I, O, TOption]) toComposableRunnable() *composa... method Invoke (line 158) | func (rp *runnablePacker[I, O, TOption]) Invoke(ctx context.Context, method Stream (line 164) | func (rp *runnablePacker[I, O, TOption]) Stream(ctx context.Context, method Collect (line 171) | func (rp *runnablePacker[I, O, TOption]) Collect(ctx context.Context, method Transform (line 177) | func (rp *runnablePacker[I, O, TOption]) Transform(ctx context.Context, function defaultImplConcatStreamReader (line 182) | func defaultImplConcatStreamReader[T any]( function invokeByStream (line 194) | func invokeByStream[I, O, TOption any](s Stream[I, O, TOption]) Invoke[I... function invokeByCollect (line 205) | func invokeByCollect[I, O, TOption any](c Collect[I, O, TOption]) Invoke... function invokeByTransform (line 213) | func invokeByTransform[I, O, TOption any](t Transform[I, O, TOption]) In... function streamByTransform (line 226) | func streamByTransform[I, O, TOption any](t Transform[I, O, TOption]) St... function streamByInvoke (line 234) | func streamByInvoke[I, O, TOption any](i Invoke[I, O, TOption]) Stream[I... function streamByCollect (line 245) | func streamByCollect[I, O, TOption any](c Collect[I, O, TOption]) Stream... function collectByTransform (line 257) | func collectByTransform[I, O, TOption any](t Transform[I, O, TOption]) C... function collectByInvoke (line 268) | func collectByInvoke[I, O, TOption any](i Invoke[I, O, TOption]) Collect... function collectByStream (line 279) | func collectByStream[I, O, TOption any](s Stream[I, O, TOption]) Collect... function transformByStream (line 295) | func transformByStream[I, O, TOption any](s Stream[I, O, TOption]) Trans... function transformByCollect (line 307) | func transformByCollect[I, O, TOption any](c Collect[I, O, TOption]) Tra... function transformByInvoke (line 319) | func transformByInvoke[I, O, TOption any](i Invoke[I, O, TOption]) Trans... function newRunnablePacker (line 336) | func newRunnablePacker[I, O, TOption any](i Invoke[I, O, TOption], s Str... function toGenericRunnable (line 402) | func toGenericRunnable[I, O any](cr *composableRunnable, ctxWrapper func... function inputKeyedComposableRunnable (line 448) | func inputKeyedComposableRunnable(key string, r *composableRunnable) *co... function outputKeyedComposableRunnable (line 483) | func outputKeyedComposableRunnable(key string, r *composableRunnable) *c... function composablePassthrough (line 512) | func composablePassthrough() *composableRunnable { FILE: compose/runnable_test.go function TestRunnableLambda (line 32) | func TestRunnableLambda(t *testing.T) { FILE: compose/state.go type GenLocalState (line 30) | type GenLocalState type stateKey (line 32) | type stateKey struct type internalState (line 34) | type internalState struct type StatePreHandler (line 42) | type StatePreHandler type StatePostHandler (line 46) | type StatePostHandler type StreamStatePreHandler (line 49) | type StreamStatePreHandler type StreamStatePostHandler (line 52) | type StreamStatePostHandler function convertPreHandler (line 54) | func convertPreHandler[I, S any](handler StatePreHandler[I, S]) *composa... function convertPostHandler (line 69) | func convertPostHandler[O, S any](handler StatePostHandler[O, S]) *compo... function streamConvertPreHandler (line 84) | func streamConvertPreHandler[I, S any](handler StreamStatePreHandler[I, ... function streamConvertPostHandler (line 99) | func streamConvertPostHandler[O, S any](handler StreamStatePostHandler[O... function ProcessState (line 165) | func ProcessState[S any](ctx context.Context, handler func(context.Conte... function getState (line 175) | func getState[S any](ctx context.Context) (S, *sync.Mutex, error) { FILE: compose/state_test.go type midStr (line 34) | type midStr function TestStateGraphWithEdge (line 36) | func TestStateGraphWithEdge(t *testing.T) { function TestStateGraphUtils (line 174) | func TestStateGraphUtils(t *testing.T) { function TestStateChain (line 229) | func TestStateChain(t *testing.T) { function TestStreamState (line 269) | func TestStreamState(t *testing.T) { type NestedOuterState (line 338) | type NestedOuterState struct type NestedInnerState (line 343) | type NestedInnerState struct function init (line 347) | func init() { function TestNestedGraphStateAccess (line 352) | func TestNestedGraphStateAccess(t *testing.T) { function TestNestedGraphStateShadowing (line 403) | func TestNestedGraphStateShadowing(t *testing.T) { function TestNestedGraphStateAfterResume (line 448) | func TestNestedGraphStateAfterResume(t *testing.T) { function TestLambdaNestedGraphStateAccess (line 514) | func TestLambdaNestedGraphStateAccess(t *testing.T) { function TestLambdaNestedGraphStateAfterResume (line 580) | func TestLambdaNestedGraphStateAfterResume(t *testing.T) { function TestNestedGraphStateConcurrency (line 686) | func TestNestedGraphStateConcurrency(t *testing.T) { FILE: compose/stream_concat.go function RegisterStreamChunkConcatFunc (line 44) | func RegisterStreamChunkConcatFunc[T any](fn func([]T) (T, error)) { function concatStreamReader (line 50) | func concatStreamReader[T any](sr *schema.StreamReader[T]) (T, error) { FILE: compose/stream_concat_test.go type tStreamConcatItemForTest (line 30) | type tStreamConcatItemForTest struct function concatTStreamForTest (line 34) | func concatTStreamForTest(items []tStreamConcatItemForTest) (tStreamConc... function concatIntForTest (line 43) | func concatIntForTest(items []int) (int, error) { type tConcatErrForTest (line 52) | type tConcatErrForTest struct function concatTStreamError (line 54) | func concatTStreamError(_ []tConcatErrForTest) (tConcatErrForTest, error) { function TestConcatRegistry (line 58) | func TestConcatRegistry(t *testing.T) { function TestStringConcat (line 76) | func TestStringConcat(t *testing.T) { function TestMessageConcat (line 92) | func TestMessageConcat(t *testing.T) { function TestMapConcat (line 121) | func TestMapConcat(t *testing.T) { function TestConcatError (line 181) | func TestConcatError(t *testing.T) { function TestConcatSliceValue (line 204) | func TestConcatSliceValue(t *testing.T) { FILE: compose/stream_reader.go type streamReader (line 26) | type streamReader interface type streamReaderPacker (line 37) | type streamReaderPacker struct method close (line 41) | func (srp streamReaderPacker[T]) close() { method copy (line 45) | func (srp streamReaderPacker[T]) copy(n int) []streamReader { method getType (line 56) | func (srp streamReaderPacker[T]) getType() reflect.Type { method getChunkType (line 60) | func (srp streamReaderPacker[T]) getChunkType() reflect.Type { method toStreamReaders (line 64) | func (srp streamReaderPacker[T]) toStreamReaders(srs []streamReader) []*... method merge (line 79) | func (srp streamReaderPacker[T]) merge(isrs []streamReader) streamReader { method mergeWithNames (line 87) | func (srp streamReaderPacker[T]) mergeWithNames(isrs []streamReader, nam... method withKey (line 95) | func (srp streamReaderPacker[T]) withKey(key string) streamReader { method toAnyStreamReader (line 105) | func (srp streamReaderPacker[T]) toAnyStreamReader() *schema.StreamReade... function packStreamReader (line 111) | func packStreamReader[T any](sr *schema.StreamReader[T]) streamReader { function unpackStreamReader (line 115) | func unpackStreamReader[T any](isr streamReader) (*schema.StreamReader[T... FILE: compose/stream_reader_test.go function TestArrayStreamMerge (line 28) | func TestArrayStreamMerge(t *testing.T) { FILE: compose/tool_node.go type toolsNodeOptions (line 33) | type toolsNodeOptions struct type ToolsNodeOption (line 39) | type ToolsNodeOption function WithToolOption (line 42) | func WithToolOption(opts ...tool.Option) ToolsNodeOption { function WithToolList (line 49) | func WithToolList(tool ...tool.BaseTool) ToolsNodeOption { type ToolsNode (line 63) | type ToolsNode struct method genToolCallTasks (line 556) | func (tn *ToolsNode) genToolCallTasks(ctx context.Context, tuple *tool... method Invoke (line 787) | func (tn *ToolsNode) Invoke(ctx context.Context, input *schema.Message, method Stream (line 889) | func (tn *ToolsNode) Stream(ctx context.Context, input *schema.Message, method GetType (line 1015) | func (tn *ToolsNode) GetType() string { type ToolInput (line 75) | type ToolInput struct type ToolOutput (line 87) | type ToolOutput struct type StreamToolOutput (line 93) | type StreamToolOutput struct type EnhancedInvokableToolOutput (line 100) | type EnhancedInvokableToolOutput struct type EnhancedStreamableToolOutput (line 107) | type EnhancedStreamableToolOutput struct type InvokableToolEndpoint (line 113) | type InvokableToolEndpoint type StreamableToolEndpoint (line 116) | type StreamableToolEndpoint type EnhancedInvokableToolEndpoint (line 118) | type EnhancedInvokableToolEndpoint type EnhancedStreamableToolEndpoint (line 120) | type EnhancedStreamableToolEndpoint type InvokableToolMiddleware (line 124) | type InvokableToolMiddleware type StreamableToolMiddleware (line 128) | type StreamableToolMiddleware type EnhancedInvokableToolMiddleware (line 130) | type EnhancedInvokableToolMiddleware type EnhancedStreamableToolMiddleware (line 132) | type EnhancedStreamableToolMiddleware type ToolMiddleware (line 135) | type ToolMiddleware struct type ToolsNodeConfig (line 154) | type ToolsNodeConfig struct function NewToolNode (line 201) | func NewToolNode(ctx context.Context, conf *ToolsNodeConfig) (*ToolsNode... type ToolsInterruptAndRerunExtra (line 240) | type ToolsInterruptAndRerunExtra struct function init (line 257) | func init() { type toolsInterruptAndRerunState (line 262) | type toolsInterruptAndRerunState struct type toolsTuple (line 269) | type toolsTuple struct function convTools (line 278) | func convTools(ctx context.Context, tools []tool.BaseTool, ms []Invokabl... function wrapToolCall (line 355) | func wrapToolCall(it tool.InvokableTool, middlewares []InvokableToolMidd... function wrapStreamToolCall (line 374) | func wrapStreamToolCall(st tool.StreamableTool, middlewares []Streamable... function wrapEnhancedInvokableToolCall (line 393) | func wrapEnhancedInvokableToolCall(eiTool tool.EnhancedInvokableTool, mi... function wrapEnhancedStreamableToolCall (line 412) | func wrapEnhancedStreamableToolCall(est tool.EnhancedStreamableTool, mid... type invokableToolWithCallback (line 431) | type invokableToolWithCallback struct method Info (line 435) | func (i *invokableToolWithCallback) Info(ctx context.Context) (*schema... method InvokableRun (line 439) | func (i *invokableToolWithCallback) InvokableRun(ctx context.Context, ... type streamableToolWithCallback (line 443) | type streamableToolWithCallback struct method Info (line 447) | func (s *streamableToolWithCallback) Info(ctx context.Context) (*schem... method StreamableRun (line 451) | func (s *streamableToolWithCallback) StreamableRun(ctx context.Context... type enhancedInvokableToolWithCallback (line 455) | type enhancedInvokableToolWithCallback struct method Info (line 459) | func (e *enhancedInvokableToolWithCallback) Info(ctx context.Context) ... method InvokableRun (line 463) | func (e *enhancedInvokableToolWithCallback) InvokableRun(ctx context.C... type enhancedStreamableToolWithCallback (line 467) | type enhancedStreamableToolWithCallback struct method Info (line 471) | func (e *enhancedStreamableToolWithCallback) Info(ctx context.Context)... method StreamableRun (line 475) | func (e *enhancedStreamableToolWithCallback) StreamableRun(ctx context... function streamableToInvokable (line 479) | func streamableToInvokable(e StreamableToolEndpoint) InvokableToolEndpoi... function invokableToStreamable (line 493) | func invokableToStreamable(e InvokableToolEndpoint) StreamableToolEndpoi... function enhancedStreamableToEnhancedInvokable (line 503) | func enhancedStreamableToEnhancedInvokable(e EnhancedStreamableToolEndpo... function enhancedInvokableToEnhancedStreamable (line 517) | func enhancedInvokableToEnhancedStreamable(e EnhancedInvokableToolEndpoi... function invokeEnhancedWithCallbacks (line 527) | func invokeEnhancedWithCallbacks(i func(ctx context.Context, toolArgumen... function streamEnhancedWithCallbacks (line 531) | func streamEnhancedWithCallbacks(s func(ctx context.Context, toolArgumen... type toolCallTask (line 535) | type toolCallTask struct function newUnknownToolTask (line 634) | func newUnknownToolTask(name, arg, callID string, unknownToolHandler fun... function runToolCallTaskByInvoke (line 658) | func runToolCallTaskByInvoke(ctx context.Context, task *toolCallTask, op... function runToolCallTaskByStream (line 700) | func runToolCallTaskByStream(ctx context.Context, task *toolCallTask, op... function sequentialRunToolCall (line 739) | func sequentialRunToolCall(ctx context.Context, function parallelRunToolCall (line 751) | func parallelRunToolCall(ctx context.Context, function getToolsNodeOptions (line 1019) | func getToolsNodeOptions(opts ...ToolsNodeOption) *toolsNodeOptions { type toolCallInfoKey (line 1029) | type toolCallInfoKey struct type toolCallInfo (line 1030) | type toolCallInfo struct function setToolCallInfo (line 1034) | func setToolCallInfo(ctx context.Context, toolCallInfo *toolCallInfo) co... function GetToolCallID (line 1039) | func GetToolCallID(ctx context.Context) string { FILE: compose/tool_node_test.go constant toolNameOfUserCompany (line 38) | toolNameOfUserCompany = "user_company" constant toolIDOfUserCompany (line 39) | toolIDOfUserCompany = "call_TRZhlagwBS0LpWbWPeZOvIXc" constant toolNameOfUserSalary (line 41) | toolNameOfUserSalary = "user_salary" constant toolIDOfUserSalary (line 42) | toolIDOfUserSalary = "call_AqfoRW6fuF98k0o7696k2nzm" function TestToolsNode (line 45) | func TestToolsNode(t *testing.T) { type userCompanyRequest (line 318) | type userCompanyRequest struct type userCompanyResponse (line 323) | type userCompanyResponse struct function queryUserCompany (line 330) | func queryUserCompany(ctx context.Context, req *userCompanyRequest) (res... type userSalaryRequest (line 344) | type userSalaryRequest struct type userSalaryResponse (line 349) | type userSalaryResponse struct function queryUserSalary (line 354) | func queryUserSalary(ctx context.Context, req *userSalaryRequest) (resp ... type mockIntentChatModel (line 379) | type mockIntentChatModel struct method BindTools (line 381) | func (m *mockIntentChatModel) BindTools(tools []*schema.ToolInfo) error { method Generate (line 385) | func (m *mockIntentChatModel) Generate(ctx context.Context, input []*s... method Stream (line 408) | func (m *mockIntentChatModel) Stream(ctx context.Context, input []*sch... function TestToolsNodeOptions (line 443) | func TestToolsNodeOptions(t *testing.T) { function findMsgByToolCallID (line 589) | func findMsgByToolCallID(msgs []*schema.Message, toolCallID string) *sch... type mockToolOptions (line 599) | type mockToolOptions struct function WithAge (line 603) | func WithAge(age int) tool.Option { type mockToolRequest (line 609) | type mockToolRequest struct type mockToolResponse (line 613) | type mockToolResponse struct type mockTool (line 617) | type mockTool struct method Info (line 619) | func (m *mockTool) Info(ctx context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 634) | func (m *mockTool) InvokableRun(ctx context.Context, argumentsInJSON s... method StreamableRun (line 650) | func (m *mockTool) StreamableRun(ctx context.Context, argumentsInJSON ... function TestUnknownTool (line 682) | func TestUnknownTool(t *testing.T) { function TestToolRerun (line 749) | func TestToolRerun(t *testing.T) { function TestToolMiddleware (line 840) | func TestToolMiddleware(t *testing.T) { type myTool1 (line 903) | type myTool1 struct method Info (line 907) | func (m *myTool1) Info(ctx context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 911) | func (m *myTool1) InvokableRun(ctx context.Context, argumentsInJSON st... type myTool2 (line 919) | type myTool2 struct method Info (line 923) | func (m *myTool2) Info(ctx context.Context) (*schema.ToolInfo, error) { method StreamableRun (line 927) | func (m *myTool2) StreamableRun(ctx context.Context, argumentsInJSON s... type myTool3 (line 935) | type myTool3 struct method Info (line 940) | func (m *myTool3) Info(ctx context.Context) (*schema.ToolInfo, error) { method InvokableRun (line 944) | func (m *myTool3) InvokableRun(ctx context.Context, argumentsInJSON st... type myTool4 (line 950) | type myTool4 struct method Info (line 955) | func (m *myTool4) Info(ctx context.Context) (*schema.ToolInfo, error) { method StreamableRun (line 959) | func (m *myTool4) StreamableRun(ctx context.Context, argumentsInJSON s... function newTool (line 965) | func newTool[I, O any](info *schema.ToolInfo, f func(ctx context.Context... type invokableTool (line 972) | type invokableTool struct method Info (line 977) | func (f *invokableTool[I, O]) Info(ctx context.Context) (*schema.ToolInf... method InvokableRun (line 981) | func (f *invokableTool[I, O]) InvokableRun(ctx context.Context, argument... function newStreamableTool (line 994) | func newStreamableTool[I, O any](info *schema.ToolInfo, f func(ctx conte... type streamableTool (line 1001) | type streamableTool struct method Info (line 1006) | func (f *streamableTool[I, O]) Info(ctx context.Context) (*schema.ToolIn... method StreamableRun (line 1009) | func (f *streamableTool[I, O]) StreamableRun(ctx context.Context, argume... type enhancedInvokableTool (line 1024) | type enhancedInvokableTool struct method Info (line 1029) | func (e *enhancedInvokableTool) Info(ctx context.Context) (*schema.Too... method InvokableRun (line 1033) | func (e *enhancedInvokableTool) InvokableRun(ctx context.Context, tool... type enhancedStreamableTool (line 1037) | type enhancedStreamableTool struct method Info (line 1042) | func (e *enhancedStreamableTool) Info(ctx context.Context) (*schema.To... method StreamableRun (line 1046) | func (e *enhancedStreamableTool) StreamableRun(ctx context.Context, to... function TestEnhancedToolNode (line 1050) | func TestEnhancedToolNode(t *testing.T) { function TestEnhancedToolConversion (line 1139) | func TestEnhancedToolConversion(t *testing.T) { function TestEnhancedToolMiddleware (line 1190) | func TestEnhancedToolMiddleware(t *testing.T) { function TestEnhancedToolPriority (line 1272) | func TestEnhancedToolPriority(t *testing.T) { FILE: compose/types.go constant ComponentOfUnknown (line 28) | ComponentOfUnknown component = "Unknown" constant ComponentOfGraph (line 29) | ComponentOfGraph component = "Graph" constant ComponentOfWorkflow (line 30) | ComponentOfWorkflow component = "Workflow" constant ComponentOfChain (line 31) | ComponentOfChain component = "Chain" constant ComponentOfPassthrough (line 32) | ComponentOfPassthrough component = "Passthrough" constant ComponentOfToolsNode (line 33) | ComponentOfToolsNode component = "ToolsNode" constant ComponentOfLambda (line 34) | ComponentOfLambda component = "Lambda" type NodeTriggerMode (line 38) | type NodeTriggerMode constant AnyPredecessor (line 43) | AnyPredecessor NodeTriggerMode = "any_predecessor" constant AllPredecessor (line 45) | AllPredecessor NodeTriggerMode = "all_predecessor" FILE: compose/types_composable.go type AnyGraph (line 25) | type AnyGraph interface FILE: compose/types_lambda.go type Invoke (line 27) | type Invoke type Stream (line 30) | type Stream type Collect (line 34) | type Collect type Transform (line 38) | type Transform type InvokeWOOpt (line 42) | type InvokeWOOpt type StreamWOOpt (line 45) | type StreamWOOpt type CollectWOOpt (line 49) | type CollectWOOpt type TransformWOOpts (line 53) | type TransformWOOpts type Lambda (line 64) | type Lambda struct type lambdaOpts (line 68) | type lambdaOpts struct type LambdaOpt (line 81) | type LambdaOpt function WithLambdaCallbackEnable (line 84) | func WithLambdaCallbackEnable(y bool) LambdaOpt { function WithLambdaType (line 91) | func WithLambdaType(t string) LambdaOpt { type unreachableOption (line 97) | type unreachableOption struct function InvokableLambdaWithOption (line 100) | func InvokableLambdaWithOption[I, O, TOption any](i Invoke[I, O, TOption... function InvokableLambda (line 105) | func InvokableLambda[I, O any](i InvokeWOOpt[I, O], opts ...LambdaOpt) *... function StreamableLambdaWithOption (line 114) | func StreamableLambdaWithOption[I, O, TOption any](s Stream[I, O, TOptio... function StreamableLambda (line 119) | func StreamableLambda[I, O any](s StreamWOOpt[I, O], opts ...LambdaOpt) ... function CollectableLambdaWithOption (line 130) | func CollectableLambdaWithOption[I, O, TOption any](c Collect[I, O, TOpt... function CollectableLambda (line 135) | func CollectableLambda[I, O any](c CollectWOOpt[I, O], opts ...LambdaOpt... function TransformableLambdaWithOption (line 146) | func TransformableLambdaWithOption[I, O, TOption any](t Transform[I, O, ... function TransformableLambda (line 151) | func TransformableLambda[I, O any](t TransformWOOpts[I, O], opts ...Lamb... function AnyLambda (line 174) | func AnyLambda[I, O, TOption any](i Invoke[I, O, TOption], s Stream[I, O... function anyLambda (line 184) | func anyLambda[I, O, TOption any](i Invoke[I, O, TOption], s Stream[I, O... function getLambdaOpt (line 203) | func getLambdaOpt(opts ...LambdaOpt) *lambdaOpts { function ToList (line 224) | func ToList[I any](opts ...LambdaOpt) *Lambda { function MessageParser (line 257) | func MessageParser[T any](p schema.MessageParser[T], opts ...LambdaOpt) ... FILE: compose/types_lambda_test.go function TestLambda (line 28) | func TestLambda(t *testing.T) { type TestStructForParse (line 166) | type TestStructForParse struct function TestMessageParser (line 170) | func TestMessageParser(t *testing.T) { FILE: compose/utils.go type on (line 30) | type on function onStart (line 32) | func onStart[T any](ctx context.Context, input T) (context.Context, T) { function onEnd (line 36) | func onEnd[T any](ctx context.Context, output T) (context.Context, T) { function onStartWithStreamInput (line 40) | func onStartWithStreamInput[T any](ctx context.Context, input *schema.St... function genericOnStartWithStreamInputHandle (line 46) | func genericOnStartWithStreamInputHandle(ctx context.Context, input stre... function genericOnStartWithStreamInput (line 65) | func genericOnStartWithStreamInput(ctx context.Context, input streamRead... function onEndWithStreamOutput (line 69) | func onEndWithStreamOutput[T any](ctx context.Context, output *schema.St... function genericOnEndWithStreamOutputHandle (line 75) | func genericOnEndWithStreamOutputHandle(ctx context.Context, output stre... function genericOnEndWithStreamOutput (line 92) | func genericOnEndWithStreamOutput(ctx context.Context, output streamRead... function onError (line 96) | func onError(ctx context.Context, err error) (context.Context, error) { function runWithCallbacks (line 100) | func runWithCallbacks[I, O, TOption any](r func(context.Context, I, ...T... function invokeWithCallbacks (line 118) | func invokeWithCallbacks[I, O, TOption any](i Invoke[I, O, TOption]) Inv... function onGraphStart (line 122) | func onGraphStart(ctx context.Context, input any, isStream bool) (contex... function onGraphEnd (line 129) | func onGraphEnd(ctx context.Context, output any, isStream bool) (context... function onGraphError (line 136) | func onGraphError(ctx context.Context, err error) (context.Context, erro... function streamWithCallbacks (line 140) | func streamWithCallbacks[I, O, TOption any](s Stream[I, O, TOption]) Str... function collectWithCallbacks (line 144) | func collectWithCallbacks[I, O, TOption any](c Collect[I, O, TOption]) C... function transformWithCallbacks (line 148) | func transformWithCallbacks[I, O, TOption any](t Transform[I, O, TOption... function initGraphCallbacks (line 152) | func initGraphCallbacks(ctx context.Context, info *nodeInfo, meta *execu... function initNodeCallbacks (line 177) | func initNodeCallbacks(ctx context.Context, key string, info *nodeInfo, ... function streamChunkConvertForCBOutput (line 209) | func streamChunkConvertForCBOutput[O any](o O) (callbacks.CallbackOutput... function streamChunkConvertForCBInput (line 213) | func streamChunkConvertForCBInput[I any](i I) (callbacks.CallbackInput, ... function toAnyList (line 217) | func toAnyList[T any](in []T) []any { type assignableType (line 225) | type assignableType constant assignableTypeMustNot (line 228) | assignableTypeMustNot assignableType = iota constant assignableTypeMust (line 229) | assignableTypeMust constant assignableTypeMay (line 230) | assignableTypeMay function checkAssignable (line 233) | func checkAssignable(input, arg reflect.Type) assignableType { function extractOption (line 255) | func extractOption(nodes map[string]*chanCall, opts ...Option) (map[stri... function mapToList (line 318) | func mapToList(m map[string]any) []any { FILE: compose/utils_test.go type good (line 27) | type good interface type good2 (line 31) | type good2 interface type good3 (line 35) | type good3 interface type goodImpl (line 39) | type goodImpl struct method ThisIsGood (line 41) | func (g *goodImpl) ThisIsGood() bool { type goodNotImpl (line 45) | type goodNotImpl struct function TestValidateType (line 47) | func TestValidateType(t *testing.T) { function TestStreamChunkConvert (line 106) | func TestStreamChunkConvert(t *testing.T) { FILE: compose/values_merge.go function RegisterValuesMergeFunc (line 29) | func RegisterValuesMergeFunc[T any](fn func([]T) (T, error)) { type mergeOptions (line 33) | type mergeOptions struct function mergeValues (line 39) | func mergeValues(vs []any, opts *mergeOptions) (any, error) { FILE: compose/values_merge_test.go function Test_mergeValues (line 31) | func Test_mergeValues(t *testing.T) { FILE: compose/workflow.go type WorkflowNode (line 34) | type WorkflowNode struct method AddInput (line 179) | func (n *WorkflowNode) AddInput(fromNodeKey string, inputs ...*FieldMa... method AddInputWithOptions (line 260) | func (n *WorkflowNode) AddInputWithOptions(fromNodeKey string, inputs ... method AddDependency (line 282) | func (n *WorkflowNode) AddDependency(fromNodeKey string) *WorkflowNode { method SetStaticValue (line 293) | func (n *WorkflowNode) SetStaticValue(path FieldPath, value any) *Work... method addDependencyRelation (line 298) | func (n *WorkflowNode) addDependencyRelation(fromNodeKey string, input... method checkAndAddMappedPath (line 351) | func (n *WorkflowNode) checkAndAddMappedPath(paths []FieldPath) error { type Workflow (line 45) | type Workflow struct type dependencyType (line 52) | type dependencyType constant normalDependency (line 55) | normalDependency dependencyType = iota constant noDirectDependency (line 56) | noDirectDependency constant branchDependency (line 57) | branchDependency function NewWorkflow (line 61) | func NewWorkflow[I, O any](opts ...NewGraphOption) *Workflow[I, O] { method Compile (line 82) | func (wf *Workflow[I, O]) Compile(ctx context.Context, opts ...GraphComp... method AddChatModelNode (line 87) | func (wf *Workflow[I, O]) AddChatModelNode(key string, chatModel model.B... method AddChatTemplateNode (line 93) | func (wf *Workflow[I, O]) AddChatTemplateNode(key string, chatTemplate p... method AddToolsNode (line 99) | func (wf *Workflow[I, O]) AddToolsNode(key string, tools *ToolsNode, opt... method AddRetrieverNode (line 105) | func (wf *Workflow[I, O]) AddRetrieverNode(key string, retriever retriev... method AddEmbeddingNode (line 111) | func (wf *Workflow[I, O]) AddEmbeddingNode(key string, embedding embeddi... method AddIndexerNode (line 117) | func (wf *Workflow[I, O]) AddIndexerNode(key string, indexer indexer.Ind... method AddLoaderNode (line 123) | func (wf *Workflow[I, O]) AddLoaderNode(key string, loader document.Load... method AddDocumentTransformerNode (line 129) | func (wf *Workflow[I, O]) AddDocumentTransformerNode(key string, transfo... method AddGraphNode (line 135) | func (wf *Workflow[I, O]) AddGraphNode(key string, graph AnyGraph, opts ... method AddLambdaNode (line 141) | func (wf *Workflow[I, O]) AddLambdaNode(key string, lambda *Lambda, opts... method End (line 147) | func (wf *Workflow[I, O]) End() *WorkflowNode { method AddPassthroughNode (line 155) | func (wf *Workflow[I, O]) AddPassthroughNode(key string, opts ...GraphAd... type workflowAddInputOpts (line 183) | type workflowAddInputOpts struct type WorkflowAddInputOpt (line 195) | type WorkflowAddInputOpt function getAddInputOpts (line 197) | func getAddInputOpts(opts []WorkflowAddInputOpt) *workflowAddInputOpts { function WithNoDirectDependency (line 239) | func WithNoDirectDependency() WorkflowAddInputOpt { type WorkflowBranch (line 390) | type WorkflowBranch struct method AddBranch (line 402) | func (wf *Workflow[I, O]) AddBranch(fromNodeKey string, branch *GraphBra... method AddEnd (line 414) | func (wf *Workflow[I, O]) AddEnd(fromNodeKey string, inputs ...*FieldMap... method compile (line 422) | func (wf *Workflow[I, O]) compile(ctx context.Context, options *graphCom... method initNode (line 496) | func (wf *Workflow[I, O]) initNode(key string) *WorkflowNode { method getGenericHelper (line 513) | func (wf *Workflow[I, O]) getGenericHelper() *genericHelper { method inputType (line 517) | func (wf *Workflow[I, O]) inputType() reflect.Type { method outputType (line 521) | func (wf *Workflow[I, O]) outputType() reflect.Type { method component (line 525) | func (wf *Workflow[I, O]) component() component { FILE: compose/workflow_test.go function TestWorkflow (line 36) | func TestWorkflow(t *testing.T) { function TestWorkflowWithMap (line 245) | func TestWorkflowWithMap(t *testing.T) { function TestWorkflowWithNestedFieldMappings (line 268) | func TestWorkflowWithNestedFieldMappings(t *testing.T) { function TestWorkflowCompile (line 658) | func TestWorkflowCompile(t *testing.T) { function TestFanInToSameDest (line 772) | func TestFanInToSameDest(t *testing.T) { function TestIndirectEdge (line 815) | func TestIndirectEdge(t *testing.T) { function TestDependencyWithNoInput (line 837) | func TestDependencyWithNoInput(t *testing.T) { function TestStaticValue (line 896) | func TestStaticValue(t *testing.T) { function TestBranch (line 1016) | func TestBranch(t *testing.T) { type goodInterface (line 1108) | type goodInterface interface type goodStruct (line 1111) | type goodStruct struct method GOOD (line 1113) | func (g *goodStruct) GOOD() {} function TestMayAssignableFieldMapping (line 1115) | func TestMayAssignableFieldMapping(t *testing.T) { function TestNilValue (line 1131) | func TestNilValue(t *testing.T) { function TestStreamFieldMap (line 1203) | func TestStreamFieldMap(t *testing.T) { function TestRuntimeTypeCheck (line 1222) | func TestRuntimeTypeCheck(t *testing.T) { function TestIntermediateMappingSource (line 1256) | func TestIntermediateMappingSource(t *testing.T) { type goodStruct2 (line 1399) | type goodStruct2 struct method String (line 1404) | func (g *goodStruct2) String() string { function TestSetFanInMergeConfig_RealStreamNode_Workflow (line 1408) | func TestSetFanInMergeConfig_RealStreamNode_Workflow(t *testing.T) { function TestCustomExtractor (line 1467) | func TestCustomExtractor(t *testing.T) { function TestAddDependency (line 1500) | func TestAddDependency(t *testing.T) { function TestIndirectDependencyWithBranch (line 1518) | func TestIndirectDependencyWithBranch(t *testing.T) { FILE: flow/agent/agent_option.go type AgentOption (line 25) | type AgentOption struct function GetComposeOptions (line 31) | func GetComposeOptions(opts ...AgentOption) []compose.Option { function WithComposeOptions (line 41) | func WithComposeOptions(opts ...compose.Option) AgentOption { function WrapImplSpecificOptFn (line 48) | func WrapImplSpecificOptFn[T any](optFn func(*T)) AgentOption { function GetImplSpecificOptions (line 55) | func GetImplSpecificOptions[T any](base *T, opts ...AgentOption) *T { FILE: flow/agent/multiagent/host/callback.go type MultiAgentCallback (line 31) | type MultiAgentCallback interface type HandOffInfo (line 36) | type HandOffInfo struct function ConvertCallbackHandlers (line 42) | func ConvertCallbackHandlers(handlers ...MultiAgentCallback) callbacks.H... function convertCallbacks (line 92) | func convertCallbacks(opts ...agent.AgentOption) callbacks.Handler { FILE: flow/agent/multiagent/host/compose.go constant defaultHostNodeKey (line 30) | defaultHostNodeKey = "host" constant defaultHostPrompt (line 31) | defaultHostPrompt = "decide which tool is best for the ... constant specialistsAnswersCollectorNodeKey (line 32) | specialistsAnswersCollectorNodeKey = "specialist_answers_collect" constant singleIntentAnswerNodeKey (line 33) | singleIntentAnswerNodeKey = "single_intent_answer" constant multiIntentSummarizeNodeKey (line 34) | multiIntentSummarizeNodeKey = "multi_intents_summarize" constant defaultSummarizerPrompt (line 35) | defaultSummarizerPrompt = "summarize the answers from the spe... constant map2ListConverterNodeKey (line 36) | map2ListConverterNodeKey = "map_to_list" type state (line 39) | type state struct function NewMultiAgent (line 49) | func NewMultiAgent(ctx context.Context, config *MultiAgentConfig) (*Mult... function addSpecialistAgent (line 154) | func addSpecialistAgent(specialist *Specialist, g *compose.Graph[[]*sche... function addHostAgent (line 187) | func addHostAgent(model model.BaseChatModel, prompt string, g *compose.G... function addDirectAnswerBranch (line 205) | func addDirectAnswerBranch(convertorName string, g *compose.Graph[[]*sch... function addMultiSpecialistsBranch (line 222) | func addMultiSpecialistsBranch(convertorName string, agentMap map[string... function addSingleIntentAnswerNode (line 246) | func addSingleIntentAnswerNode(g *compose.Graph[[]*schema.Message, *sche... function addAfterSpecialistsBranch (line 263) | func addAfterSpecialistsBranch(g *compose.Graph[[]*schema.Message, *sche... function addMultiIntentsSummarizeNode (line 286) | func addMultiIntentsSummarizeNode(summarizer *Summarizer, g *compose.Gra... FILE: flow/agent/multiagent/host/compose_test.go function TestHostMultiAgent (line 36) | func TestHostMultiAgent(t *testing.T) { type mockAgentCallback (line 672) | type mockAgentCallback struct method OnHandOff (line 677) | func (m *mockAgentCallback) OnHandOff(ctx context.Context, info *HandO... function newMockAgentCallback (line 683) | func newMockAgentCallback(expects int) *mockAgentCallback { FILE: flow/agent/multiagent/host/options.go type options (line 21) | type options struct function WithAgentCallbacks (line 26) | func WithAgentCallbacks(agentCallbacks ...MultiAgentCallback) agent.Agen... FILE: flow/agent/multiagent/host/types.go type MultiAgent (line 35) | type MultiAgent struct method Generate (line 42) | func (ma *MultiAgent) Generate(ctx context.Context, input []*schema.Me... method Stream (line 54) | func (ma *MultiAgent) Stream(ctx context.Context, input []*schema.Mess... method ExportGraph (line 66) | func (ma *MultiAgent) ExportGraph() (compose.AnyGraph, []compose.Graph... method HostNodeKey (line 71) | func (ma *MultiAgent) HostNodeKey() string { type MultiAgentConfig (line 76) | type MultiAgentConfig struct method validate (line 104) | func (conf *MultiAgentConfig) validate() error { type AgentMeta (line 131) | type AgentMeta struct method validate (line 136) | func (am AgentMeta) validate() error { type Host (line 150) | type Host struct type Specialist (line 165) | type Specialist struct type Summarizer (line 177) | type Summarizer struct function firstChunkStreamToolCallChecker (line 182) | func firstChunkStreamToolCallChecker(_ context.Context, sr *schema.Strea... FILE: flow/agent/react/callback.go function BuildAgentCallback (line 31) | func BuildAgentCallback(modelHandler *template.ModelCallbackHandler, too... FILE: flow/agent/react/option.go function WithToolOptions (line 33) | func WithToolOptions(opts ...tool.Option) agent.AgentOption { function WithChatModelOptions (line 38) | func WithChatModelOptions(opts ...model.Option) agent.AgentOption { function WithToolList (line 45) | func WithToolList(tools ...tool.BaseTool) agent.AgentOption { function WithTools (line 92) | func WithTools(ctx context.Context, tools ...tool.BaseTool) ([]agent.Age... type Iterator (line 111) | type Iterator struct method Next (line 117) | func (iter *Iterator[T]) Next() (T, bool, error) { type MessageFuture (line 135) | type MessageFuture interface function WithMessageFuture (line 146) | func WithMessageFuture() (agent.AgentOption, MessageFuture) { type item (line 227) | type item struct type cbHandler (line 232) | type cbHandler struct method GetMessages (line 239) | func (h *cbHandler) GetMessages() *Iterator[*schema.Message] { method GetMessageStreams (line 245) | func (h *cbHandler) GetMessageStreams() *Iterator[*schema.StreamReader... method onChatModelEnd (line 251) | func (h *cbHandler) onChatModelEnd(ctx context.Context, method onChatModelEndWithStreamOutput (line 259) | func (h *cbHandler) onChatModelEndWithStreamOutput(ctx context.Context, method onGraphError (line 272) | func (h *cbHandler) onGraphError(ctx context.Context, method onGraphEnd (line 284) | func (h *cbHandler) onGraphEnd(ctx context.Context, method onGraphEndWithStreamOutput (line 292) | func (h *cbHandler) onGraphEndWithStreamOutput(ctx context.Context, method onGraphStart (line 300) | func (h *cbHandler) onGraphStart(ctx context.Context, method onGraphStartWithStreamInput (line 310) | func (h *cbHandler) onGraphStartWithStreamInput(ctx context.Context, _... method sendMessage (line 321) | func (h *cbHandler) sendMessage(msg *schema.Message) { method sendMessageStream (line 330) | func (h *cbHandler) sendMessageStream(sMsg *schema.StreamReader[*schem... FILE: flow/agent/react/option_test.go function TestWithMessageFuture (line 34) | func TestWithMessageFuture(t *testing.T) { function TestWithToolOptions (line 372) | func TestWithToolOptions(t *testing.T) { function TestWithChatModelOptions (line 381) | func TestWithChatModelOptions(t *testing.T) { type dummyBaseTool (line 389) | type dummyBaseTool struct method Info (line 391) | func (d *dummyBaseTool) Info(ctx context.Context) (*schema.ToolInfo, e... method InvokableRun (line 395) | func (d *dummyBaseTool) InvokableRun(ctx context.Context, _ string, _ ... type assertTool (line 399) | type assertTool struct method Info (line 405) | func (a *assertTool) Info(ctx context.Context) (*schema.ToolInfo, erro... method InvokableRun (line 408) | func (a *assertTool) InvokableRun(ctx context.Context, argumentsInJSON... type toolOpt (line 403) | type toolOpt struct function TestAgentWithAllOptions (line 416) | func TestAgentWithAllOptions(t *testing.T) { type simpleToolForMiddlewareTest (line 482) | type simpleToolForMiddlewareTest struct method Info (line 487) | func (s *simpleToolForMiddlewareTest) Info(_ context.Context) (*schema... method InvokableRun (line 502) | func (s *simpleToolForMiddlewareTest) InvokableRun(_ context.Context, ... method StreamableRun (line 506) | func (s *simpleToolForMiddlewareTest) StreamableRun(_ context.Context,... function TestMessageFuture_ToolResultMiddleware_EmitsFinalResult (line 510) | func TestMessageFuture_ToolResultMiddleware_EmitsFinalResult(t *testing.... FILE: flow/agent/react/react.go type toolResultSender (line 29) | type toolResultSender type enhancedToolResultSender (line 31) | type enhancedToolResultSender type streamToolResultSender (line 32) | type streamToolResultSender type enhancedStreamToolResultSender (line 33) | type enhancedStreamToolResultSender type toolResultSenders (line 34) | type toolResultSenders struct type toolResultSenderCtxKey (line 42) | type toolResultSenderCtxKey struct function setToolResultSendersToCtx (line 44) | func setToolResultSendersToCtx(ctx context.Context, senders *toolResultS... function getToolResultSendersFromCtx (line 48) | func getToolResultSendersFromCtx(ctx context.Context) *toolResultSenders { type state (line 56) | type state struct function init (line 61) | func init() { function newToolResultCollectorMiddleware (line 65) | func newToolResultCollectorMiddleware() compose.ToolMiddleware { constant nodeKeyTools (line 128) | nodeKeyTools = "tools" constant nodeKeyModel (line 129) | nodeKeyModel = "chat" type MessageModifier (line 133) | type MessageModifier type AgentConfig (line 136) | type AgentConfig struct function NewPersonaModifier (line 208) | func NewPersonaModifier(persona string) MessageModifier { function firstChunkStreamToolCallChecker (line 218) | func firstChunkStreamToolCallChecker(_ context.Context, sr *schema.Strea... constant GraphName (line 244) | GraphName = "ReActAgent" constant ModelNodeName (line 245) | ModelNodeName = "ChatModel" constant ToolsNodeName (line 246) | ToolsNodeName = "Tools" function SetReturnDirectly (line 254) | func SetReturnDirectly(ctx context.Context) error { type Agent (line 273) | type Agent struct method Generate (line 480) | func (r *Agent) Generate(ctx context.Context, input []*schema.Message,... method Stream (line 485) | func (r *Agent) Stream(ctx context.Context, input []*schema.Message, o... method ExportGraph (line 490) | func (r *Agent) ExportGraph() (compose.AnyGraph, []compose.GraphAddNod... function NewAgent (line 284) | func NewAgent(ctx context.Context, config *AgentConfig) (_ *Agent, err e... function buildReturnDirectly (line 399) | func buildReturnDirectly(graph *compose.Graph[[]*schema.Message, *schema... function genToolInfos (line 451) | func genToolInfos(ctx context.Context, config compose.ToolsNodeConfig) (... function getReturnDirectlyToolCallID (line 465) | func getReturnDirectlyToolCallID(input *schema.Message, toolReturnDirect... FILE: flow/agent/react/react_test.go function TestReact (line 40) | func TestReact(t *testing.T) { function TestReactWithMessageRewriterAndModifier (line 131) | func TestReactWithMessageRewriterAndModifier(t *testing.T) { function TestReactStream (line 193) | func TestReactStream(t *testing.T) { function TestReactWithModifier (line 399) | func TestReactWithModifier(t *testing.T) { function TestAgentInGraph (line 463) | func TestAgentInGraph(t *testing.T) { function TestWithTools (line 613) | func TestWithTools(t *testing.T) { type errorToolForTest (line 727) | type errorToolForTest struct method Info (line 729) | func (t *errorToolForTest) Info(_ context.Context) (*schema.ToolInfo, ... method InvokableRun (line 733) | func (t *errorToolForTest) InvokableRun(_ context.Context, _ string, _... type fakeStreamToolGreetForTest (line 737) | type fakeStreamToolGreetForTest struct method StreamableRun (line 742) | func (t *fakeStreamToolGreetForTest) StreamableRun(_ context.Context, ... method Info (line 779) | func (t *fakeStreamToolGreetForTest) Info(_ context.Context) (*schema.... type fakeToolGreetForTest (line 759) | type fakeToolGreetForTest struct method Info (line 764) | func (t *fakeToolGreetForTest) Info(_ context.Context) (*schema.ToolIn... method InvokableRun (line 794) | func (t *fakeToolGreetForTest) InvokableRun(_ context.Context, argumen... type fakeToolInput (line 809) | type fakeToolInput struct function randStr (line 813) | func randStr() string { FILE: flow/agent/utils.go function ChatModelWithTools (line 29) | func ChatModelWithTools(cm model.ChatModel, toolCallingModel model.ToolC... FILE: flow/indexer/parent/parent.go type Config (line 31) | type Config struct function NewIndexer (line 89) | func NewIndexer(ctx context.Context, config *Config) (indexer.Indexer, e... type parentIndexer (line 108) | type parentIndexer struct method Store (line 115) | func (p *parentIndexer) Store(ctx context.Context, docs []*schema.Docu... FILE: flow/indexer/parent/parent_test.go type testIndexer (line 32) | type testIndexer struct method Store (line 34) | func (t *testIndexer) Store(ctx context.Context, docs []*schema.Docume... type testTransformer (line 45) | type testTransformer struct method Transform (line 48) | func (t *testTransformer) Transform(ctx context.Context, src []*schema... function TestParentIndexer (line 64) | func TestParentIndexer(t *testing.T) { function deepCopyMap (line 115) | func deepCopyMap(in map[string]interface{}) map[string]interface{} { FILE: flow/retriever/multiquery/multi_query.go constant defaultRewritePrompt (line 36) | defaultRewritePrompt = `You are an helpful assistant. constant defaultQueryVariable (line 41) | defaultQueryVariable = "query" constant defaultMaxQueriesNum (line 42) | defaultMaxQueriesNum = 5 function NewRetriever (line 69) | func NewRetriever(ctx context.Context, config *Config) (retriever.Retrie... type Config (line 130) | type Config struct type multiQueryRetriever (line 153) | type multiQueryRetriever struct method Retrieve (line 161) | func (m *multiQueryRetriever) Retrieve(ctx context.Context, query stri... method GetType (line 198) | func (m *multiQueryRetriever) GetType() string { function ctxWithFusionRunInfo (line 202) | func ctxWithFusionRunInfo(ctx context.Context) context.Context { FILE: flow/retriever/multiquery/multi_query_test.go type mockRetriever (line 30) | type mockRetriever struct method Retrieve (line 33) | func (m *mockRetriever) Retrieve(ctx context.Context, query string, op... type mockModel (line 53) | type mockModel struct method Generate (line 56) | func (m *mockModel) Generate(ctx context.Context, input []*schema.Mess... method Stream (line 62) | func (m *mockModel) Stream(ctx context.Context, input []*schema.Messag... method BindTools (line 66) | func (m *mockModel) BindTools(tools []*schema.ToolInfo) error { function TestMultiQueryRetriever (line 70) | func TestMultiQueryRetriever(t *testing.T) { FILE: flow/retriever/parent/parent.go type Config (line 28) | type Config struct function NewRetriever (line 70) | func NewRetriever(ctx context.Context, config *Config) (retriever.Retrie... type parentRetriever (line 84) | type parentRetriever struct method Retrieve (line 90) | func (p *parentRetriever) Retrieve(ctx context.Context, query string, ... function inList (line 106) | func inList(elem string, list []string) bool { FILE: flow/retriever/parent/parent_test.go type testRetriever (line 28) | type testRetriever struct method Retrieve (line 30) | func (t *testRetriever) Retrieve(ctx context.Context, query string, op... function TestParentRetriever (line 44) | func TestParentRetriever(t *testing.T) { FILE: flow/retriever/router/router.go function NewRetriever (line 77) | func NewRetriever(ctx context.Context, config *Config) (retriever.Retrie... type Config (line 106) | type Config struct type routerRetriever (line 115) | type routerRetriever struct method Retrieve (line 122) | func (e *routerRetriever) Retrieve(ctx context.Context, query string, ... method GetType (line 173) | func (e *routerRetriever) GetType() string { return "Router" } function ctxWithRouterRunInfo (line 175) | func ctxWithRouterRunInfo(ctx context.Context) context.Context { function ctxWithFusionRunInfo (line 186) | func ctxWithFusionRunInfo(ctx context.Context) context.Context { FILE: flow/retriever/router/router_test.go type mockRetriever (line 30) | type mockRetriever struct method Retrieve (line 33) | func (m *mockRetriever) Retrieve(ctx context.Context, query string, op... method GetType (line 53) | func (m *mockRetriever) GetType() string { function TestRouterRetriever (line 57) | func TestRouterRetriever(t *testing.T) { function TestRRF (line 114) | func TestRRF(t *testing.T) { FILE: flow/retriever/utils/utils.go type RetrieveTask (line 34) | type RetrieveTask struct function ConcurrentRetrieveWithCallback (line 44) | func ConcurrentRetrieveWithCallback(ctx context.Context, tasks []*Retrie... function ctxWithRetrieverRunInfo (line 74) | func ctxWithRetrieverRunInfo(ctx context.Context, r retriever.Retriever)... FILE: internal/callbacks/inject.go function InitCallbacks (line 27) | func InitCallbacks(ctx context.Context, info *RunInfo, handlers ...Handl... function EnsureRunInfo (line 36) | func EnsureRunInfo(ctx context.Context, typ string, comp components.Comp... function ReuseHandlers (line 53) | func ReuseHandlers(ctx context.Context, info *RunInfo) context.Context { function AppendHandlers (line 61) | func AppendHandlers(ctx context.Context, info *RunInfo, handlers ...Hand... type Handle (line 72) | type Handle function On (line 74) | func On[T any](ctx context.Context, inOut T, handle Handle[T], timing Ca... function OnStartHandle (line 107) | func OnStartHandle[T any](ctx context.Context, input T, function OnEndHandle (line 117) | func OnEndHandle[T any](ctx context.Context, output T, function BuildOnEndHandleWithCopy (line 127) | func BuildOnEndHandleWithCopy[T any](copyFn func(T, int) []T) Handle[T] { function OnWithStreamHandle (line 143) | func OnWithStreamHandle[S any]( function OnStartWithStreamInputHandle (line 163) | func OnStartWithStreamInputHandle[T any](ctx context.Context, input *sch... function OnEndWithStreamOutputHandle (line 180) | func OnEndWithStreamOutputHandle[T any](ctx context.Context, output *sch... function OnErrorHandle (line 195) | func OnErrorHandle(ctx context.Context, err error, FILE: internal/callbacks/interface.go type RunInfo (line 26) | type RunInfo struct type CallbackInput (line 34) | type CallbackInput type CallbackOutput (line 36) | type CallbackOutput type Handler (line 38) | type Handler interface type CallbackTiming (line 50) | type CallbackTiming type TimingChecker (line 52) | type TimingChecker interface FILE: internal/callbacks/manager.go type CtxManagerKey (line 21) | type CtxManagerKey struct type CtxRunInfoKey (line 22) | type CtxRunInfoKey struct type manager (line 24) | type manager struct method withRunInfo (line 51) | func (m *manager) withRunInfo(runInfo *RunInfo) *manager { function newManager (line 32) | func newManager(runInfo *RunInfo, handlers ...Handler) (*manager, bool) { function ctxWithManager (line 47) | func ctxWithManager(ctx context.Context, manager *manager) context.Conte... function managerFromCtx (line 61) | func managerFromCtx(ctx context.Context) (*manager, bool) { FILE: internal/channel.go type UnboundedChan (line 22) | type UnboundedChan struct function NewUnboundedChan (line 30) | func NewUnboundedChan[T any]() *UnboundedChan[T] { method Send (line 37) | func (ch *UnboundedChan[T]) Send(value T) { method Receive (line 50) | func (ch *UnboundedChan[T]) Receive() (T, bool) { method Close (line 70) | func (ch *UnboundedChan[T]) Close() { FILE: internal/channel_test.go function TestUnboundedChan_Send (line 25) | func TestUnboundedChan_Send(t *testing.T) { function TestUnboundedChan_SendPanic (line 45) | func TestUnboundedChan_SendPanic(t *testing.T) { function TestUnboundedChan_Receive (line 59) | func TestUnboundedChan_Receive(t *testing.T) { function TestUnboundedChan_ReceiveFromClosed (line 84) | func TestUnboundedChan_ReceiveFromClosed(t *testing.T) { function TestUnboundedChan_Close (line 117) | func TestUnboundedChan_Close(t *testing.T) { function TestUnboundedChan_Concurrency (line 130) | func TestUnboundedChan_Concurrency(t *testing.T) { function TestUnboundedChan_BlockingReceive (line 193) | func TestUnboundedChan_BlockingReceive(t *testing.T) { FILE: internal/concat.go function useLast (line 49) | func useLast[T any](s []T) (T, error) { function concatStrings (line 53) | func concatStrings(ss []string) (string, error) { function RegisterStreamChunkConcatFunc (line 71) | func RegisterStreamChunkConcatFunc[T any](fn func([]T) (T, error)) { function GetConcatFunc (line 75) | func GetConcatFunc(typ reflect.Type) func(reflect.Value) (reflect.Value,... function ConcatItems (line 91) | func ConcatItems[T any](items []T) (T, error) { function concatMaps (line 113) | func concatMaps(ms reflect.Value) (reflect.Value, error) { function concatSliceValue (line 174) | func concatSliceValue(val reflect.Value) (reflect.Value, error) { function toSliceValue (line 207) | func toSliceValue(vs []any) (reflect.Value, error) { FILE: internal/concat_test.go function TestConcat (line 25) | func TestConcat(t *testing.T) { FILE: internal/core/address.go type AddressSegmentType (line 29) | type AddressSegmentType type Address (line 32) | type Address method String (line 35) | func (p Address) String() string { method Equals (line 55) | func (p Address) Equals(other Address) bool { type AddressSegment (line 69) | type AddressSegment struct type addrCtxKey (line 79) | type addrCtxKey struct type addrCtx (line 81) | type addrCtx struct type globalResumeInfoKey (line 88) | type globalResumeInfoKey struct type globalResumeInfo (line 90) | type globalResumeInfo struct function GetCurrentAddress (line 102) | func GetCurrentAddress(ctx context.Context) Address { function AppendAddressSegment (line 118) | func AppendAddressSegment(ctx context.Context, segType AddressSegmentTyp... function GetNextResumptionPoints (line 197) | func GetNextResumptionPoints(ctx context.Context) (map[string]bool, erro... function BatchResumeWithData (line 249) | func BatchResumeWithData(ctx context.Context, resumeData map[string]any)... function PopulateInterruptState (line 275) | func PopulateInterruptState(ctx context.Context, id2Addr map[string]Addr... function getResumeInfo (line 323) | func getResumeInfo(ctx context.Context) (*globalResumeInfo, bool) { type InterruptInfo (line 328) | type InterruptInfo struct method String (line 333) | func (i *InterruptInfo) String() string { FILE: internal/core/interrupt.go type CheckPointStore (line 27) | type CheckPointStore interface type InterruptSignal (line 32) | type InterruptSignal struct method Error (line 40) | func (is *InterruptSignal) Error() string { type InterruptState (line 45) | type InterruptState struct method String (line 50) | func (is *InterruptState) String() string { type InterruptConfig (line 58) | type InterruptConfig struct type InterruptOption (line 63) | type InterruptOption function WithLayerPayload (line 67) | func WithLayerPayload(payload any) InterruptOption { function Interrupt (line 73) | func Interrupt(ctx context.Context, info any, state any, subContexts []*... type InterruptCtx (line 113) | type InterruptCtx struct method EqualsWithoutID (line 129) | func (ic *InterruptCtx) EqualsWithoutID(other *InterruptCtx) bool { type InterruptContextsProvider (line 172) | type InterruptContextsProvider interface function FromInterruptContexts (line 187) | func FromInterruptContexts(contexts []*InterruptCtx) *InterruptSignal { function ToInterruptContexts (line 243) | func ToInterruptContexts(is *InterruptSignal, allowedSegmentTypes []Addr... function filterParentChain (line 285) | func filterParentChain(ctx *InterruptCtx, allowedSet map[AddressSegmentT... function encapsulateContextAddresses (line 303) | func encapsulateContextAddresses(ctx *InterruptCtx, allowedSet map[Addre... function SignalToPersistenceMaps (line 316) | func SignalToPersistenceMaps(is *InterruptSignal) (map[string]Address, m... FILE: internal/core/interrupt_test.go constant AddressSegmentAgent (line 28) | AddressSegmentAgent AddressSegmentType = "agent" constant AddressSegmentTool (line 29) | AddressSegmentTool AddressSegmentType = "tool" constant AddressSegmentNode (line 30) | AddressSegmentNode AddressSegmentType = "node" function TestInterruptConversion (line 33) | func TestInterruptConversion(t *testing.T) { function TestSignalToPersistenceMaps (line 122) | func TestSignalToPersistenceMaps(t *testing.T) { function TestGetCurrentAddress (line 317) | func TestGetCurrentAddress(t *testing.T) { function TestGetNextResumptionPoints (line 344) | func TestGetNextResumptionPoints(t *testing.T) { function TestBatchResumeWithData (line 435) | func TestBatchResumeWithData(t *testing.T) { function TestGetInterruptState (line 490) | func TestGetInterruptState(t *testing.T) { function TestGetResumeContext (line 553) | func TestGetResumeContext(t *testing.T) { function TestWithLayerPayload (line 615) | func TestWithLayerPayload(t *testing.T) { function TestInterruptFunction (line 645) | func TestInterruptFunction(t *testing.T) { function TestAddressMethods (line 751) | func TestAddressMethods(t *testing.T) { function TestAppendAddressSegment (line 826) | func TestAppendAddressSegment(t *testing.T) { function TestPopulateInterruptState (line 873) | func TestPopulateInterruptState(t *testing.T) { function TestStringMethods (line 944) | func TestStringMethods(t *testing.T) { function TestInterruptCtxEqualsWithoutID (line 1016) | func TestInterruptCtxEqualsWithoutID(t *testing.T) { FILE: internal/core/resume.go function GetInterruptState (line 28) | func GetInterruptState[T any](ctx context.Context) (wasInterrupted bool,... function GetResumeContext (line 86) | func GetResumeContext[T any](ctx context.Context) (isResumeTarget bool, ... function getRunCtx (line 106) | func getRunCtx(ctx context.Context) (*addrCtx, bool) { FILE: internal/generic/generic.go function NewInstance (line 27) | func NewInstance[T any]() T { function TypeOf (line 56) | func TypeOf[T any]() reflect.Type { function PtrOf (line 64) | func PtrOf[T any](v T) *T { type Pair (line 68) | type Pair struct function Reverse (line 74) | func Reverse[S ~[]E, E any](s S) S { function CopyMap (line 84) | func CopyMap[K comparable, V any](src map[K]V) map[K]V { FILE: internal/generic/generic_test.go function TestNewInstance (line 25) | func TestNewInstance(t *testing.T) { function TestReverse (line 90) | func TestReverse(t *testing.T) { FILE: internal/generic/type_name.go function ParseTypeName (line 40) | func ParseTypeName(val reflect.Value) string { FILE: internal/generic/type_name_test.go function TestParseTypeName (line 26) | func TestParseTypeName(t *testing.T) { function genStruct (line 76) | func genStruct() *struct{} { function genOpenAI (line 80) | func genOpenAI() {} function genAnonymousFunc (line 82) | func genAnonymousFunc() func(n string) { FILE: internal/gmap/gmap.go function Concat (line 34) | func Concat[K comparable, V any](ms ...map[K]V) map[K]V { function Map (line 72) | func Map[K1, K2 comparable, V1, V2 any](m map[K1]V1, f func(K1, V1) (K2,... function Values (line 89) | func Values[K comparable, V any](m map[K]V) []V { function Clone (line 108) | func Clone[K comparable, V any, M ~map[K]V](m M) M { function cloneWithoutNilCheck (line 115) | func cloneWithoutNilCheck[K comparable, V any, M ~map[K]V](m M) M { FILE: internal/gmap/gmap_test.go function TestMerge (line 28) | func TestMerge(t *testing.T) { function TestMap (line 42) | func TestMap(t *testing.T) { function TestValues (line 55) | func TestValues(t *testing.T) { function TestClone (line 65) | func TestClone(t *testing.T) { function ptr (line 87) | func ptr[T any](v T) *T { FILE: internal/gslice/gslice.go function ToMap (line 32) | func ToMap[T, V any, K comparable](s []T, f func(T) (K, V)) map[K]V { FILE: internal/gslice/gslice_test.go function TestToMap (line 25) | func TestToMap(t *testing.T) { FILE: internal/merge.go function RegisterValuesMergeFunc (line 28) | func RegisterValuesMergeFunc[T any](fn func([]T) (T, error)) { function GetMergeFunc (line 32) | func GetMergeFunc(typ reflect.Type) func([]any) (any, error) { function mergeMap (line 62) | func mergeMap(typ reflect.Type, vs []any) (any, error) { FILE: internal/mock/adk/Agent_mock.go type MockAgent (line 37) | type MockAgent struct method EXPECT (line 56) | func (m *MockAgent) EXPECT() *MockAgentMockRecorder { method Description (line 61) | func (m *MockAgent) Description(ctx context.Context) string { method Name (line 75) | func (m *MockAgent) Name(ctx context.Context) string { method Run (line 89) | func (m *MockAgent) Run(ctx context.Context, input *adk.AgentInput, op... type MockAgentMockRecorder (line 44) | type MockAgentMockRecorder struct method Description (line 69) | func (mr *MockAgentMockRecorder) Description(ctx any) *gomock.Call { method Name (line 83) | func (mr *MockAgentMockRecorder) Name(ctx any) *gomock.Call { method Run (line 101) | func (mr *MockAgentMockRecorder) Run(ctx, input any, options ...any) *... function NewMockAgent (line 49) | func NewMockAgent(ctrl *gomock.Controller) *MockAgent { type MockOnSubAgents (line 108) | type MockOnSubAgents struct method EXPECT (line 127) | func (m *MockOnSubAgents) EXPECT() *MockOnSubAgentsMockRecorder { method OnDisallowTransferToParent (line 132) | func (m *MockOnSubAgents) OnDisallowTransferToParent(ctx context.Conte... method OnSetAsSubAgent (line 146) | func (m *MockOnSubAgents) OnSetAsSubAgent(ctx context.Context, parent ... method OnSetSubAgents (line 160) | func (m *MockOnSubAgents) OnSetSubAgents(ctx context.Context, subAgent... type MockOnSubAgentsMockRecorder (line 115) | type MockOnSubAgentsMockRecorder struct method OnDisallowTransferToParent (line 140) | func (mr *MockOnSubAgentsMockRecorder) OnDisallowTransferToParent(ctx ... method OnSetAsSubAgent (line 154) | func (mr *MockOnSubAgentsMockRecorder) OnSetAsSubAgent(ctx, parent any... method OnSetSubAgents (line 168) | func (mr *MockOnSubAgentsMockRecorder) OnSetSubAgents(ctx, subAgents a... function NewMockOnSubAgents (line 120) | func NewMockOnSubAgents(ctrl *gomock.Controller) *MockOnSubAgents { FILE: internal/mock/components/document/document_mock.go type MockLoader (line 33) | type MockLoader struct method EXPECT (line 51) | func (m *MockLoader) EXPECT() *MockLoaderMockRecorder { method Load (line 56) | func (m *MockLoader) Load(ctx context.Context, src document.Source, op... type MockLoaderMockRecorder (line 39) | type MockLoaderMockRecorder struct method Load (line 69) | func (mr *MockLoaderMockRecorder) Load(ctx, src interface{}, opts ...i... function NewMockLoader (line 44) | func NewMockLoader(ctrl *gomock.Controller) *MockLoader { type MockTransformer (line 76) | type MockTransformer struct method EXPECT (line 94) | func (m *MockTransformer) EXPECT() *MockTransformerMockRecorder { method Transform (line 99) | func (m *MockTransformer) Transform(ctx context.Context, src []*schema... type MockTransformerMockRecorder (line 82) | type MockTransformerMockRecorder struct method Transform (line 112) | func (mr *MockTransformerMockRecorder) Transform(ctx, src interface{},... function NewMockTransformer (line 87) | func NewMockTransformer(ctrl *gomock.Controller) *MockTransformer { FILE: internal/mock/components/embedding/Embedding_mock.go type MockEmbedder (line 37) | type MockEmbedder struct method EXPECT (line 55) | func (m *MockEmbedder) EXPECT() *MockEmbedderMockRecorder { method EmbedStrings (line 60) | func (m *MockEmbedder) EmbedStrings(ctx context.Context, texts []strin... type MockEmbedderMockRecorder (line 43) | type MockEmbedderMockRecorder struct method EmbedStrings (line 73) | func (mr *MockEmbedderMockRecorder) EmbedStrings(ctx, texts any, opts ... function NewMockEmbedder (line 48) | func NewMockEmbedder(ctrl *gomock.Controller) *MockEmbedder { FILE: internal/mock/components/indexer/indexer_mock.go type MockIndexer (line 38) | type MockIndexer struct method EXPECT (line 56) | func (m *MockIndexer) EXPECT() *MockIndexerMockRecorder { method Store (line 61) | func (m *MockIndexer) Store(ctx context.Context, docs []*schema.Docume... type MockIndexerMockRecorder (line 44) | type MockIndexerMockRecorder struct method Store (line 74) | func (mr *MockIndexerMockRecorder) Store(ctx, docs any, opts ...any) *... function NewMockIndexer (line 49) | func NewMockIndexer(ctrl *gomock.Controller) *MockIndexer { FILE: internal/mock/components/model/ChatModel_mock.go type MockBaseChatModel (line 38) | type MockBaseChatModel struct method EXPECT (line 57) | func (m *MockBaseChatModel) EXPECT() *MockBaseChatModelMockRecorder { method Generate (line 62) | func (m *MockBaseChatModel) Generate(ctx context.Context, input []*sch... method Stream (line 82) | func (m *MockBaseChatModel) Stream(ctx context.Context, input []*schem... type MockBaseChatModelMockRecorder (line 45) | type MockBaseChatModelMockRecorder struct method Generate (line 75) | func (mr *MockBaseChatModelMockRecorder) Generate(ctx, input any, opts... method Stream (line 95) | func (mr *MockBaseChatModelMockRecorder) Stream(ctx, input any, opts .... function NewMockBaseChatModel (line 50) | func NewMockBaseChatModel(ctrl *gomock.Controller) *MockBaseChatModel { type MockChatModel (line 102) | type MockChatModel struct method EXPECT (line 121) | func (m *MockChatModel) EXPECT() *MockChatModelMockRecorder { method BindTools (line 126) | func (m *MockChatModel) BindTools(tools []*schema.ToolInfo) error { method Generate (line 140) | func (m *MockChatModel) Generate(ctx context.Context, input []*schema.... method Stream (line 160) | func (m *MockChatModel) Stream(ctx context.Context, input []*schema.Me... type MockChatModelMockRecorder (line 109) | type MockChatModelMockRecorder struct method BindTools (line 134) | func (mr *MockChatModelMockRecorder) BindTools(tools any) *gomock.Call { method Generate (line 153) | func (mr *MockChatModelMockRecorder) Generate(ctx, input any, opts ...... method Stream (line 173) | func (mr *MockChatModelMockRecorder) Stream(ctx, input any, opts ...an... function NewMockChatModel (line 114) | func NewMockChatModel(ctrl *gomock.Controller) *MockChatModel { type MockToolCallingChatModel (line 180) | type MockToolCallingChatModel struct method EXPECT (line 199) | func (m *MockToolCallingChatModel) EXPECT() *MockToolCallingChatModelM... method Generate (line 204) | func (m *MockToolCallingChatModel) Generate(ctx context.Context, input... method Stream (line 224) | func (m *MockToolCallingChatModel) Stream(ctx context.Context, input [... method WithTools (line 244) | func (m *MockToolCallingChatModel) WithTools(tools []*schema.ToolInfo)... type MockToolCallingChatModelMockRecorder (line 187) | type MockToolCallingChatModelMockRecorder struct method Generate (line 217) | func (mr *MockToolCallingChatModelMockRecorder) Generate(ctx, input an... method Stream (line 237) | func (mr *MockToolCallingChatModelMockRecorder) Stream(ctx, input any,... method WithTools (line 253) | func (mr *MockToolCallingChatModelMockRecorder) WithTools(tools any) *... function NewMockToolCallingChatModel (line 192) | func NewMockToolCallingChatModel(ctrl *gomock.Controller) *MockToolCalli... FILE: internal/mock/components/retriever/retriever_mock.go type MockRetriever (line 38) | type MockRetriever struct method EXPECT (line 56) | func (m *MockRetriever) EXPECT() *MockRetrieverMockRecorder { method Retrieve (line 61) | func (m *MockRetriever) Retrieve(ctx context.Context, query string, op... type MockRetrieverMockRecorder (line 44) | type MockRetrieverMockRecorder struct method Retrieve (line 74) | func (mr *MockRetrieverMockRecorder) Retrieve(ctx, query any, opts ...... function NewMockRetriever (line 49) | func NewMockRetriever(ctrl *gomock.Controller) *MockRetriever { FILE: internal/safe/panic.go type panicErr (line 23) | type panicErr struct method Error (line 28) | func (p *panicErr) Error() string { function NewPanicErr (line 35) | func NewPanicErr(info any, stack []byte) error { FILE: internal/safe/panic_test.go function TestPanicErr (line 25) | func TestPanicErr(t *testing.T) { FILE: internal/serialization/serialization.go function init (line 30) | func init() { function GenericRegister (line 51) | func GenericRegister[T any](key string) error { type InternalSerializer (line 67) | type InternalSerializer struct method Marshal (line 69) | func (i *InternalSerializer) Marshal(v any) ([]byte, error) { method Unmarshal (line 78) | func (i *InternalSerializer) Unmarshal(data []byte, v any) error { function unmarshal (line 145) | func unmarshal(data []byte, t reflect.Type) (any, error) { type internalStruct (line 154) | type internalStruct struct type valueType (line 168) | type valueType struct function extractType (line 181) | func extractType(t reflect.Type) (*valueType, error) { function restoreType (line 212) | func restoreType(vt *valueType) (reflect.Type, error) { function internalMarshal (line 248) | func internalMarshal(v any, fieldType reflect.Type) (*internalStruct, er... function internalUnmarshal (line 418) | func internalUnmarshal(v *internalStruct, typ reflect.Type) (any, error) { function internalSpecificTypeUnmarshal (line 499) | func internalSpecificTypeUnmarshal(is *internalStruct, typ reflect.Type)... function setSliceElems (line 531) | func setSliceElems(dResult reflect.Value, values []*internalStruct) error { function setMapKVs (line 570) | func setMapKVs(dResult reflect.Value, values map[string]*internalStruct)... function setStructFields (line 592) | func setStructFields(dResult reflect.Value, values map[string]*internalS... function setStructField (line 611) | func setStructField(t reflect.Type, s reflect.Value, fieldName string, v... function resolvePointerNum (line 628) | func resolvePointerNum(pointerNum uint32, t reflect.Type) reflect.Type { function derefPointerNum (line 635) | func derefPointerNum(t reflect.Type) (uint32, reflect.Type) { function createValueFromType (line 646) | func createValueFromType(t reflect.Type) (value reflect.Value, derefValu... function checkMarshaler (line 676) | func checkMarshaler(t reflect.Type) bool { FILE: internal/serialization/serialization_test.go type myInterface (line 27) | type myInterface interface type myStruct (line 30) | type myStruct struct method Method (line 34) | func (m *myStruct) Method() {} type myStruct2 (line 36) | type myStruct2 struct type myStruct3 (line 52) | type myStruct3 struct type myStruct4 (line 56) | type myStruct4 struct method UnmarshalJSON (line 60) | func (m *myStruct4) UnmarshalJSON(bytes []byte) error { method MarshalJSON (line 65) | func (m myStruct4) MarshalJSON() ([]byte, error) { function TestSerialization (line 69) | func TestSerialization(t *testing.T) { type myStruct5 (line 170) | type myStruct5 struct method UnmarshalJSON (line 174) | func (m *myStruct5) UnmarshalJSON(bytes []byte) error { method MarshalJSON (line 179) | func (m myStruct5) MarshalJSON() ([]byte, error) { function TestMarshalStruct (line 183) | func TestMarshalStruct(t *testing.T) { type unmarshalTestStruct (line 206) | type unmarshalTestStruct struct function init (line 211) | func init() { function TestInternalSerializer_Unmarshal (line 220) | func TestInternalSerializer_Unmarshal(t *testing.T) { FILE: schema/document.go constant docMetaDataKeySubIndexes (line 20) | docMetaDataKeySubIndexes = "_sub_indexes" constant docMetaDataKeyScore (line 21) | docMetaDataKeyScore = "_score" constant docMetaDataKeyExtraInfo (line 22) | docMetaDataKeyExtraInfo = "_extra_info" constant docMetaDataKeyDSL (line 23) | docMetaDataKeyDSL = "_dsl" constant docMetaDataKeyDenseVector (line 24) | docMetaDataKeyDenseVector = "_dense_vector" constant docMetaDataKeySparseVector (line 25) | docMetaDataKeySparseVector = "_sparse_vector" type Document (line 40) | type Document struct method String (line 50) | func (d *Document) String() string { method WithSubIndexes (line 58) | func (d *Document) WithSubIndexes(indexes []string) *Document { method SubIndexes (line 70) | func (d *Document) SubIndexes() []string { method WithScore (line 87) | func (d *Document) WithScore(score float64) *Document { method Score (line 99) | func (d *Document) Score() float64 { method WithExtraInfo (line 114) | func (d *Document) WithExtraInfo(extraInfo string) *Document { method ExtraInfo (line 126) | func (d *Document) ExtraInfo() string { method WithDSLInfo (line 143) | func (d *Document) WithDSLInfo(dslInfo map[string]any) *Document { method DSLInfo (line 155) | func (d *Document) DSLInfo() map[string]any { method WithDenseVector (line 170) | func (d *Document) WithDenseVector(vector []float64) *Document { method DenseVector (line 182) | func (d *Document) DenseVector() []float64 { method WithSparseVector (line 197) | func (d *Document) WithSparseVector(sparse map[int]float64) *Document { method SparseVector (line 209) | func (d *Document) SparseVector() map[int]float64 { FILE: schema/document_test.go function TestDocument (line 25) | func TestDocument(t *testing.T) { FILE: schema/message.go function init (line 39) | func init() { function ConcatMessageArray (line 48) | func ConcatMessageArray(mas [][]*Message) ([]*Message, error) { type FormatType (line 87) | type FormatType constant FString (line 91) | FString FormatType = 0 constant GoTemplate (line 93) | GoTemplate FormatType = 1 constant Jinja2 (line 95) | Jinja2 FormatType = 2 type RoleType (line 99) | type RoleType constant Assistant (line 103) | Assistant RoleType = "assistant" constant User (line 105) | User RoleType = "user" constant System (line 107) | System RoleType = "system" constant Tool (line 109) | Tool RoleType = "tool" type FunctionCall (line 114) | type FunctionCall struct type ToolCall (line 123) | type ToolCall struct type ImageURLDetail (line 139) | type ImageURLDetail constant ImageURLDetailHigh (line 143) | ImageURLDetailHigh ImageURLDetail = "high" constant ImageURLDetailLow (line 145) | ImageURLDetailLow ImageURLDetail = "low" constant ImageURLDetailAuto (line 147) | ImageURLDetailAuto ImageURLDetail = "auto" type MessagePartCommon (line 151) | type MessagePartCommon struct type MessageInputImage (line 169) | type MessageInputImage struct type MessageInputAudio (line 178) | type MessageInputAudio struct type MessageInputVideo (line 184) | type MessageInputVideo struct type MessageInputFile (line 190) | type MessageInputFile struct type MessageInputPart (line 199) | type MessageInputPart struct type MessageOutputImage (line 221) | type MessageOutputImage struct type MessageOutputAudio (line 226) | type MessageOutputAudio struct type MessageOutputVideo (line 231) | type MessageOutputVideo struct type MessageOutputReasoning (line 238) | type MessageOutputReasoning struct type MessageStreamingMeta (line 249) | type MessageStreamingMeta struct type MessageOutputPart (line 257) | type MessageOutputPart struct type ToolPartType (line 287) | type ToolPartType constant ToolPartTypeText (line 291) | ToolPartTypeText ToolPartType = "text" constant ToolPartTypeImage (line 294) | ToolPartTypeImage ToolPartType = "image" constant ToolPartTypeAudio (line 297) | ToolPartTypeAudio ToolPartType = "audio" constant ToolPartTypeVideo (line 300) | ToolPartTypeVideo ToolPartType = "video" constant ToolPartTypeFile (line 303) | ToolPartTypeFile ToolPartType = "file" type ToolOutputImage (line 308) | type ToolOutputImage struct type ToolOutputAudio (line 314) | type ToolOutputAudio struct type ToolOutputVideo (line 320) | type ToolOutputVideo struct type ToolOutputFile (line 326) | type ToolOutputFile struct type ToolOutputPart (line 332) | type ToolOutputPart struct type ToolArgument (line 358) | type ToolArgument struct type ToolResult (line 366) | type ToolResult struct method ToMessageInputParts (line 440) | func (tr *ToolResult) ToMessageInputParts() ([]MessageInputPart, error) { function convToolOutputPartToMessageInputPart (line 372) | func convToolOutputPartToMessageInputPart(toolPart ToolOutputPart) (Mess... type ChatMessageImageURL (line 461) | type ChatMessageImageURL struct type ChatMessagePartType (line 477) | type ChatMessagePartType constant ChatMessagePartTypeText (line 481) | ChatMessagePartTypeText ChatMessagePartType = "text" constant ChatMessagePartTypeImageURL (line 483) | ChatMessagePartTypeImageURL ChatMessagePartType = "image_url" constant ChatMessagePartTypeAudioURL (line 485) | ChatMessagePartTypeAudioURL ChatMessagePartType = "audio_url" constant ChatMessagePartTypeVideoURL (line 487) | ChatMessagePartTypeVideoURL ChatMessagePartType = "video_url" constant ChatMessagePartTypeFileURL (line 489) | ChatMessagePartTypeFileURL ChatMessagePartType = "file_url" constant ChatMessagePartTypeReasoning (line 491) | ChatMessagePartTypeReasoning ChatMessagePartType = "reasoning" type ChatMessageAudioURL (line 499) | type ChatMessageAudioURL struct type ChatMessageVideoURL (line 516) | type ChatMessageVideoURL struct type ChatMessageFileURL (line 531) | type ChatMessageFileURL struct type ChatMessagePart (line 546) | type ChatMessagePart struct type LogProbs (line 564) | type LogProbs struct type LogProb (line 570) | type LogProb struct type TopLogProb (line 588) | type TopLogProb struct type ResponseMeta (line 603) | type ResponseMeta struct type Message (line 653) | type Message struct method Format (line 827) | func (m *Message) Format(_ context.Context, vs map[string]any, formatT... method String (line 1011) | func (m *Message) String() string { type TokenUsage (line 690) | type TokenUsage struct type CompletionTokensDetails (line 703) | type CompletionTokensDetails struct type PromptTokenDetails (line 711) | type PromptTokenDetails struct type MessagesTemplate (line 728) | type MessagesTemplate interface type messagesPlaceholder (line 732) | type messagesPlaceholder struct method Format (line 767) | func (p *messagesPlaceholder) Format(_ context.Context, vs map[string]... function MessagesPlaceholder (line 750) | func MessagesPlaceholder(key string, optional bool) MessagesTemplate { function formatContent (line 785) | func formatContent(content string, vs map[string]any, formatType FormatT... function formatMultiContent (line 852) | func formatMultiContent(multiContent []ChatMessagePart, vs map[string]an... function formatUserInputMultiContent (line 906) | func formatUserInputMultiContent(userInputMultiContent []MessageInputPar... function formatInputPart (line 1065) | func formatInputPart(part MessageInputPart) string { function formatMessageInputMedia (line 1082) | func formatMessageInputMedia[T MessageInputImage | MessageInputAudio | M... function formatMessageInputFile (line 1137) | func formatMessageInputFile(file *MessageInputFile) string { function formatOutputPart (line 1163) | func formatOutputPart(part MessageOutputPart) string { function formatMessageOutputMedia (line 1178) | func formatMessageOutputMedia[T MessageOutputImage | MessageOutputAudio ... function formatChatMessagePart (line 1230) | func formatChatMessagePart(part ChatMessagePart) string { function SystemMessage (line 1260) | func SystemMessage(content string) *Message { function AssistantMessage (line 1268) | func AssistantMessage(content string, toolCalls []ToolCall) *Message { function UserMessage (line 1277) | func UserMessage(content string) *Message { type toolMessageOptions (line 1285) | type toolMessageOptions struct type ToolMessageOption (line 1290) | type ToolMessageOption function WithToolName (line 1293) | func WithToolName(name string) ToolMessageOption { function ToolMessage (line 1300) | func ToolMessage(content string, toolCallID string, opts ...ToolMessageO... function ConcatToolResults (line 1333) | func ConcatToolResults(chunks []*ToolResult) (*ToolResult, error) { function concatToolOutputParts (line 1370) | func concatToolOutputParts(parts []ToolOutputPart) ([]ToolOutputPart, er... function groupToolOutputParts (line 1398) | func groupToolOutputParts(parts []ToolOutputPart) [][]ToolOutputPart { function mergeToolTextParts (line 1417) | func mergeToolTextParts(group []ToolOutputPart) (ToolOutputPart, error) { function concatToolCalls (line 1441) | func concatToolCalls(chunks []ToolCall) ([]ToolCall, error) { function concatAssistantMultiContent (line 1525) | func concatAssistantMultiContent(parts []MessageOutputPart) ([]MessageOu... function groupOutputParts (line 1544) | func groupOutputParts(parts []MessageOutputPart) [][]MessageOutputPart { function canMergeOutputParts (line 1565) | func canMergeOutputParts(current, next MessageOutputPart) bool { function isMergeableOutputPartType (line 1581) | func isMergeableOutputPartType(part MessageOutputPart) bool { function mergeOutputPartGroup (line 1592) | func mergeOutputPartGroup(group []MessageOutputPart) (MessageOutputPart,... function mergeTextParts (line 1616) | func mergeTextParts(group []MessageOutputPart) (MessageOutputPart, error) { function mergeReasoningParts (line 1641) | func mergeReasoningParts(group []MessageOutputPart) (MessageOutputPart, ... function mergeAudioParts (line 1675) | func mergeAudioParts(group []MessageOutputPart) (MessageOutputPart, erro... function isBase64MessageOutputAudioPart (line 1729) | func isBase64MessageOutputAudioPart(part MessageOutputPart) bool { function concatUserMultiContent (line 1736) | func concatUserMultiContent(parts []MessageInputPart) ([]MessageInputPar... function concatExtra (line 1776) | func concatExtra(extraList []map[string]any) (map[string]any, error) { function ConcatMessages (line 1801) | func ConcatMessages(msgs []*Message) (*Message, error) { function ConcatMessageStream (line 1999) | func ConcatMessageStream(s *StreamReader[*Message]) (*Message, error) { constant jinjaInclude (line 2025) | jinjaInclude = "include" constant jinjaExtends (line 2026) | jinjaExtends = "extends" constant jinjaImport (line 2027) | jinjaImport = "import" constant jinjaFrom (line 2028) | jinjaFrom = "from" function getJinjaEnv (line 2031) | func getJinjaEnv() (*gonja.Environment, error) { FILE: schema/message_parser.go type MessageParser (line 28) | type MessageParser interface type MessageParseFrom (line 33) | type MessageParseFrom constant MessageParseFromContent (line 37) | MessageParseFromContent MessageParseFrom = "content" constant MessageParseFromToolCall (line 38) | MessageParseFromToolCall MessageParseFrom = "tool_call" type MessageJSONParseConfig (line 42) | type MessageJSONParseConfig struct function NewMessageJSONParser (line 52) | func NewMessageJSONParser[T any](config *MessageJSONParseConfig) Message... type MessageJSONParser (line 84) | type MessageJSONParser struct method Parse (line 90) | func (p *MessageJSONParser[T]) Parse(ctx context.Context, m *Message) (p... method extractData (line 105) | func (p *MessageJSONParser[T]) extractData(data string) (string, error) { method parse (line 130) | func (p *MessageJSONParser[T]) parse(data string) (parsed T, err error) { FILE: schema/message_parser_test.go type TestStructForParse (line 26) | type TestStructForParse struct function TestMessageJSONParser (line 34) | func TestMessageJSONParser(t *testing.T) { FILE: schema/message_test.go function TestMessageTemplate (line 30) | func TestMessageTemplate(t *testing.T) { function TestConcatMessage (line 60) | func TestConcatMessage(t *testing.T) { function TestConcatToolCalls (line 949) | func TestConcatToolCalls(t *testing.T) { function TestFormatMultiContent (line 1257) | func TestFormatMultiContent(t *testing.T) { function TestFormatUserInputMultiContent (line 1310) | func TestFormatUserInputMultiContent(t *testing.T) { function TestConcatToolResults (line 1368) | func TestConcatToolResults(t *testing.T) { function TestMessageString (line 1856) | func TestMessageString(t *testing.T) { function TestConvToolOutputPartToMessageInputPart (line 2068) | func TestConvToolOutputPartToMessageInputPart(t *testing.T) { FILE: schema/select.go constant maxSelectNum (line 19) | maxSelectNum = 5 function receiveN (line 21) | func receiveN[T any](chosenList []int, ss []*stream[T]) (int, *streamIte... FILE: schema/serialization.go function init (line 27) | func init() { function RegisterName (line 81) | func RegisterName[T any](name string) { function getTypeName (line 90) | func getTypeName(rt reflect.Type) string { function Register (line 135) | func Register[T any]() { FILE: schema/serialization_test.go type testStruct (line 32) | type testStruct struct function TestGetTypeName (line 34) | func TestGetTypeName(t *testing.T) { function TestRegister (line 104) | func TestRegister(t *testing.T) { function TestRegisterStructWithUUIDField (line 170) | func TestRegisterStructWithUUIDField(t *testing.T) { FILE: schema/stream.go type SourceEOF (line 56) | type SourceEOF struct method Error (line 60) | func (e *SourceEOF) Error() string { function GetSourceName (line 67) | func GetSourceName(err error) (string, bool) { function Pipe (line 95) | func Pipe[T any](cap int) (*StreamReader[T], *StreamWriter[T]) { type StreamWriter (line 111) | type StreamWriter struct method Send (line 122) | func (sw *StreamWriter[T]) Send(chunk T, err error) (closed bool) { method Close (line 135) | func (sw *StreamWriter[T]) Close() { type StreamReader (line 164) | type StreamReader struct method Recv (line 188) | func (sr *StreamReader[T]) Recv() (T, error) { method Close (line 218) | func (sr *StreamReader[T]) Close() { method Copy (line 250) | func (sr *StreamReader[T]) Copy(n int) []*StreamReader[T] { method SetAutomaticClose (line 268) | func (sr *StreamReader[T]) SetAutomaticClose() { method recvAny (line 301) | func (sr *StreamReader[T]) recvAny() (any, error) { method copyAny (line 305) | func (sr *StreamReader[T]) copyAny(n int) []iStreamReader { function arrToStream (line 317) | func arrToStream[T any](arr []T) *stream[T] { method toStream (line 327) | func (sr *StreamReader[T]) toStream() *stream[T] { type readerType (line 344) | type readerType constant readerTypeStream (line 347) | readerTypeStream readerType = iota constant readerTypeArray (line 348) | readerTypeArray constant readerTypeMultiStream (line 349) | readerTypeMultiStream constant readerTypeWithConvert (line 350) | readerTypeWithConvert constant readerTypeChild (line 351) | readerTypeChild type iStreamReader (line 354) | type iStreamReader interface type stream (line 364) | type stream struct type streamItem (line 373) | type streamItem struct function newStream (line 378) | func newStream[T any](cap int) *stream[T] { method asReader (line 385) | func (s *stream[T]) asReader() *StreamReader[T] { method recv (line 389) | func (s *stream[T]) recv() (chunk T, err error) { method send (line 399) | func (s *stream[T]) send(chunk T, err error) (closed bool) { method closeSend (line 417) | func (s *stream[T]) closeSend() { method closeRecv (line 421) | func (s *stream[T]) closeRecv() { function StreamReaderFromArray (line 443) | func StreamReaderFromArray[T any](arr []T) *StreamReader[T] { type arrayReader (line 447) | type arrayReader struct method recv (line 452) | func (ar *arrayReader[T]) recv() (T, error) { method copy (line 464) | func (ar *arrayReader[T]) copy(n int) []*arrayReader[T] { method toStream (line 477) | func (ar *arrayReader[T]) toStream() *stream[T] { type multiArrayReader (line 481) | type multiArrayReader struct type multiStreamReader (line 486) | type multiStreamReader struct function newMultiStreamReader (line 496) | func newMultiStreamReader[T any](sts []*stream[T]) *multiStreamReader[T] { method recv (line 520) | func (msr *multiStreamReader[T]) recv() (T, error) { method nonClosedStreams (line 558) | func (msr *multiStreamReader[T]) nonClosedStreams() []*stream[T] { method close (line 568) | func (msr *multiStreamReader[T]) close() { method toStream (line 574) | func (msr *multiStreamReader[T]) toStream() *stream[T] { type streamReaderWithConvert (line 578) | type streamReaderWithConvert struct function newStreamReaderWithConvert (line 586) | func newStreamReaderWithConvert[T any](origin iStreamReader, convert fun... type convertOptions (line 604) | type convertOptions struct type ConvertOption (line 608) | type ConvertOption function WithErrWrapper (line 613) | func WithErrWrapper(wrapper func(error) error) ConvertOption { function StreamReaderWithConvert (line 640) | func StreamReaderWithConvert[T, D any](sr *StreamReader[T], convert func... method recv (line 648) | func (srw *streamReaderWithConvert[T]) recv() (T, error) { method close (line 678) | func (srw *streamReaderWithConvert[T]) close() { type reader (line 682) | type reader interface function toStream (line 687) | func toStream[T any, Reader reader[T]](r Reader) *stream[T] { method toStream (line 720) | func (srw *streamReaderWithConvert[T]) toStream() *stream[T] { type cpStreamElement (line 724) | type cpStreamElement struct function copyStreamReaders (line 732) | func copyStreamReaders[T any](sr *StreamReader[T], n int) []*StreamReade... type parentStreamReader (line 763) | type parentStreamReader struct method peek (line 777) | func (p *parentStreamReader[T]) peek(idx int) (t T, err error) { method close (line 808) | func (p *parentStreamReader[T]) close(idx int) { type childStreamReader (line 823) | type childStreamReader struct method recv (line 828) | func (csr *childStreamReader[T]) recv() (T, error) { method toStream (line 832) | func (csr *childStreamReader[T]) toStream() *stream[T] { method close (line 836) | func (csr *childStreamReader[T]) close() { function MergeStreamReaders (line 852) | func MergeStreamReaders[T any](srs []*StreamReader[T]) *StreamReader[T] { function MergeNamedStreamReaders (line 930) | func MergeNamedStreamReaders[T any](srs map[string]*StreamReader[T]) *St... function InternalMergeNamedStreamReaders (line 950) | func InternalMergeNamedStreamReaders[T any](srs []*StreamReader[T], name... FILE: schema/stream_copy_external_test.go function TestStream1 (line 32) | func TestStream1(t *testing.T) { type info (line 98) | type info struct function TestCopyDelay (line 105) | func TestCopyDelay(t *testing.T) { FILE: schema/stream_test.go function TestStream (line 31) | func TestStream(t *testing.T) { function TestStreamCopy (line 65) | func TestStreamCopy(t *testing.T) { function TestNewStreamCopy (line 122) | func TestNewStreamCopy(t *testing.T) { function checkStream (line 373) | func checkStream(s *StreamReader[int]) error { function testStreamN (line 392) | func testStreamN(cap, n int) error { function TestCopy (line 420) | func TestCopy(t *testing.T) { function TestCopy5 (line 431) | func TestCopy5(t *testing.T) { function TestStreamReaderWithConvert (line 468) | func TestStreamReaderWithConvert(t *testing.T) { function TestArrayStreamCombined (line 507) | func TestArrayStreamCombined(t *testing.T) { function TestMultiStream (line 549) | func TestMultiStream(t *testing.T) { function TestMergeNamedStreamReaders (line 582) | func TestMergeNamedStreamReaders(t *testing.T) { FILE: schema/tool.go type DataType (line 28) | type DataType constant Object (line 32) | Object DataType = "object" constant Number (line 33) | Number DataType = "number" constant Integer (line 34) | Integer DataType = "integer" constant String (line 35) | String DataType = "string" constant Array (line 36) | Array DataType = "array" constant Null (line 37) | Null DataType = "null" constant Boolean (line 38) | Boolean DataType = "boolean" type ToolChoice (line 43) | type ToolChoice constant ToolChoiceForbidden (line 49) | ToolChoiceForbidden ToolChoice = "forbidden" constant ToolChoiceAllowed (line 54) | ToolChoiceAllowed ToolChoice = "allowed" constant ToolChoiceForced (line 59) | ToolChoiceForced ToolChoice = "forced" type ToolInfo (line 68) | type ToolInfo struct type ParameterInfo (line 87) | type ParameterInfo struct type ParamsOneOf (line 117) | type ParamsOneOf struct method ToJSONSchema (line 139) | func (p *ParamsOneOf) ToJSONSchema() (*jsonschema.Schema, error) { function NewParamsOneOfByParams (line 125) | func NewParamsOneOfByParams(params map[string]*ParameterInfo) *ParamsOne... function NewParamsOneOfByJSONSchema (line 132) | func NewParamsOneOfByJSONSchema(s *jsonschema.Schema) *ParamsOneOf { function paramInfoToJSONSchema (line 171) | func paramInfoToJSONSchema(paramInfo *ParameterInfo) *jsonschema.Schema { FILE: schema/tool_test.go function TestParamsOneOfToJSONSchema (line 28) | func TestParamsOneOfToJSONSchema(t *testing.T) { FILE: utils/callbacks/template.go function NewHandlerHelper (line 41) | func NewHandlerHelper() *HandlerHelper { type HandlerHelper (line 57) | type HandlerHelper struct method Handler (line 72) | func (c *HandlerHelper) Handler() callbacks.Handler { method Prompt (line 77) | func (c *HandlerHelper) Prompt(handler *PromptCallbackHandler) *Handle... method ChatModel (line 83) | func (c *HandlerHelper) ChatModel(handler *ModelCallbackHandler) *Hand... method Embedding (line 89) | func (c *HandlerHelper) Embedding(handler *EmbeddingCallbackHandler) *... method Indexer (line 95) | func (c *HandlerHelper) Indexer(handler *IndexerCallbackHandler) *Hand... method Retriever (line 101) | func (c *HandlerHelper) Retriever(handler *RetrieverCallbackHandler) *... method Loader (line 107) | func (c *HandlerHelper) Loader(handler *LoaderCallbackHandler) *Handle... method Transformer (line 113) | func (c *HandlerHelper) Transformer(handler *TransformerCallbackHandle... method Tool (line 119) | func (c *HandlerHelper) Tool(handler *ToolCallbackHandler) *HandlerHel... method ToolsNode (line 125) | func (c *HandlerHelper) ToolsNode(handler *ToolsNodeCallbackHandlers) ... method Agent (line 131) | func (c *HandlerHelper) Agent(handler *AgentCallbackHandler) *HandlerH... method Graph (line 137) | func (c *HandlerHelper) Graph(handler callbacks.Handler) *HandlerHelper { method Chain (line 143) | func (c *HandlerHelper) Chain(handler callbacks.Handler) *HandlerHelper { method Lambda (line 149) | func (c *HandlerHelper) Lambda(handler callbacks.Handler) *HandlerHelp... type handlerTemplate (line 154) | type handlerTemplate struct method OnStart (line 160) | func (c *handlerTemplate) OnStart(ctx context.Context, info *callbacks... method OnEnd (line 193) | func (c *handlerTemplate) OnEnd(ctx context.Context, info *callbacks.R... method OnError (line 226) | func (c *handlerTemplate) OnError(ctx context.Context, info *callbacks... method OnStartWithStreamInput (line 257) | func (c *handlerTemplate) OnStartWithStreamInput(ctx context.Context, ... method OnEndWithStreamOutput (line 271) | func (c *handlerTemplate) OnEndWithStreamOutput(ctx context.Context, i... method Needed (line 298) | func (c *handlerTemplate) Needed(ctx context.Context, info *callbacks.... type LoaderCallbackHandler (line 362) | type LoaderCallbackHandler struct method Needed (line 369) | func (ch *LoaderCallbackHandler) Needed(ctx context.Context, runInfo *... type TransformerCallbackHandler (line 383) | type TransformerCallbackHandler struct method Needed (line 390) | func (ch *TransformerCallbackHandler) Needed(ctx context.Context, runI... type EmbeddingCallbackHandler (line 404) | type EmbeddingCallbackHandler struct method Needed (line 411) | func (ch *EmbeddingCallbackHandler) Needed(ctx context.Context, runInf... type IndexerCallbackHandler (line 425) | type IndexerCallbackHandler struct method Needed (line 432) | func (ch *IndexerCallbackHandler) Needed(ctx context.Context, runInfo ... type ModelCallbackHandler (line 446) | type ModelCallbackHandler struct method Needed (line 454) | func (ch *ModelCallbackHandler) Needed(ctx context.Context, runInfo *c... type PromptCallbackHandler (line 470) | type PromptCallbackHandler struct method Needed (line 480) | func (ch *PromptCallbackHandler) Needed(ctx context.Context, runInfo *... type RetrieverCallbackHandler (line 494) | type RetrieverCallbackHandler struct method Needed (line 504) | func (ch *RetrieverCallbackHandler) Needed(ctx context.Context, runInf... type ToolCallbackHandler (line 518) | type ToolCallbackHandler struct method Needed (line 526) | func (ch *ToolCallbackHandler) Needed(ctx context.Context, runInfo *ca... type ToolsNodeCallbackHandlers (line 543) | type ToolsNodeCallbackHandlers struct method Needed (line 551) | func (ch *ToolsNodeCallbackHandlers) Needed(ctx context.Context, runIn... function convToolsNodeCallbackInput (line 566) | func convToolsNodeCallbackInput(src callbacks.CallbackInput) *schema.Mes... function convToolsNodeCallbackOutput (line 575) | func convToolsNodeCallbackOutput(src callbacks.CallbackInput) []*schema.... type AgentCallbackHandler (line 584) | type AgentCallbackHandler struct method Needed (line 589) | func (ch *AgentCallbackHandler) Needed(ctx context.Context, info *call... FILE: utils/callbacks/template_test.go function TestNewComponentTemplate (line 40) | func TestNewComponentTemplate(t *testing.T) { function TestAgentCallbackHandler (line 293) | func TestAgentCallbackHandler(t *testing.T) { function TestHandlerHelperWithAgent (line 333) | func TestHandlerHelperWithAgent(t *testing.T) { function TestHandlerTemplateWithAgentComponent (line 360) | func TestHandlerTemplateWithAgentComponent(t *testing.T) {