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
@@ -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
@@ -53,6 +53,14 @@ module FetchHive::Generated
53
53
  # Approval ids from an earlier `awaiting_approval` response. An API key call resumes on the server after the decision. Do not send this field to re-invoke that thread. A first-party streaming client sends `{ \"approval_id\": \"<uuid>\" }` on its next invoke. Only `approval_id` is read.
54
54
  attr_accessor :decided_tool_approvals
55
55
 
56
+ attr_accessor :response_format
57
+
58
+ # Older flag. Send `true` with `json_schema` to request JSON. Prefer `response_format`.
59
+ attr_accessor :is_json_schema_response_format
60
+
61
+ # Older schema field used with `is_json_schema_response_format`.
62
+ attr_accessor :json_schema
63
+
56
64
  class EnumAttributeValidator
57
65
  attr_reader :datatype
58
66
  attr_reader :allowable_values
@@ -90,7 +98,10 @@ module FetchHive::Generated
90
98
  :'artifact_refs' => :'artifact_refs',
91
99
  :'async' => :'async',
92
100
  :'tool_approval' => :'tool_approval',
93
- :'decided_tool_approvals' => :'decided_tool_approvals'
101
+ :'decided_tool_approvals' => :'decided_tool_approvals',
102
+ :'response_format' => :'response_format',
103
+ :'is_json_schema_response_format' => :'is_json_schema_response_format',
104
+ :'json_schema' => :'json_schema'
94
105
  }
95
106
  end
96
107
 
@@ -119,7 +130,10 @@ module FetchHive::Generated
119
130
  :'artifact_refs' => :'Array<String>',
120
131
  :'async' => :'AgentInvokeAsyncConfig',
121
132
  :'tool_approval' => :'String',
122
- :'decided_tool_approvals' => :'Array<InvokeAgentRequestDecidedToolApprovalsInner>'
133
+ :'decided_tool_approvals' => :'Array<InvokeAgentRequestDecidedToolApprovalsInner>',
134
+ :'response_format' => :'InvokeAgentRequestResponseFormat',
135
+ :'is_json_schema_response_format' => :'Boolean',
136
+ :'json_schema' => :'Hash<String, Object>'
123
137
  }
124
138
  end
125
139
 
@@ -216,6 +230,20 @@ module FetchHive::Generated
216
230
  self.decided_tool_approvals = value
217
231
  end
218
232
  end
233
+
234
+ if attributes.key?(:'response_format')
235
+ self.response_format = attributes[:'response_format']
236
+ end
237
+
238
+ if attributes.key?(:'is_json_schema_response_format')
239
+ self.is_json_schema_response_format = attributes[:'is_json_schema_response_format']
240
+ end
241
+
242
+ if attributes.key?(:'json_schema')
243
+ if (value = attributes[:'json_schema']).is_a?(Hash)
244
+ self.json_schema = value
245
+ end
246
+ end
219
247
  end
220
248
 
221
249
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -349,7 +377,10 @@ module FetchHive::Generated
349
377
  artifact_refs == o.artifact_refs &&
350
378
  async == o.async &&
351
379
  tool_approval == o.tool_approval &&
352
- decided_tool_approvals == o.decided_tool_approvals
380
+ decided_tool_approvals == o.decided_tool_approvals &&
381
+ response_format == o.response_format &&
382
+ is_json_schema_response_format == o.is_json_schema_response_format &&
383
+ json_schema == o.json_schema
353
384
  end
354
385
 
355
386
  # @see the `==` method
@@ -361,7 +392,7 @@ module FetchHive::Generated
361
392
  # Calculates hash code according to all attributes.
362
393
  # @return [Integer] Hash code
363
394
  def hash
364
- [message, agent, thread_id, streaming, user, metadata, messages, attachments, known_artifact_refs, artifact_refs, async, tool_approval, decided_tool_approvals].hash
395
+ [message, agent, thread_id, streaming, user, metadata, messages, attachments, known_artifact_refs, artifact_refs, async, tool_approval, decided_tool_approvals, response_format, is_json_schema_response_format, json_schema].hash
365
396
  end
366
397
 
367
398
  # 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
