fetch_hive 0.4.0 → 0.5.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 (129) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -2
  3. data/lib/fetch_hive/client.rb +66 -3
  4. data/lib/fetch_hive/generated/api/agent_chat_messages_api.rb +1 -1
  5. data/lib/fetch_hive/generated/api/agent_chats_api.rb +1 -1
  6. data/lib/fetch_hive/generated/api/agents_api.rb +1 -1
  7. data/lib/fetch_hive/generated/api/assets_api.rb +1 -1
  8. data/lib/fetch_hive/generated/api/hive_agents_api.rb +1 -1
  9. data/lib/fetch_hive/generated/api/knowledge_base_items_api.rb +1 -1
  10. data/lib/fetch_hive/generated/api/knowledge_bases_api.rb +1 -1
  11. data/lib/fetch_hive/generated/api/models_api.rb +1 -1
  12. data/lib/fetch_hive/generated/api/prompts_api.rb +1 -1
  13. data/lib/fetch_hive/generated/api/requests_api.rb +1 -1
  14. data/lib/fetch_hive/generated/api/search_services_api.rb +1 -1
  15. data/lib/fetch_hive/generated/api/tool_action_approvals_api.rb +1 -1
  16. data/lib/fetch_hive/generated/api/workflows_api.rb +1 -1
  17. data/lib/fetch_hive/generated/api_client.rb +1 -1
  18. data/lib/fetch_hive/generated/api_error.rb +1 -1
  19. data/lib/fetch_hive/generated/api_model_base.rb +1 -1
  20. data/lib/fetch_hive/generated/configuration.rb +1 -1
  21. data/lib/fetch_hive/generated/models/agent_attachment.rb +1 -1
  22. data/lib/fetch_hive/generated/models/agent_attachment_one_of.rb +1 -1
  23. data/lib/fetch_hive/generated/models/agent_delegation.rb +1 -1
  24. data/lib/fetch_hive/generated/models/agent_invoke_async_config.rb +1 -1
  25. data/lib/fetch_hive/generated/models/agent_message.rb +1 -1
  26. data/lib/fetch_hive/generated/models/asset_object.rb +1 -1
  27. data/lib/fetch_hive/generated/models/asset_object_transcription.rb +1 -1
  28. data/lib/fetch_hive/generated/models/async_config.rb +1 -1
  29. data/lib/fetch_hive/generated/models/delete_public_workspaces_agents200_response.rb +1 -1
  30. data/lib/fetch_hive/generated/models/delete_public_workspaces_agents_chats200_response.rb +1 -1
  31. data/lib/fetch_hive/generated/models/delete_public_workspaces_agents_chats404_response.rb +1 -1
  32. data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases200_response.rb +1 -1
  33. data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases_items200_response.rb +1 -1
  34. data/lib/fetch_hive/generated/models/denied_tool_call.rb +1 -1
  35. data/lib/fetch_hive/generated/models/error_response.rb +1 -1
  36. data/lib/fetch_hive/generated/models/generated_artifact.rb +1 -1
  37. data/lib/fetch_hive/generated/models/get_public_models200_response_inner.rb +1 -1
  38. data/lib/fetch_hive/generated/models/get_public_requests200_response.rb +1 -1
  39. data/lib/fetch_hive/generated/models/get_public_requests404_response.rb +1 -1
  40. data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response.rb +1 -1
  41. data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response_services_inner.rb +1 -1
  42. data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response_services_inner_countries_inner.rb +1 -1
  43. data/lib/fetch_hive/generated/models/get_public_search_services_countries2404_response.rb +1 -1
  44. data/lib/fetch_hive/generated/models/get_public_workspaces_agents200_response.rb +1 -1
  45. data/lib/fetch_hive/generated/models/get_public_workspaces_agents2200_response.rb +1 -1
  46. data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats200_response.rb +1 -1
  47. data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages200_response.rb +1 -1
  48. data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages200_response_messages_inner.rb +1 -1
  49. data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages422_response.rb +1 -1
  50. data/lib/fetch_hive/generated/models/get_public_workspaces_assets200_response.rb +1 -1
  51. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases200_response.rb +1 -1
  52. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases2200_response.rb +1 -1
  53. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases2422_response.rb +1 -1
  54. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items200_response.rb +1 -1
  55. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items200_response_knowledge_base_items_inner.rb +1 -1
  56. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items2200_response.rb +1 -1
  57. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items2422_response.rb +1 -1
  58. data/lib/fetch_hive/generated/models/get_public_workspaces_tool_action_approvals200_response.rb +1 -1
  59. data/lib/fetch_hive/generated/models/get_public_workspaces_tool_action_approvals2200_response.rb +1 -1
  60. data/lib/fetch_hive/generated/models/hive_agent_async_config.rb +1 -1
  61. data/lib/fetch_hive/generated/models/hive_agent_sources.rb +1 -1
  62. data/lib/fetch_hive/generated/models/invoke_agent_request.rb +36 -5
  63. data/lib/fetch_hive/generated/models/invoke_agent_request_decided_tool_approvals_inner.rb +1 -1
  64. data/lib/fetch_hive/generated/models/invoke_agent_request_response_format.rb +191 -0
  65. data/lib/fetch_hive/generated/models/invoke_agent_request_response_format_json_schema.rb +167 -0
  66. data/lib/fetch_hive/generated/models/invoke_agent_response.rb +15 -3
  67. data/lib/fetch_hive/generated/models/invoke_agent_response_auto_approved_tool_calls_inner.rb +1 -1
  68. data/lib/fetch_hive/generated/models/invoke_hive_agent_request.rb +1 -1
  69. data/lib/fetch_hive/generated/models/invoke_hive_agent_response.rb +1 -1
  70. data/lib/fetch_hive/generated/models/invoke_prompt_request.rb +1 -1
  71. data/lib/fetch_hive/generated/models/invoke_prompt_response.rb +1 -1
  72. data/lib/fetch_hive/generated/models/invoke_workflow_async_response.rb +1 -1
  73. data/lib/fetch_hive/generated/models/invoke_workflow_request.rb +1 -1
  74. data/lib/fetch_hive/generated/models/invoke_workflow_response.rb +1 -1
  75. data/lib/fetch_hive/generated/models/knowledge_base_object.rb +1 -1
  76. data/lib/fetch_hive/generated/models/list_thread_agent_delegations200_response.rb +1 -1
  77. data/lib/fetch_hive/generated/models/metadata_value.rb +1 -1
  78. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents200_response.rb +1 -1
  79. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents422_response.rb +1 -1
  80. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats200_response.rb +1 -1
  81. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_clear_messages200_response.rb +1 -1
  82. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_request.rb +1 -1
  83. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_request_chat.rb +1 -1
  84. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_request.rb +1 -1
  85. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_request_agent.rb +1 -1
  86. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases200_response.rb +1 -1
  87. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items200_response.rb +1 -1
  88. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items_request.rb +1 -1
  89. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items_request_knowledge_base_item.rb +1 -1
  90. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_request.rb +1 -1
  91. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_request_knowledge_base.rb +1 -1
  92. data/lib/fetch_hive/generated/models/pending_delegation.rb +1 -1
  93. data/lib/fetch_hive/generated/models/pending_tool_approval.rb +1 -1
  94. data/lib/fetch_hive/generated/models/post_public_workspaces_agents200_response.rb +1 -1
  95. data/lib/fetch_hive/generated/models/post_public_workspaces_agents422_response.rb +1 -1
  96. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats200_response.rb +1 -1
  97. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats200_response_chat.rb +1 -1
  98. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats422_response.rb +1 -1
  99. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats_request.rb +1 -1
  100. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats_request_chat.rb +1 -1
  101. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_request.rb +1 -1
  102. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_request_agent.rb +1 -1
  103. data/lib/fetch_hive/generated/models/post_public_workspaces_assets200_response.rb +1 -1
  104. data/lib/fetch_hive/generated/models/post_public_workspaces_assets422_response.rb +1 -1
  105. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases200_response.rb +1 -1
  106. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items200_response.rb +1 -1
  107. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items422_response.rb +1 -1
  108. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_regenerate200_response.rb +1 -1
  109. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_request.rb +1 -1
  110. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_request_knowledge_base_item.rb +1 -1
  111. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_request.rb +1 -1
  112. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_request_knowledge_base.rb +1 -1
  113. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search200_response.rb +1 -1
  114. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search422_response.rb +1 -1
  115. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search_request.rb +1 -1
  116. data/lib/fetch_hive/generated/models/post_public_workspaces_tool_action_approvals_decide_request.rb +1 -1
  117. data/lib/fetch_hive/generated/models/sse_chunk.rb +15 -3
  118. data/lib/fetch_hive/generated/models/sse_chunk_auto_approved_tool_calls_inner.rb +1 -1
  119. data/lib/fetch_hive/generated/models/token_usage.rb +1 -1
  120. data/lib/fetch_hive/generated/models/tool_action_approval_object.rb +1 -1
  121. data/lib/fetch_hive/generated/models/tool_action_approval_object_approval_votes_inner.rb +1 -1
  122. data/lib/fetch_hive/generated/models/tool_action_approval_object_arguments_edited_by.rb +1 -1
  123. data/lib/fetch_hive/generated/models/tool_action_approval_object_batch_items_inner.rb +1 -1
  124. data/lib/fetch_hive/generated/models/tool_action_approval_object_capabilities.rb +1 -1
  125. data/lib/fetch_hive/generated/models/tool_action_approval_object_decided_by_user.rb +1 -1
  126. data/lib/fetch_hive/generated/models/tool_action_approval_object_requested_by.rb +1 -1
  127. data/lib/fetch_hive/generated/models/tool_invocation.rb +1 -1
  128. data/lib/fetch_hive/generated/version.rb +1 -1
  129. metadata +4 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module FetchHive::Generated
17
- # A single event in a Server-Sent Events stream. The `type` field is a runtime discriminator. Known values: - `reasoning` — a reasoning / thinking chunk (prompt and agent streams) - `response` — a text chunk (prompt and agent streams) - `tool` — a tool invocation result (agent stream only) - `artifact` — a generated document or image descriptor (agent stream only) - `usage` — final token usage event; signals end of meaningful stream content - `tool_approval` — a paused tool call waiting for a decision (agent stream only) - `summary` — auto-summarization event emitted before reasoning when a thread history was compressed (agent stream only) - `error` — server-side error during streaming The stream is terminated by `data: [DONE]`, which is handled by the SSE parser and never surfaced as a chunk.
17
+ # A single event in a Server-Sent Events stream. The `type` field is a runtime discriminator. Known values: - `reasoning` — a reasoning / thinking chunk (prompt and agent streams) - `response` — a text chunk (prompt and agent streams) - `tool` — a tool invocation result (agent stream only) - `artifact` — a generated document or image descriptor (agent stream only) - `usage` — final token usage event; signals end of meaningful stream content. Text deltas may differ from the stored answer when a JSON Schema repair ran. `output_json` on this event is the parsed object. - `tool_approval` — a paused tool call waiting for a decision (agent stream only) - `summary` — auto-summarization event emitted before reasoning when a thread history was compressed (agent stream only) - `error` — server-side error during streaming The stream is terminated by `data: [DONE]`, which is handled by the SSE parser and never surfaced as a chunk.
18
18
  class SseChunk < ApiModelBase
