ai-agents 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/CLAUDE.md +1 -1
- data/README.md +3 -3
- data/docs/architecture.md +1 -1
- data/docs/concepts/agents.md +16 -0
- data/docs/concepts/tools.md +1 -1
- data/docs/guides/instrumentation.md +54 -5
- data/docs/guides/rails-integration.md +2 -2
- data/docs/guides/state-persistence.md +2 -2
- data/docs/guides/structured-output.md +3 -3
- data/examples/collaborative-copilot/tools/create_linear_ticket_tool.rb +5 -5
- data/examples/collaborative-copilot/tools/get_article_tool.rb +1 -1
- data/examples/collaborative-copilot/tools/get_contact_tool.rb +1 -1
- data/examples/collaborative-copilot/tools/get_conversation_tool.rb +1 -1
- data/examples/collaborative-copilot/tools/get_stripe_billing_tool.rb +1 -1
- data/examples/collaborative-copilot/tools/search_contacts_tool.rb +3 -2
- data/examples/collaborative-copilot/tools/search_conversations_tool.rb +2 -2
- data/examples/collaborative-copilot/tools/search_knowledge_base_tool.rb +4 -3
- data/examples/collaborative-copilot/tools/search_linear_issues_tool.rb +5 -4
- data/examples/isp-support/agents_factory.rb +4 -4
- data/examples/isp-support/tools/create_checkout_tool.rb +1 -1
- data/examples/isp-support/tools/create_lead_tool.rb +3 -3
- data/examples/isp-support/tools/crm_lookup_tool.rb +1 -1
- data/examples/isp-support/tools/search_docs_tool.rb +1 -1
- data/lib/agents/agent.rb +19 -6
- data/lib/agents/agent_tool.rb +1 -1
- data/lib/agents/handoff.rb +2 -5
- data/lib/agents/helpers/message_extractor.rb +32 -8
- data/lib/agents/instrumentation/constants.rb +2 -0
- data/lib/agents/instrumentation/tracing_callbacks.rb +53 -24
- data/lib/agents/run_context.rb +5 -4
- data/lib/agents/runner.rb +86 -57
- data/lib/agents/tool.rb +8 -1
- data/lib/agents/tool_wrapper.rb +22 -13
- data/lib/agents/version.rb +1 -1
- data/lib/agents.rb +4 -2
- metadata +11 -5
data/lib/agents.rb
CHANGED
|
@@ -53,6 +53,7 @@ module Agents
|
|
|
53
53
|
apply_if_present(config, :openai_api_base)
|
|
54
54
|
apply_if_present(config, :openai_organization_id)
|
|
55
55
|
apply_if_present(config, :openai_project_id)
|
|
56
|
+
apply_if_present(config, :openai_protocol)
|
|
56
57
|
|
|
57
58
|
# Other providers
|
|
58
59
|
apply_if_present(config, :anthropic_api_key)
|
|
@@ -75,6 +76,7 @@ module Agents
|
|
|
75
76
|
config.default_model = configuration.default_model
|
|
76
77
|
config.log_level = configuration.debug == true ? :debug : :info
|
|
77
78
|
apply_if_present(config, :request_timeout)
|
|
79
|
+
apply_if_present(config, :model_registry_file)
|
|
78
80
|
end
|
|
79
81
|
|
|
80
82
|
def apply_if_present(config, key)
|
|
@@ -85,13 +87,13 @@ module Agents
|
|
|
85
87
|
|
|
86
88
|
class Configuration
|
|
87
89
|
# Provider API keys and configuration
|
|
88
|
-
attr_accessor :openai_api_key, :openai_api_base, :openai_organization_id, :openai_project_id
|
|
90
|
+
attr_accessor :openai_api_key, :openai_api_base, :openai_organization_id, :openai_project_id, :openai_protocol
|
|
89
91
|
attr_accessor :anthropic_api_key, :azure_api_base, :azure_api_key, :azure_ai_auth_token, :gemini_api_key,
|
|
90
92
|
:deepseek_api_key, :openrouter_api_key, :ollama_api_base, :bedrock_api_key, :bedrock_secret_key,
|
|
91
93
|
:bedrock_region, :bedrock_session_token
|
|
92
94
|
|
|
93
95
|
# General configuration
|
|
94
|
-
attr_accessor :request_timeout, :default_model, :debug
|
|
96
|
+
attr_accessor :request_timeout, :default_model, :debug, :model_registry_file
|
|
95
97
|
|
|
96
98
|
def initialize
|
|
97
99
|
@default_model = "gpt-4o-mini"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ai-agents
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shivam Mishra
|
|
@@ -13,16 +13,22 @@ dependencies:
|
|
|
13
13
|
name: ruby_llm
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
|
-
- - "
|
|
16
|
+
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '
|
|
18
|
+
version: '2.0'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '2.2'
|
|
19
22
|
type: :runtime
|
|
20
23
|
prerelease: false
|
|
21
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
25
|
requirements:
|
|
23
|
-
- - "
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '2.0'
|
|
29
|
+
- - "<"
|
|
24
30
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '
|
|
31
|
+
version: '2.2'
|
|
26
32
|
description: Ruby AI Agents SDK enables creating complex AI workflows with multi-agent
|
|
27
33
|
orchestration, tool execution, safety guardrails, and provider-agnostic LLM integration.
|
|
28
34
|
email:
|