MCPcopy Index your code
hub / github.com/coder/coder / withProvider

Function withProvider

aibridge/internal/integrationtest/setupbridge.go:88–94  ·  view source on GitHub ↗

withProvider adds a default-configured provider of the given type. When any provider option is used, the default "all providers" set is not created.

(providerType string)

Source from the content-addressed store, hash-verified

86// withProvider adds a default-configured provider of the given type.
87// When any provider option is used, the default "all providers" set is not created.
88func withProvider(providerType string) bridgeOption {
89 return func(c *bridgeConfig) {
90 c.providerBuilders = append(c.providerBuilders, func(addr string) aibridge.Provider {
91 return newDefaultProvider(providerType, addr)
92 })
93 }
94}
95
96// withCustomProvider adds a pre-built provider. The upstream URL passed to
97// [newBridgeTestServer] is ignored for this provider.

Callers 4

TestSessionIDTrackingFunction · 0.85
TestTraceAnthropicFunction · 0.85
TestTraceAnthropicErrFunction · 0.85
TestInjectedToolsTraceFunction · 0.85

Calls 1

newDefaultProviderFunction · 0.85

Tested by 4

TestSessionIDTrackingFunction · 0.68
TestTraceAnthropicFunction · 0.68
TestTraceAnthropicErrFunction · 0.68
TestInjectedToolsTraceFunction · 0.68