19
19
  # Event type discriminator.
20
20
  attr_accessor :type
@@ -63,6 +63,9 @@ module FetchHive::Generated
63
63
  # Present on the final `usage` event. Public id for this run.
64
64
  attr_accessor :run_id
65
65
 
66
+ # Parsed JSON object. Present on the final `usage` event when this call requested a JSON Schema and the answer matched.
67
+ attr_accessor :output_json
68
+
66
69
  # Present on the final `usage` event. The caller thread id, or null. (value may be null)
67
70
  attr_accessor :thread_id
68
71
 
@@ -133,6 +136,7 @@ module FetchHive::Generated
133
136
  :'approval' => :'approval',
134
137
  :'status' => :'status',
135
138
  :'run_id' => :'run_id',
139
+ :'output_json' => :'output_json',
136
140
  :'thread_id' => :'thread_id',
137
141
  :'pending_tool_approvals' => :'pending_tool_approvals',
138
142
  :'denied_tool_calls' => :'denied_tool_calls',
@@ -175,6 +179,7 @@ module FetchHive::Generated
175
179
  :'approval' => :'Hash<String, Object>',
176
180
  :'status' => :'String',
177
181
  :'run_id' => :'String',
182
+ :'output_json' => :'Hash<String, Object>',
178
183
  :'thread_id' => :'String',
