MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / validateAgentTimeoutSeconds

Function validateAgentTimeoutSeconds

agent/agent_tool.go:224–229  ·  view source on GitHub ↗
(seconds int)

Source from the content-addressed store, hash-verified

222}
223
224func validateAgentTimeoutSeconds(seconds int) (int, string) {
225 if seconds <= 0 {
226 return 0, "timeout_seconds must be greater than 0."
227 }
228 return seconds, ""
229}
230
231func derefAgentInput(input any) AgentInput {
232 switch v := input.(type) {

Callers 1

parseAgentTimeoutSecondsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected