Class: Copilot::CustomAgentConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

Custom agent configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



234
235
236
# File 'lib/copilot/types.rb', line 234

def description
  @description
end

#display_nameObject

Returns the value of attribute display_name

Returns:

  • (Object)

    the current value of display_name



234
235
236
# File 'lib/copilot/types.rb', line 234

def display_name
  @display_name
end

#inferObject

Returns the value of attribute infer

Returns:

  • (Object)

    the current value of infer



234
235
236
# File 'lib/copilot/types.rb', line 234

def infer
  @infer
end

#mcp_serversObject

Returns the value of attribute mcp_servers

Returns:

  • (Object)

    the current value of mcp_servers



234
235
236
# File 'lib/copilot/types.rb', line 234

def mcp_servers
  @mcp_servers
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



234
235
236
# File 'lib/copilot/types.rb', line 234

def name
  @name
end

#promptObject

Returns the value of attribute prompt

Returns:

  • (Object)

    the current value of prompt



234
235
236
# File 'lib/copilot/types.rb', line 234

def prompt
  @prompt
end

#skillsObject

Returns the value of attribute skills

Returns:

  • (Object)

    the current value of skills



234
235
236
# File 'lib/copilot/types.rb', line 234

def skills
  @skills
end

#toolsObject

Returns the value of attribute tools

Returns:

  • (Object)

    the current value of tools



234
235
236
# File 'lib/copilot/types.rb', line 234

def tools
  @tools
end

Instance Method Details

#to_wireObject



239
240
241
242
243
244
245
246
247
248
# File 'lib/copilot/types.rb', line 239

def to_wire
  h = { name: name, prompt: prompt }
  h[:displayName] = display_name if display_name
  h[:description] = description if description
  h[:tools] = tools if tools
  h[:mcpServers] = mcp_servers if mcp_servers
  h[:infer] = infer unless infer.nil?
  h[:skills] = skills if skills
  h
end