Documentation
¶
Index ¶
- Constants
- func ApplyToFoundryHTTPRequest(req *http.Request)
- func ApplyToHTTPRequest(req *http.Request)
- func ApplyToUserAgent(userAgent string, includeFeatureToken bool) string
- func MarkUsed(index int)
- func PrependAgentFrameworkToHTTPHeader(headers http.Header) http.Header
- func PrependAgentFrameworkToUserAgent(headers map[string]string) map[string]string
Constants ¶
const ( FeatureAgent = 0 FeatureHarnessAgent = 1 FeatureWorkflow = 2 FeatureToolApproval = 3 FeatureChatHistoryMemoryProvider = 4 FeatureFileMemoryProvider = 5 FeatureTextSearchProvider = 6 FeatureInMemoryHistoryProvider = 13 FeatureCompactionProvider = 9 FeatureSkillsProvider = 8 FeatureFileSkillsSource = 15 FeatureInMemorySkillsSource = 16 FeatureMCP = 14 FeatureTodoProvider = 10 FeatureAgentModeProvider = 11 FeatureSequentialOrchestration = 32 FeatureConcurrentOrchestration = 33 FeatureGroupChatOrchestration = 34 FeatureFoundryChatClient = 48 FeatureFoundryAgent = 49 FeatureFoundryMemory = 50 FeatureOpenAI = 54 FeatureAnthropic = 55 FeatureGitHubCopilot = 57 FeatureA2A = 62 FeatureHostingAGUI = 63 FeatureShell = 69 FeatureHostingA2A = 73 )
Feature indexes match the .NET version-1 registry. Only supported capabilities registered there are tracked; indexes must not be repurposed for Go-only features.
Variables ¶
This section is empty.
Functions ¶
func ApplyToFoundryHTTPRequest ¶ added in v0.1.1
ApplyToFoundryHTTPRequest adds the framework identity and refreshes the feature comment for approved Foundry origins. The transport must enforce redirect origins.
func ApplyToHTTPRequest ¶ added in v0.1.1
ApplyToHTTPRequest adds the framework identity and refreshes the feature comment for approved Azure origins. Only origin-guarded OpenAI/Foundry clients may use this helper; their transports must also enforce the origin on redirects.
func ApplyToUserAgent ¶ added in v0.1.1
ApplyToUserAgent refreshes the feature comment while preserving unrelated bytes. Valid existing comments are removed when the mask is empty, disabled, or excluded. Callers must approve the destination independently before including the token.
func MarkUsed ¶ added in v0.1.1
func MarkUsed(index int)
MarkUsed records a feature for the lifetime of the process. It is concurrency-safe and idempotent. It panics for indexes outside 0 through 127, unless tracking is disabled by AGENT_FRAMEWORK_FEATURE_MASK_DISABLED=true or 1.
func PrependAgentFrameworkToHTTPHeader ¶
PrependAgentFrameworkToHTTPHeader prepends the Agent Framework user-agent value to an http.Header.
Types ¶
This section is empty.