IsEnabled reports whether the endpoint participates in tool launches. A nil Enabled field is treated as "true" to match Python.
()
| 52 | // IsEnabled reports whether the endpoint participates in tool launches. A nil |
| 53 | // Enabled field is treated as "true" to match Python. |
| 54 | func (e Endpoint) IsEnabled() bool { |
| 55 | if e.Enabled == nil { |
| 56 | return true |
| 57 | } |
| 58 | return *e.Enabled |
| 59 | } |
| 60 | |
| 61 | // Clients returns the supported_client field split into a normalized slice. |
| 62 | func (e Endpoint) Clients() []string { |
no outgoing calls