ai-agents 0.12.0 → 0.13.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/CLAUDE.md +1 -1
  4. data/README.md +3 -3
  5. data/docs/architecture.md +1 -1
  6. data/docs/concepts/agents.md +16 -0
  7. data/docs/concepts/tools.md +1 -1
  8. data/docs/guides/instrumentation.md +54 -5
  9. data/docs/guides/rails-integration.md +2 -2
  10. data/docs/guides/state-persistence.md +2 -2
  11. data/docs/guides/structured-output.md +3 -3
  12. data/examples/collaborative-copilot/tools/create_linear_ticket_tool.rb +5 -5
  13. data/examples/collaborative-copilot/tools/get_article_tool.rb +1 -1
  14. data/examples/collaborative-copilot/tools/get_contact_tool.rb +1 -1
  15. data/examples/collaborative-copilot/tools/get_conversation_tool.rb +1 -1
  16. data/examples/collaborative-copilot/tools/get_stripe_billing_tool.rb +1 -1
  17. data/examples/collaborative-copilot/tools/search_contacts_tool.rb +3 -2
  18. data/examples/collaborative-copilot/tools/search_conversations_tool.rb +2 -2
  19. data/examples/collaborative-copilot/tools/search_knowledge_base_tool.rb +4 -3
  20. data/examples/collaborative-copilot/tools/search_linear_issues_tool.rb +5 -4
  21. data/examples/isp-support/agents_factory.rb +4 -4
  22. data/examples/isp-support/tools/create_checkout_tool.rb +1 -1
  23. data/examples/isp-support/tools/create_lead_tool.rb +3 -3
  24. data/examples/isp-support/tools/crm_lookup_tool.rb +1 -1
  25. data/examples/isp-support/tools/search_docs_tool.rb +1 -1
  26. data/lib/agents/agent.rb +19 -6
  27. data/lib/agents/agent_tool.rb +1 -1
  28. data/lib/agents/handoff.rb +2 -5
  29. data/lib/agents/helpers/message_extractor.rb +24 -8
  30. data/lib/agents/instrumentation/constants.rb +2 -0
  31. data/lib/agents/instrumentation/tracing_callbacks.rb +53 -24
  32. data/lib/agents/run_context.rb +5 -4
  33. data/lib/agents/runner.rb +76 -57
  34. data/lib/agents/tool.rb +8 -1
  35. data/lib/agents/tool_wrapper.rb +16 -13
  36. data/lib/agents/version.rb +1 -1
  37. data/lib/agents.rb +4 -2
  38. metadata +3 -3
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.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shivam Mishra
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.14'
18
+ version: 2.0.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.14'
25
+ version: 2.0.0
26
26
  description: Ruby AI Agents SDK enables creating complex AI workflows with multi-agent
27
27
  orchestration, tool execution, safety guardrails, and provider-agnostic LLM integration.
28
28
  email: