Class: Zavudev::Models::Senders::SendersAgent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::Senders::SendersAgent
- Defined in:
- lib/zavudev/models/senders/agent.rb
Defined Under Namespace
Classes: Stats
Instance Attribute Summary collapse
-
#context_window_messages ⇒ Integer?
Number of previous messages to include as context.
- #created_at ⇒ Time
-
#enabled ⇒ Boolean
Whether the agent is active.
- #id ⇒ String
-
#include_contact_metadata ⇒ Boolean?
Whether to include contact metadata in context.
-
#max_tokens ⇒ Integer?
Maximum tokens for LLM response.
-
#model ⇒ String
Model ID (e.g., gpt-4o-mini, claude-3-5-sonnet).
- #name ⇒ String
-
#provider ⇒ Symbol, Zavudev::Models::Senders::AgentProvider
LLM provider for the AI agent.
- #sender_id ⇒ String
- #stats ⇒ Zavudev::Models::Senders::SendersAgent::Stats?
-
#system_prompt ⇒ String
System prompt for the agent.
-
#temperature ⇒ Float?
LLM temperature (0-2).
-
#trigger_on_channels ⇒ Array<String>?
Channels that trigger the agent.
-
#trigger_on_message_types ⇒ Array<String>?
Message types that trigger the agent.
- #updated_at ⇒ Time
Instance Method Summary collapse
-
#initialize(id:, created_at:, enabled:, model:, name:, provider:, sender_id:, system_prompt:, updated_at:, context_window_messages: nil, include_contact_metadata: nil, max_tokens: nil, stats: nil, temperature: nil, trigger_on_channels: nil, trigger_on_message_types: nil) ⇒ Object
constructor
AI Agent configuration for a sender.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, created_at:, enabled:, model:, name:, provider:, sender_id:, system_prompt:, updated_at:, context_window_messages: nil, include_contact_metadata: nil, max_tokens: nil, stats: nil, temperature: nil, trigger_on_channels: nil, trigger_on_message_types: nil) ⇒ Object
AI Agent configuration for a sender.
|
|
# File 'lib/zavudev/models/senders/agent.rb', line 101
|
Instance Attribute Details
#context_window_messages ⇒ Integer?
Number of previous messages to include as context.
60 |
# File 'lib/zavudev/models/senders/agent.rb', line 60 optional :context_window_messages, Integer, api_name: :contextWindowMessages |
#created_at ⇒ Time
15 |
# File 'lib/zavudev/models/senders/agent.rb', line 15 required :created_at, Time, api_name: :createdAt |
#enabled ⇒ Boolean
Whether the agent is active.
21 |
# File 'lib/zavudev/models/senders/agent.rb', line 21 required :enabled, Zavudev::Internal::Type::Boolean |
#id ⇒ String
10 |
# File 'lib/zavudev/models/senders/agent.rb', line 10 required :id, String |
#include_contact_metadata ⇒ Boolean?
Whether to include contact metadata in context.
66 67 68 |
# File 'lib/zavudev/models/senders/agent.rb', line 66 optional :include_contact_metadata, Zavudev::Internal::Type::Boolean, api_name: :includeContactMetadata |
#max_tokens ⇒ Integer?
Maximum tokens for LLM response.
74 |
# File 'lib/zavudev/models/senders/agent.rb', line 74 optional :max_tokens, Integer, api_name: :maxTokens, nil?: true |
#model ⇒ String
Model ID (e.g., gpt-4o-mini, claude-3-5-sonnet).
27 |
# File 'lib/zavudev/models/senders/agent.rb', line 27 required :model, String |
#name ⇒ String
32 |
# File 'lib/zavudev/models/senders/agent.rb', line 32 required :name, String |
#provider ⇒ Symbol, Zavudev::Models::Senders::AgentProvider
LLM provider for the AI agent.
38 |
# File 'lib/zavudev/models/senders/agent.rb', line 38 required :provider, enum: -> { Zavudev::Senders::AgentProvider } |
#sender_id ⇒ String
43 |
# File 'lib/zavudev/models/senders/agent.rb', line 43 required :sender_id, String, api_name: :senderId |
#stats ⇒ Zavudev::Models::Senders::SendersAgent::Stats?
79 |
# File 'lib/zavudev/models/senders/agent.rb', line 79 optional :stats, -> { Zavudev::Senders::SendersAgent::Stats } |
#system_prompt ⇒ String
System prompt for the agent.
49 |
# File 'lib/zavudev/models/senders/agent.rb', line 49 required :system_prompt, String, api_name: :systemPrompt |
#temperature ⇒ Float?
LLM temperature (0-2).
85 |
# File 'lib/zavudev/models/senders/agent.rb', line 85 optional :temperature, Float, nil?: true |
#trigger_on_channels ⇒ Array<String>?
Channels that trigger the agent.
91 |
# File 'lib/zavudev/models/senders/agent.rb', line 91 optional :trigger_on_channels, Zavudev::Internal::Type::ArrayOf[String], api_name: :triggerOnChannels |
#trigger_on_message_types ⇒ Array<String>?
Message types that trigger the agent.
97 98 99 |
# File 'lib/zavudev/models/senders/agent.rb', line 97 optional :trigger_on_message_types, Zavudev::Internal::Type::ArrayOf[String], api_name: :triggerOnMessageTypes |
#updated_at ⇒ Time
54 |
# File 'lib/zavudev/models/senders/agent.rb', line 54 required :updated_at, Time, api_name: :updatedAt |