Class: Copilot::CustomAgentConfig
- Inherits:
-
Struct
- Object
- Struct
- Copilot::CustomAgentConfig
- Defined in:
- lib/copilot/types.rb
Overview
Custom agent configuration.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#infer ⇒ Object
Returns the value of attribute infer.
-
#mcp_servers ⇒ Object
Returns the value of attribute mcp_servers.
-
#name ⇒ Object
Returns the value of attribute name.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#skills ⇒ Object
Returns the value of attribute skills.
-
#tools ⇒ Object
Returns the value of attribute tools.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
234 235 236 |
# File 'lib/copilot/types.rb', line 234 def description @description end |
#display_name ⇒ Object
Returns the value of attribute display_name
234 235 236 |
# File 'lib/copilot/types.rb', line 234 def display_name @display_name end |
#infer ⇒ Object
Returns the value of attribute infer
234 235 236 |
# File 'lib/copilot/types.rb', line 234 def infer @infer end |
#mcp_servers ⇒ Object
Returns the value of attribute mcp_servers
234 235 236 |
# File 'lib/copilot/types.rb', line 234 def mcp_servers @mcp_servers end |
#name ⇒ Object
Returns the value of attribute name
234 235 236 |
# File 'lib/copilot/types.rb', line 234 def name @name end |
#prompt ⇒ Object
Returns the value of attribute prompt
234 235 236 |
# File 'lib/copilot/types.rb', line 234 def prompt @prompt end |
#skills ⇒ Object
Returns the value of attribute skills
234 235 236 |
# File 'lib/copilot/types.rb', line 234 def skills @skills end |
#tools ⇒ Object
Returns the value of attribute tools
234 235 236 |
# File 'lib/copilot/types.rb', line 234 def tools @tools end |
Instance Method Details
#to_wire ⇒ Object
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 |