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

Function WithContextConfigFromEnv

agent/agenttest/agent.go:54–58  ·  view source on GitHub ↗

WithContextConfigFromEnv returns an agent option that populates ContextConfig from the current environment.

()

Source from the content-addressed store, hash-verified

52// WithContextConfigFromEnv returns an agent option that
53// populates ContextConfig from the current environment.
54func WithContextConfigFromEnv() func(*agent.Options) {
55 return func(o *agent.Options) {
56 o.ContextConfig = agentcontextconfig.ReadEnvConfig()
57 }
58}

Calls 1

ReadEnvConfigFunction · 0.92