179
184
  :'pending_tool_approvals' => :'Array<PendingToolApproval>',
180
185
  :'denied_tool_calls' => :'Array<DeniedToolCall>',
@@ -278,6 +283,12 @@ module FetchHive::Generated
278
283
  self.run_id = attributes[:'run_id']
279
284
  end
280
285
 
286
+ if attributes.key?(:'output_json')
287
+ if (value = attributes[:'output_json']).is_a?(Hash)
288
+ self.output_json = value
289
+ end
290
+ end
291
+
281
292
  if attributes.key?(:'thread_id')
282
293
  self.thread_id = attributes[:'thread_id']
283
294
  end
@@ -373,6 +384,7 @@ module FetchHive::Generated
373
384
  approval == o.approval &&
374
385
  status == o.status &&
375
386
  run_id == o.run_id &&
387
+ output_json == o.output_json &&
376
388
  thread_id == o.thread_id &&
377
389
  pending_tool_approvals == o.pending_tool_approvals &&
378
390
  denied_tool_calls == o.denied_tool_calls &&
@@ -394,7 +406,7 @@ module FetchHive::Generated
394
406
  # Calculates hash code according to all attributes.
395
407
  # @return [Integer] Hash code
396
408
  def hash
397
- [type, response, request_id, model, done, tool_id, tool, tool_type, tool_input, observation, artifact, stop_reason, tool_approval, approval, status, run_id, thread_id, pending_tool_approvals, denied_tool_calls, auto_approved_tool_calls, summary_text, original_token_count, context_limit, provider, error, usage].hash
409
+ [type, response, request_id, model, done, tool_id, tool, tool_type, tool_input, observation, artifact, stop_reason, tool_approval, approval, status, run_id, output_json, thread_id, pending_tool_approvals, denied_tool_calls, auto_approved_tool_calls, summary_text, original_token_count, context_limit, provider, error, usage].hash
398
410
  end
399
411
 
400
412
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fetch_hive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fetch Hive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-10 00:00:00.000000000 Z
11
+ date: 2026-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -109,6 +109,8 @@ files:
109
109
  - lib/fetch_hive/generated/models/hive_agent_sources.rb
110
110
  - lib/fetch_hive/generated/models/invoke_agent_request.rb
111
111
  - lib/fetch_hive/generated/models/invoke_agent_request_decided_tool_approvals_inner.rb
112
+ - lib/fetch_hive/generated/models/invoke_agent_request_response_format.rb
113
+ - lib/fetch_hive/generated/models/invoke_agent_request_response_format_json_schema.rb
112
114
  - lib/fetch_hive/generated/models/invoke_agent_response.rb
113
115
  - lib/fetch_hive/generated/models/invoke_agent_response_auto_approved_tool_calls_inner.rb
114
116
  - lib/fetch_hive/generated/models/invoke_hive_agent_request.rb