@@ -0,0 +1,191 @@
1
+ =begin
2
+ #Fetch Hive Public API
3
+
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
+
6
+ The version of the OpenAPI document: 0.5.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FetchHive::Generated
17
+ # Per-call output format. Omit it, or send `{ \"type\": \"text\" }`, for text. `{ \"type\": \"json_schema\", \"json_schema\": { \"name\", \"schema\", \"strict\" } }` returns JSON that matches the schema. The schema root must be an object and the document must be at most 100000 bytes. The schema applies to the final answer; tool calls still run. A model that does not support JSON Schema returns `422 json_schema_unsupported`. An invalid schema returns `422 json_schema_invalid`. If the answer still does not match after one repair, the call returns `422 json_schema_output_invalid`. `is_json_schema_response_format` plus `json_schema` is the older shape. `response_format` wins when both are present.
18
+ class InvokeAgentRequestResponseFormat < ApiModelBase
19
+ attr_accessor :type
20
+
21
+ attr_accessor :json_schema
22
+
23
+ class EnumAttributeValidator
24
+ attr_reader :datatype
25
+ attr_reader :allowable_values
26
+
27
+ def initialize(datatype, allowable_values)
28
+ @allowable_values = allowable_values.map do |value|
29
+ case datatype.to_s
30
+ when /Integer/i
31
+ value.to_i
32
+ when /Float/i
33
+ value.to_f
34
+ else
35
+ value
36
+ end
37
+ end
38
+ end
39
+
40
+ def valid?(value)
41
+ !value || allowable_values.include?(value)
42
+ end
43
+ end
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'type' => :'type',
49
+ :'json_schema' => :'json_schema'
50
+ }
51
+ end
52
+
53
+ # Returns attribute mapping this model knows about
54
+ def self.acceptable_attribute_map
55
+ attribute_map
56
+ end
57
+
58
+ # Returns all the JSON keys this model knows about
59
+ def self.acceptable_attributes
60
+ acceptable_attribute_map.values
61
+ end
62
+
63
+ # Attribute type mapping.
64
+ def self.openapi_types
65
+ {
66
+ :'type' => :'String',
67
+ :'json_schema' => :'InvokeAgentRequestResponseFormatJsonSchema'
68
+ }
69
+ end
70
+
71
+ # List of attributes with nullable: true
72
+ def self.openapi_nullable
73
+ Set.new([
74
+ ])
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Model attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ if (!attributes.is_a?(Hash))
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FetchHive::Generated::InvokeAgentRequestResponseFormat` initialize method"
82
+ end
83
+
84
+ # check to see if the attribute exists and convert string to symbol for hash key
85
+ acceptable_attribute_map = self.class.acceptable_attribute_map
86
+ attributes = attributes.each_with_object({}) { |(k, v), h|
87
+ if (!acceptable_attribute_map.key?(k.to_sym))
88
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FetchHive::Generated::InvokeAgentRequestResponseFormat`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
89
+ end
90
+ h[k.to_sym] = v
91
+ }
92
+
93
+ if attributes.key?(:'type')
94
+ self.type = attributes[:'type']
95
+ end
96
+
97
+ if attributes.key?(:'json_schema')
98
+ self.json_schema = attributes[:'json_schema']
99
+ end
100
+ end
101
+
102
+ # Show invalid properties with the reasons. Usually used together with valid?
103
+ # @return Array for valid properties with the reasons
104
+ def list_invalid_properties
105
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
106
+ invalid_properties = Array.new
107
+ invalid_properties
108
+ end
109
+
110
+ # Check to see if the all the properties in the model are valid
111
+ # @return true if the model is valid
112
+ def valid?
113
+ warn '[DEPRECATED] the `valid?` method is obsolete'
114
+ type_validator = EnumAttributeValidator.new('String', ["text", "json_schema"])
115
+ return false unless type_validator.valid?(@type)
116
+ true
117
+ end
118
+
119
+ # Custom attribute writer method checking allowed values (enum).
120
+ # @param [Object] type Object to be assigned
121
+ def type=(type)
122
+ validator = EnumAttributeValidator.new('String', ["text", "json_schema"])
123
+ unless validator.valid?(type)
124
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
125
+ end
126
+ @type = type
127
+ end
128
+
129
+ # Checks equality by comparing each attribute.
130
+ # @param [Object] Object to be compared
131
+ def ==(o)
132
+ return true if self.equal?(o)
133
+ self.class == o.class &&
134
+ type == o.type &&
135
+ json_schema == o.json_schema
136
+ end
137
+
138
+ # @see the `==` method
139
+ # @param [Object] Object to be compared
140
+ def eql?(o)
141
+ self == o
142
+ end
143
+
144
+ # Calculates hash code according to all attributes.
145
+ # @return [Integer] Hash code
146
+ def hash
147
+ [type, json_schema].hash
148
+ end
149
+
150
+ # Builds the object from hash
151
+ # @param [Hash] attributes Model attributes in the form of hash
152
+ # @return [Object] Returns the model itself
153
+ def self.build_from_hash(attributes)
154
+ return nil unless attributes.is_a?(Hash)
155
+ attributes = attributes.transform_keys(&:to_sym)
156
+ transformed_hash = {}
157
+ openapi_types.each_pair do |key, type|
158
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
159
+ transformed_hash["#{key}"] = nil
160
+ elsif type =~ /\AArray<(.*)>/i
161
+ # check to ensure the input is an array given that the attribute
162
+ # is documented as an array but the input is not
163
+ if attributes[attribute_map[key]].is_a?(Array)
164
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
165
+ end
166
+ elsif !attributes[attribute_map[key]].nil?
167
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
168
+ end
169
+ end
170
+ new(transformed_hash)
171
+ end
172
+
173
+ # Returns the object in the form of hash
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_hash
176
+ hash = {}
177
+ self.class.attribute_map.each_pair do |attr, param|
178
+ value = self.send(attr)
179
+ if value.nil?
180
+ is_nullable = self.class.openapi_nullable.include?(attr)
181
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
182
+ end
183
+
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ end
190
+
191
+ end