@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
27 lines (26 loc) • 903 B
JavaScript
;
/**
* Agent Display Utilities
*
* Provides utilities for building agent instruction content blocks
* that ensure important information (visualization URLs)
* is displayed to users by AI agents.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildAgentDisplayBlock = buildAgentDisplayBlock;
/**
* Build an agent instruction content block that tells AI agents to display
* specific fields from the JSON response to the user.
*
* @param options - The display options containing visualization URL
* @returns A content block with agent instructions, or null if nothing to display
*/
function buildAgentDisplayBlock(options) {
if (!options.visualizationUrl) {
return null;
}
return {
type: 'text',
text: `IMPORTANT: After presenting the main response data, also display the visualizationUrl field to the user.`
};
}