MCPcopy Create free account

hub / github.com/chaojixinren/HelloAgents-go / functions

Functions1,096 in github.com/chaojixinren/HelloAgents-go

↓ 116 callersFunctionError
(text string, code string, details map[string]any)
hello_agents/tools/response.go:159
↓ 53 callersFunctionNewMessage
(content string, role MessageRole, metadata map[string]any)
hello_agents/core/message.go:26
↓ 51 callersFunctionNewAgentEvent
(eventType EventType, agentName string, data map[string]any)
hello_agents/core/lifecycle.go:36
↓ 47 callersFunctionSuccess
(text string, data map[string]any, extras ...map[string]any)
hello_agents/tools/response.go:117
↓ 42 callersMethodLogEvent
(event string, payload map[string]any, step *int)
hello_agents/observability/trace_logger.go:84
↓ 41 callersMethodRegisterTool
(tool Tool, autoExpandArgs ...bool)
hello_agents/tools/registry.go:49
↓ 39 callersFunctionNewToolRegistry
(circuitBreaker *CircuitBreaker)
hello_agents/tools/registry.go:35
↓ 38 callersMethodAddMessage
(message Message)
hello_agents/core/agent.go:31
↓ 34 callersFunctionDefaultConfig
()
hello_agents/core/config.go:104
↓ 33 callersMethodRun
(parameters map[string]any)
hello_agents/tools/base.go:35
↓ 28 callersMethodError
()
hello_agents/core/exceptions.go:10
↓ 28 callersFunctionNewLLMFromAdapter
NewLLMFromAdapter creates a HelloAgentsLLM with a custom adapter for testing.
hello_agents/core/llm.go:198
↓ 26 callersMethodparse
()
hello_agents/tools/builtin/calculator.go:240
↓ 24 callersMethodGetHistory
()
hello_agents/core/agent.go:33
↓ 23 callersMethodGetParameters
()
hello_agents/tools/base.go:34
↓ 22 callersFunctionNewHelloAgentsException
(msg string)
hello_agents/core/exceptions.go:17
↓ 21 callersFunctionNewBaseTool
(name, description string, expandable bool)
hello_agents/tools/base.go:57
↓ 20 callersFunctionskipIfNoLLM
(t *testing.T)
tests/integration_llm_test.go:16
↓ 20 callersFunctiontestLLM
(t *testing.T)
tests/integration_llm_test.go:23
↓ 19 callersFunctioncn
(...inputs: ClassValue[])
skills/frontend-design/examples/typescript/utils.ts:21
↓ 18 callersMethodAppend
(message T)
hello_agents/context/history.go:27
↓ 18 callersFunctionNewBaseAgent
(name string, llm *HelloAgentsLLM, systemPrompt string, config *Config, toolRegistry *tools.ToolRegistry, agen
hello_agents/core/agent.go:78
↓ 18 callersMethodemitHook
(eventType core.EventType, hook core.LifecycleHook, data map[string]any)
hello_agents/agents/react_agent.go:821
↓ 17 callersFunctionasMap
(v any)
hello_agents/core/llm_adapters.go:80
↓ 16 callersFunctionNewSimpleAgent
(name string, llm *core.HelloAgentsLLM, systemPrompt string, config *core.Config, toolRegistry *tools.ToolRegi
hello_agents/agents/simple_agent.go:19
↓ 16 callersFunctiontestConfig
()
tests/integration_llm_test.go:33
↓ 15 callersMethodClose
(toolName string)
hello_agents/tools/circuit_breaker.go:86
↓ 15 callersMethodmatch
(tokenType calcTokenType)
hello_agents/tools/builtin/calculator.go:419
↓ 14 callersMethodappend_to
Append to with automatic attribute injection.
skills/docx/scripts/document.py:258
↓ 14 callersFunctioncopyMap
(in map[string]any)
hello_agents/core/llm_adapters.go:48
↓ 14 callersFunctionnoTraceConfig
--------------------------------------------------------------------------- helpers (from agents/simple_agent_run_test.go) ---------------------------
tests/test_all_agents_test.go:18
↓ 13 callersMethodRunWithTiming
(parameters map[string]any)
hello_agents/tools/base.go:36
↓ 13 callersFunctionintFromAny
(v any)
hello_agents/core/llm_adapters.go:95
↓ 13 callersFunctionisPermissionError
(err error)
hello_agents/tools/builtin/file_tools.go:761
↓ 12 callersFunctionNewSkillLoader
(skillsDir string)
hello_agents/skills/loader.go:40
↓ 12 callersFunctionasString
(v any)
hello_agents/core/llm_adapters.go:90
↓ 11 callersMethodFinalize
()
hello_agents/observability/trace_logger.go:177
↓ 11 callersFunctionNewSimpleAgentWithOptions
( name string, llm *core.HelloAgentsLLM, systemPrompt string, config *core.Config, toolRegistry *tools.To
hello_agents/agents/simple_agent.go:23
↓ 11 callersFunctionNewTodoWriteTool
(projectRoot string, persistenceDir string)
hello_agents/tools/builtin/todowrite_tool.go:99
↓ 11 callersFunctionget_bounding_box_messages
(fields_json_stream)
skills/pdf/scripts/check_bounding_boxes.py:18
↓ 10 callersFunctionNewMockLLM
NewMockLLM creates a HelloAgentsLLM with a mock adapter for testing.
hello_agents/core/testutil/mock_llm.go:114
↓ 10 callersFunctionNewReActAgent
(name string, llm *core.HelloAgentsLLM, systemPrompt string, config *core.Config, toolRegistry *tools.ToolRegi
hello_agents/agents/react_agent.go:54
↓ 10 callersMethodRun
(parameters map[string]any)
hello_agents/tools/builtin/todowrite_tool.go:143
↓ 10 callersMethodcreate_json_stream
Helper to create a JSON stream from data
skills/pdf/scripts/check_bounding_boxes_test.py:10
↓ 9 callersMethodExecuteTool
(name string, inputText string)
hello_agents/tools/registry.go:173
↓ 9 callersMethodGetTool
(name string)
hello_agents/tools/registry.go:136
↓ 9 callersMethodInvoke
(messages []map[string]any, kwargs map[string]any)
hello_agents/core/llm_adapters.go:18
↓ 9 callersFunctionNewAutoGeneratedTool
(parent Tool, method any, name, description string)
hello_agents/tools/base.go:221
↓ 9 callersFunctionNewHelloAgentsLLM
(model, apiKey, baseURL string, temperature float64, maxTokens *int, timeout *int, kwargs map[string]any)
hello_agents/core/llm.go:24
↓ 9 callersMethodSetRunDelegate
(runDelegate func(inputText string, kwargs map[string]any) (string, error))
hello_agents/core/agent.go:177
↓ 9 callersMethodSetRunImpl
SetRunImpl wires the concrete tool's Run method so that RunWithTiming dispatches correctly despite Go's lack of virtual method dispatch.
hello_agents/tools/base.go:68
↓ 9 callersMethodhttpClient
()
hello_agents/core/llm_adapters.go:34
↓ 9 callersFunctionmergeMap
(dst map[string]any, src map[string]any)
hello_agents/core/llm_adapters.go:59
↓ 9 callersFunctiontoJSONMap
(data []byte)
hello_agents/core/llm_adapters.go:69
↓ 8 callersMethodGetName
()
hello_agents/tools/base.go:32
↓ 8 callersMethodIsOpen
(toolName string)
hello_agents/tools/circuit_breaker.go:31
↓ 8 callersMethodListSkills
()
hello_agents/skills/loader.go:175
↓ 8 callersMethodRecordResult
(toolName string, response ToolResponse)
hello_agents/tools/circuit_breaker.go:49
↓ 8 callersMethodSave
( agentConfig map[string]any, history []Message, toolSchemaHash string, readCache map[string]map[string]an
hello_agents/core/session_store.go:53
↓ 8 callersFunctionWarn
(msg string, args ...any)
hello_agents/logging/logging.go:30
↓ 8 callersMethodget_node
Get a DOM element by tag and identifier. Finds an element by either its line number in the original file or by matching attr
skills/docx/scripts/utilities.py:76
↓ 7 callersMethodAppend
(entry DevLogEntry)
hello_agents/tools/builtin/devlog_tool.go:109
↓ 7 callersMethodInvokeWithTools
(messages []map[string]any, tools []map[string]any, kwargs map[string]any)
hello_agents/core/llm_adapters.go:20
↓ 7 callersMethodListTools
()
hello_agents/tools/registry.go:302
↓ 7 callersFunctionNewCalculatorTool
()
hello_agents/tools/builtin/calculator.go:18
↓ 7 callersFunctionNewCircuitBreaker
(failureThreshold, recoveryTimeout int, enabled bool)
hello_agents/tools/circuit_breaker.go:21
↓ 7 callersFunctionNewDevLogEntry
(category, content string, metadata map[string]any)
hello_agents/tools/builtin/devlog_tool.go:44
↓ 7 callersFunctionNewSessionStore
(sessionDir string)
hello_agents/core/session_store.go:33
↓ 7 callersMethodRegisterFunction
RegisterFunction mirrors Python register_function with both call styles: 1) RegisterFunction(handler, name?, description?) 2) RegisterFunction(name, d
hello_agents/tools/registry.go:89
↓ 7 callersMethodRun
(parameters map[string]any)
example/custom_tools/advanced_tool_template/main.go:72
↓ 7 callersMethodRun
(parameters map[string]any)
hello_agents/tools/builtin/devlog_tool.go:340
↓ 7 callersMethodRun
(parameters map[string]any)
hello_agents/tools/builtin/task_tool.go:67
↓ 7 callersMethodRun
(inputText string, kwargs map[string]any)
hello_agents/agents/simple_agent.go:47
↓ 7 callersMethod_inject_attributes_to_nodes
Inject RSID, author, and date attributes into DOM nodes where applicable. Adds attributes to elements that support them: - w:r: gets
skills/docx/scripts/document.py:116
↓ 7 callersFunctionextractToolCallsAndContent
(response map[string]any)
hello_agents/agents/tool_call_helpers.go:17
↓ 6 callersMethodAdd
(event StreamEvent)
hello_agents/core/streaming.go:86
↓ 6 callersMethodCacheReadMetadata
(filePath string, metadata map[string]any)
hello_agents/tools/registry.go:343
↓ 6 callersFunctionFromEnv
FromEnv creates config from environment variables while preserving Python defaults.
hello_agents/core/config.go:174
↓ 6 callersMethodGenerateSimpleSummary
(history []Message)
hello_agents/core/agent.go:310
↓ 6 callersMethodGetAgentConfig
()
hello_agents/core/agent.go:835
↓ 6 callersMethodGetAllFunctions
()
hello_agents/tools/registry.go:151
↓ 6 callersMethodLoad
(filepath string)
hello_agents/core/session_store.go:108
↓ 6 callersFunctionNewDevLogTool
(sessionID, agentName, projectRoot, persistenceDir string)
hello_agents/tools/builtin/devlog_tool.go:255
↓ 6 callersFunctionNewMockLLMFromAdapter
NewMockLLMFromAdapter creates a HelloAgentsLLM with a given mock adapter.
hello_agents/core/testutil/mock_llm.go:120
↓ 6 callersFunctionNewSkillTool
(skillLoader *skills.SkillLoader)
hello_agents/tools/builtin/skill_tool.go:19
↓ 6 callersFunctionNewTaskTool
(agentFactory AgentFactory, toolRegistry *tools.ToolRegistry)
hello_agents/tools/builtin/task_tool.go:24
↓ 6 callersMethodRun
(parameters map[string]any)
example/tool_response_demo/main.go:36
↓ 6 callersMethodStreamInvoke
(messages []map[string]any, kwargs map[string]any)
hello_agents/core/llm_adapters.go:19
↓ 6 callersMethodString
()
hello_agents/core/message.go:96
↓ 6 callersFunction_generate_hex_id
Generate random 8-character hex ID for para/durable IDs. Values are constrained to be less than 0x7FFFFFFF per OOXML spec: - paraId must be <
skills/docx/scripts/document.py:596
↓ 6 callersFunctionasSlice
(v any)
hello_agents/core/llm_adapters.go:85
↓ 6 callersFunctiondoJSONRequest
(client *http.Client, method string, endpoint string, headers map[string]string, body map[string]any)
hello_agents/core/llm_adapters.go:167
↓ 6 callersMethodinsert_after
Insert after with automatic attribute injection.
skills/docx/scripts/document.py:246
↓ 6 callersMethodinsert_before
Insert before with automatic attribute injection.
skills/docx/scripts/document.py:252
↓ 6 callersFunctionintFromAny
(v any)
hello_agents/tools/builtin/file_tools.go:733
↓ 6 callersFunctionnowPythonISOTime
()
hello_agents/tools/builtin/time_format.go:7
↓ 6 callersFunctionstreamLLMResponse
( llm *core.HelloAgentsLLM, messages []map[string]any, kwargs map[string]any, onChunk func(string), )
hello_agents/agents/stream_helpers.go:9
↓ 6 callersFunctiontoOpenAIToolCallsPayload
(toolCalls []toolCallEnvelope)
hello_agents/agents/tool_call_helpers.go:158
↓ 6 callersFunctiontodoStringValue
(value any)
hello_agents/tools/builtin/todowrite_tool.go:337
↓ 5 callersMethodAddMessage
(message Message)
hello_agents/core/agent.go:269
next →1–100 of 1,096, ranked by callers