Class: RailsAiBridge::Serializers::Formatters::Providers::CopilotHeaderFormatter

Inherits:
Base
  • Object
show all
Defined in:
lib/rails_ai_bridge/serializers/formatters/providers/copilot_header_formatter.rb

Overview

Renders the Copilot Instructions document header.

Instance Attribute Summary

Attributes inherited from Base

#context

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RailsAiBridge::Serializers::Formatters::Base

Instance Method Details

#callString

Returns:

  • (String)


9
10
11
12
13
14
15
16
# File 'lib/rails_ai_bridge/serializers/formatters/providers/copilot_header_formatter.rb', line 9

def call
  ProviderDocumentHeader.call(
    context: context,
    document_title: 'Copilot Instructions',
    layout: :instructions,
    intro: "Use this context to generate code that fits this project's structure and patterns."
  )
end