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



362
363
364
# File 'lib/copilot/types.rb', line 362

def description
  @description
end

#display_nameObject

Returns the value of attribute display_name

Returns:

  • (Object)

    the current value of display_name



362
363
364
# File 'lib/copilot/types.rb', line 362

def display_name
  @display_name
end

#inferObject

Returns the value of attribute infer

Returns:

  • (Object)

    the current value of infer



362
363
364
# File 'lib/copilot/types.rb', line 362

def infer
  @infer
end

#mcp_serversObject

Returns the value of attribute mcp_servers

Returns:

  • (Object)

    the current value of mcp_servers



362
363
364
# File 'lib/copilot/types.rb', line 362

def mcp_servers
  @mcp_servers
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



362
363
364
# File 'lib/copilot/types.rb', line 362

def name
  @name
end

#promptObject

Returns the value of attribute prompt

Returns:

  • (Object)

    the current value of prompt



362
363
364
# File 'lib/copilot/types.rb', line 362

def prompt
  @prompt
end

#skillsObject

Returns the value of attribute skills

Returns:

  • (Object)

    the current value of skills



362
363
364
# File 'lib/copilot/types.rb', line 362

def skills
  @skills
end

#toolsObject

Returns the value of attribute tools

Returns:

  • (Object)

    the current value of tools



362
363
364
# File 'lib/copilot/types.rb', line 362

def tools
  @tools
end

Instance Method Details

#to_wireObject



367
368
369
370
371
372
373
374
375
376
# File 'lib/copilot/types.rb', line 367

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