chatGraphViewEnabled reports whether the chat-mode graph exception is on. Default ON when the env var is unset.
()
| 29 | // chatGraphViewEnabled reports whether the chat-mode graph exception is on. |
| 30 | // Default ON when the env var is unset. |
| 31 | func chatGraphViewEnabled() bool { |
| 32 | switch strings.ToLower(strings.TrimSpace(os.Getenv(chatGraphViewEnvVar))) { |
| 33 | case "false", "0", "off", "no": |
| 34 | return false |
| 35 | default: |
| 36 | return true |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // graphViewToolDefinition is the native tool-use definition offered in the chat |
| 41 | // decision turn. The parameters mirror the @graphview flat-JSON envelope, so the |
no outgoing calls