Enterprise agent platform for building, deploying, and operating AI teammates.
"use client"
import React from "react"
// AppProvider owns the transport-derived value. Standalone renderers retain
// the legacy enabled behavior through this default.
export const AgentCardPresentationCapability = React.createContext(true)
export function resolveAgentCardPresentationCapability(
filesDisabled: boolean,
requestedAgentCards: boolean | undefined,
inheritedAgentCards = true,
): boolean {
return !filesDisabled && (requestedAgentCards ?? inheritedAgentCards)
}
// Off by default so every existing MarkdownRenderer consumer (skill-hub docs,
// the file viewer, conversation logs, ...) keeps opening links in the same
// tab. AppProvider turns this on only for the Chat Widget surface, where an
// in-tab navigation would carry the visitor away from the conversation.
export const LinksOpenInNewTabCapability = React.createContext(false)