fetch_hive 0.3.0 → 0.4.1
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/README.md +23 -2
- data/lib/fetch_hive/client.rb +30 -3
- data/lib/fetch_hive/generated/api/agent_chat_messages_api.rb +2 -2
- data/lib/fetch_hive/generated/api/agent_chats_api.rb +2 -2
- data/lib/fetch_hive/generated/api/agents_api.rb +3 -3
- data/lib/fetch_hive/generated/api/assets_api.rb +2 -2
- data/lib/fetch_hive/generated/api/hive_agents_api.rb +2 -2
- data/lib/fetch_hive/generated/api/knowledge_base_items_api.rb +2 -2
- data/lib/fetch_hive/generated/api/knowledge_bases_api.rb +2 -2
- data/lib/fetch_hive/generated/api/models_api.rb +2 -2
- data/lib/fetch_hive/generated/api/prompts_api.rb +2 -2
- data/lib/fetch_hive/generated/api/requests_api.rb +2 -2
- data/lib/fetch_hive/generated/api/search_services_api.rb +2 -2
- data/lib/fetch_hive/generated/api/tool_action_approvals_api.rb +244 -0
- data/lib/fetch_hive/generated/api/workflows_api.rb +2 -2
- data/lib/fetch_hive/generated/api_client.rb +2 -2
- data/lib/fetch_hive/generated/api_error.rb +2 -2
- data/lib/fetch_hive/generated/api_model_base.rb +2 -2
- data/lib/fetch_hive/generated/configuration.rb +2 -2
- data/lib/fetch_hive/generated/models/agent_attachment.rb +2 -2
- data/lib/fetch_hive/generated/models/agent_attachment_one_of.rb +2 -2
- data/lib/fetch_hive/generated/models/agent_delegation.rb +2 -2
- data/lib/fetch_hive/generated/models/agent_invoke_async_config.rb +2 -2
- data/lib/fetch_hive/generated/models/agent_message.rb +2 -2
- data/lib/fetch_hive/generated/models/asset_object.rb +2 -2
- data/lib/fetch_hive/generated/models/asset_object_transcription.rb +2 -2
- data/lib/fetch_hive/generated/models/async_config.rb +2 -2
- data/lib/fetch_hive/generated/models/delete_public_workspaces_agents200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/delete_public_workspaces_agents_chats200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/delete_public_workspaces_agents_chats404_response.rb +2 -2
- data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases_items200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/denied_tool_call.rb +223 -0
- data/lib/fetch_hive/generated/models/error_response.rb +2 -2
- data/lib/fetch_hive/generated/models/generated_artifact.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_models200_response_inner.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_requests200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_requests404_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response_services_inner.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response_services_inner_countries_inner.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_search_services_countries2404_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents2200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages200_response_messages_inner.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages422_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_assets200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases2200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases2422_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items200_response_knowledge_base_items_inner.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items2200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items2422_response.rb +2 -2
- data/lib/fetch_hive/generated/models/get_public_workspaces_tool_action_approvals200_response.rb +149 -0
- data/lib/fetch_hive/generated/models/get_public_workspaces_tool_action_approvals2200_response.rb +147 -0
- data/lib/fetch_hive/generated/models/hive_agent_async_config.rb +2 -2
- data/lib/fetch_hive/generated/models/hive_agent_sources.rb +2 -2
- data/lib/fetch_hive/generated/models/invoke_agent_request.rb +62 -6
- data/lib/fetch_hive/generated/models/invoke_agent_request_decided_tool_approvals_inner.rb +164 -0
- data/lib/fetch_hive/generated/models/invoke_agent_response.rb +116 -4
- data/lib/fetch_hive/generated/models/invoke_agent_response_auto_approved_tool_calls_inner.rb +190 -0
- data/lib/fetch_hive/generated/models/invoke_hive_agent_request.rb +2 -2
- data/lib/fetch_hive/generated/models/invoke_hive_agent_response.rb +2 -2
- data/lib/fetch_hive/generated/models/invoke_prompt_request.rb +2 -2
- data/lib/fetch_hive/generated/models/invoke_prompt_response.rb +2 -2
- data/lib/fetch_hive/generated/models/invoke_workflow_async_response.rb +2 -2
- data/lib/fetch_hive/generated/models/invoke_workflow_request.rb +50 -6
- data/lib/fetch_hive/generated/models/invoke_workflow_response.rb +2 -2
- data/lib/fetch_hive/generated/models/knowledge_base_object.rb +2 -2
- data/lib/fetch_hive/generated/models/list_thread_agent_delegations200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/metadata_value.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents422_response.rb +173 -0
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_clear_messages200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_request.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_request_chat.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_request.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_request_agent.rb +28 -6
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items_request.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items_request_knowledge_base_item.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_request.rb +2 -2
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_request_knowledge_base.rb +2 -2
- data/lib/fetch_hive/generated/models/pending_delegation.rb +2 -2
- data/lib/fetch_hive/generated/models/pending_tool_approval.rb +247 -0
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents422_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats200_response_chat.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats422_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats_request.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats_request_chat.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_request.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_request_agent.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_assets200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_assets422_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items422_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_regenerate200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_request.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_request_knowledge_base_item.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_request.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_request_knowledge_base.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search200_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search422_response.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search_request.rb +2 -2
- data/lib/fetch_hive/generated/models/post_public_workspaces_tool_action_approvals_decide_request.rb +188 -0
- data/lib/fetch_hive/generated/models/sse_chunk.rb +126 -4
- data/lib/fetch_hive/generated/models/sse_chunk_auto_approved_tool_calls_inner.rb +156 -0
- data/lib/fetch_hive/generated/models/token_usage.rb +2 -2
- data/lib/fetch_hive/generated/models/tool_action_approval_object.rb +701 -0
- data/lib/fetch_hive/generated/models/tool_action_approval_object_approval_votes_inner.rb +156 -0
- data/lib/fetch_hive/generated/models/tool_action_approval_object_arguments_edited_by.rb +158 -0
- data/lib/fetch_hive/generated/models/tool_action_approval_object_batch_items_inner.rb +190 -0
- data/lib/fetch_hive/generated/models/tool_action_approval_object_capabilities.rb +157 -0
- data/lib/fetch_hive/generated/models/tool_action_approval_object_decided_by_user.rb +188 -0
- data/lib/fetch_hive/generated/models/tool_action_approval_object_requested_by.rb +179 -0
- data/lib/fetch_hive/generated/models/tool_invocation.rb +2 -2
- data/lib/fetch_hive/generated/version.rb +2 -2
- metadata +19 -2
|
@@ -0,0 +1,164 @@
|
|
|
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.4.1
|
|
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
|
+
class InvokeAgentRequestDecidedToolApprovalsInner < ApiModelBase
|
|
18
|
+
attr_accessor :approval_id
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'approval_id' => :'approval_id'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'approval_id' => :'String'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FetchHive::Generated::InvokeAgentRequestDecidedToolApprovalsInner` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FetchHive::Generated::InvokeAgentRequestDecidedToolApprovalsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'approval_id')
|
|
67
|
+
self.approval_id = attributes[:'approval_id']
|
|
68
|
+
else
|
|
69
|
+
self.approval_id = nil
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
74
|
+
# @return Array for valid properties with the reasons
|
|
75
|
+
def list_invalid_properties
|
|
76
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
|
+
invalid_properties = Array.new
|
|
78
|
+
if @approval_id.nil?
|
|
79
|
+
invalid_properties.push('invalid value for "approval_id", approval_id cannot be nil.')
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
invalid_properties
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Check to see if the all the properties in the model are valid
|
|
86
|
+
# @return true if the model is valid
|
|
87
|
+
def valid?
|
|
88
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
+
return false if @approval_id.nil?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Custom attribute writer method with validation
|
|
94
|
+
# @param [Object] approval_id Value to be assigned
|
|
95
|
+
def approval_id=(approval_id)
|
|
96
|
+
if approval_id.nil?
|
|
97
|
+
fail ArgumentError, 'approval_id cannot be nil'
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
@approval_id = approval_id
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Checks equality by comparing each attribute.
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def ==(o)
|
|
106
|
+
return true if self.equal?(o)
|
|
107
|
+
self.class == o.class &&
|
|
108
|
+
approval_id == o.approval_id
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# @see the `==` method
|
|
112
|
+
# @param [Object] Object to be compared
|
|
113
|
+
def eql?(o)
|
|
114
|
+
self == o
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Calculates hash code according to all attributes.
|
|
118
|
+
# @return [Integer] Hash code
|
|
119
|
+
def hash
|
|
120
|
+
[approval_id].hash
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Builds the object from hash
|
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
125
|
+
# @return [Object] Returns the model itself
|
|
126
|
+
def self.build_from_hash(attributes)
|
|
127
|
+
return nil unless attributes.is_a?(Hash)
|
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
129
|
+
transformed_hash = {}
|
|
130
|
+
openapi_types.each_pair do |key, type|
|
|
131
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
132
|
+
transformed_hash["#{key}"] = nil
|
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
134
|
+
# check to ensure the input is an array given that the attribute
|
|
135
|
+
# is documented as an array but the input is not
|
|
136
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
137
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
138
|
+
end
|
|
139
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
140
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
new(transformed_hash)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Returns the object in the form of hash
|
|
147
|
+
# @return [Hash] Returns the object in the form of hash
|
|
148
|
+
def to_hash
|
|
149
|
+
hash = {}
|
|
150
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
151
|
+
value = self.send(attr)
|
|
152
|
+
if value.nil?
|
|
153
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
154
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
hash[param] = _to_hash(value)
|
|
158
|
+
end
|
|
159
|
+
hash
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
end
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Fetch Hive Public API
|
|
3
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> ``` ## 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`.
|
|
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.
|
|
6
|
+
The version of the OpenAPI document: 0.4.1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.22.0
|
|
@@ -22,9 +22,27 @@ module FetchHive::Generated
|
|
|
22
22
|
# The agent's final text response (non-streaming only).
|
|
23
23
|
attr_accessor :response
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
# Caller `thread_id`, or null when the invoke did not send one. (value may be null)
|
|
26
26
|
attr_accessor :thread_id
|
|
27
27
|
|
|
28
|
+
# Always present. `completed` or `awaiting_approval`. With tool approvals disabled this is `completed`.
|
|
29
|
+
attr_accessor :status
|
|
30
|
+
|
|
31
|
+
# Public request id for this run. Same value as `request_id`.
|
|
32
|
+
attr_accessor :run_id
|
|
33
|
+
|
|
34
|
+
# Present only when `status` is `awaiting_approval`.
|
|
35
|
+
attr_accessor :pending_tool_approvals
|
|
36
|
+
|
|
37
|
+
# Present only when this turn denied one or more tools.
|
|
38
|
+
attr_accessor :denied_tool_calls
|
|
39
|
+
|
|
40
|
+
# Effective mode for this call. `auto_approve` when this call sent `auto_approve` or a saved auto-approve switch applied. Otherwise `policy`.
|
|
41
|
+
attr_accessor :tool_approval
|
|
42
|
+
|
|
43
|
+
# Present when one or more actions ran because of an auto-approve override. Each item has `summary` and `tool_name`.
|
|
44
|
+
attr_accessor :auto_approved_tool_calls
|
|
45
|
+
|
|
28
46
|
# Model used for this invocation.
|
|
29
47
|
attr_accessor :model
|
|
30
48
|
|
|
@@ -39,12 +57,40 @@ module FetchHive::Generated
|
|
|
39
57
|
# Background workflows started during this turn. Present only when the turn ended with one or more pending delegations.
|
|
40
58
|
attr_accessor :pending_delegations
|
|
41
59
|
|
|
60
|
+
class EnumAttributeValidator
|
|
61
|
+
attr_reader :datatype
|
|
62
|
+
attr_reader :allowable_values
|
|
63
|
+
|
|
64
|
+
def initialize(datatype, allowable_values)
|
|
65
|
+
@allowable_values = allowable_values.map do |value|
|
|
66
|
+
case datatype.to_s
|
|
67
|
+
when /Integer/i
|
|
68
|
+
value.to_i
|
|
69
|
+
when /Float/i
|
|
70
|
+
value.to_f
|
|
71
|
+
else
|
|
72
|
+
value
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def valid?(value)
|
|
78
|
+
!value || allowable_values.include?(value)
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
42
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
83
|
def self.attribute_map
|
|
44
84
|
{
|
|
45
85
|
:'request_id' => :'request_id',
|
|
46
86
|
:'response' => :'response',
|
|
47
87
|
:'thread_id' => :'thread_id',
|
|
88
|
+
:'status' => :'status',
|
|
89
|
+
:'run_id' => :'run_id',
|
|
90
|
+
:'pending_tool_approvals' => :'pending_tool_approvals',
|
|
91
|
+
:'denied_tool_calls' => :'denied_tool_calls',
|
|
92
|
+
:'tool_approval' => :'tool_approval',
|
|
93
|
+
:'auto_approved_tool_calls' => :'auto_approved_tool_calls',
|
|
48
94
|
:'model' => :'model',
|
|
49
95
|
:'usage' => :'usage',
|
|
50
96
|
:'tool_calls' => :'tool_calls',
|
|
@@ -69,6 +115,12 @@ module FetchHive::Generated
|
|
|
69
115
|
:'request_id' => :'String',
|
|
70
116
|
:'response' => :'String',
|
|
71
117
|
:'thread_id' => :'String',
|
|
118
|
+
:'status' => :'String',
|
|
119
|
+
:'run_id' => :'String',
|
|
120
|
+
:'pending_tool_approvals' => :'Array<PendingToolApproval>',
|
|
121
|
+
:'denied_tool_calls' => :'Array<DeniedToolCall>',
|
|
122
|
+
:'tool_approval' => :'String',
|
|
123
|
+
:'auto_approved_tool_calls' => :'Array<InvokeAgentResponseAutoApprovedToolCallsInner>',
|
|
72
124
|
:'model' => :'String',
|
|
73
125
|
:'usage' => :'TokenUsage',
|
|
74
126
|
:'tool_calls' => :'Array<ToolInvocation>',
|
|
@@ -111,6 +163,36 @@ module FetchHive::Generated
|
|
|
111
163
|
self.thread_id = attributes[:'thread_id']
|
|
112
164
|
end
|
|
113
165
|
|
|
166
|
+
if attributes.key?(:'status')
|
|
167
|
+
self.status = attributes[:'status']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'run_id')
|
|
171
|
+
self.run_id = attributes[:'run_id']
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'pending_tool_approvals')
|
|
175
|
+
if (value = attributes[:'pending_tool_approvals']).is_a?(Array)
|
|
176
|
+
self.pending_tool_approvals = value
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'denied_tool_calls')
|
|
181
|
+
if (value = attributes[:'denied_tool_calls']).is_a?(Array)
|
|
182
|
+
self.denied_tool_calls = value
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'tool_approval')
|
|
187
|
+
self.tool_approval = attributes[:'tool_approval']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'auto_approved_tool_calls')
|
|
191
|
+
if (value = attributes[:'auto_approved_tool_calls']).is_a?(Array)
|
|
192
|
+
self.auto_approved_tool_calls = value
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
114
196
|
if attributes.key?(:'model')
|
|
115
197
|
self.model = attributes[:'model']
|
|
116
198
|
end
|
|
@@ -150,9 +232,33 @@ module FetchHive::Generated
|
|
|
150
232
|
# @return true if the model is valid
|
|
151
233
|
def valid?
|
|
152
234
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
235
|
+
status_validator = EnumAttributeValidator.new('String', ["completed", "awaiting_approval"])
|
|
236
|
+
return false unless status_validator.valid?(@status)
|
|
237
|
+
tool_approval_validator = EnumAttributeValidator.new('String', ["policy", "auto_approve"])
|
|
238
|
+
return false unless tool_approval_validator.valid?(@tool_approval)
|
|
153
239
|
true
|
|
154
240
|
end
|
|
155
241
|
|
|
242
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
243
|
+
# @param [Object] status Object to be assigned
|
|
244
|
+
def status=(status)
|
|
245
|
+
validator = EnumAttributeValidator.new('String', ["completed", "awaiting_approval"])
|
|
246
|
+
unless validator.valid?(status)
|
|
247
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
248
|
+
end
|
|
249
|
+
@status = status
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
253
|
+
# @param [Object] tool_approval Object to be assigned
|
|
254
|
+
def tool_approval=(tool_approval)
|
|
255
|
+
validator = EnumAttributeValidator.new('String', ["policy", "auto_approve"])
|
|
256
|
+
unless validator.valid?(tool_approval)
|
|
257
|
+
fail ArgumentError, "invalid value for \"tool_approval\", must be one of #{validator.allowable_values}."
|
|
258
|
+
end
|
|
259
|
+
@tool_approval = tool_approval
|
|
260
|
+
end
|
|
261
|
+
|
|
156
262
|
# Checks equality by comparing each attribute.
|
|
157
263
|
# @param [Object] Object to be compared
|
|
158
264
|
def ==(o)
|
|
@@ -161,6 +267,12 @@ module FetchHive::Generated
|
|
|
161
267
|
request_id == o.request_id &&
|
|
162
268
|
response == o.response &&
|
|
163
269
|
thread_id == o.thread_id &&
|
|
270
|
+
status == o.status &&
|
|
271
|
+
run_id == o.run_id &&
|
|
272
|
+
pending_tool_approvals == o.pending_tool_approvals &&
|
|
273
|
+
denied_tool_calls == o.denied_tool_calls &&
|
|
274
|
+
tool_approval == o.tool_approval &&
|
|
275
|
+
auto_approved_tool_calls == o.auto_approved_tool_calls &&
|
|
164
276
|
model == o.model &&
|
|
165
277
|
usage == o.usage &&
|
|
166
278
|
tool_calls == o.tool_calls &&
|
|
@@ -177,7 +289,7 @@ module FetchHive::Generated
|
|
|
177
289
|
# Calculates hash code according to all attributes.
|
|
178
290
|
# @return [Integer] Hash code
|
|
179
291
|
def hash
|
|
180
|
-
[request_id, response, thread_id, model, usage, tool_calls, artifacts, pending_delegations].hash
|
|
292
|
+
[request_id, response, thread_id, status, run_id, pending_tool_approvals, denied_tool_calls, tool_approval, auto_approved_tool_calls, model, usage, tool_calls, artifacts, pending_delegations].hash
|
|
181
293
|
end
|
|
182
294
|
|
|
183
295
|
# Builds the object from hash
|
|
@@ -0,0 +1,190 @@
|
|
|
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.4.1
|
|
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
|
+
class InvokeAgentResponseAutoApprovedToolCallsInner < ApiModelBase
|
|
18
|
+
attr_accessor :summary
|
|
19
|
+
|
|
20
|
+
attr_accessor :tool_name
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'summary' => :'summary',
|
|
26
|
+
:'tool_name' => :'tool_name'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns attribute mapping this model knows about
|
|
31
|
+
def self.acceptable_attribute_map
|
|
32
|
+
attribute_map
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
acceptable_attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'summary' => :'String',
|
|
44
|
+
:'tool_name' => :'String'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FetchHive::Generated::InvokeAgentResponseAutoApprovedToolCallsInner` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FetchHive::Generated::InvokeAgentResponseAutoApprovedToolCallsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'summary')
|
|
71
|
+
self.summary = attributes[:'summary']
|
|
72
|
+
else
|
|
73
|
+
self.summary = nil
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'tool_name')
|
|
77
|
+
self.tool_name = attributes[:'tool_name']
|
|
78
|
+
else
|
|
79
|
+
self.tool_name = nil
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
84
|
+
# @return Array for valid properties with the reasons
|
|
85
|
+
def list_invalid_properties
|
|
86
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
if @summary.nil?
|
|
89
|
+
invalid_properties.push('invalid value for "summary", summary cannot be nil.')
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if @tool_name.nil?
|
|
93
|
+
invalid_properties.push('invalid value for "tool_name", tool_name cannot be nil.')
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
invalid_properties
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Check to see if the all the properties in the model are valid
|
|
100
|
+
# @return true if the model is valid
|
|
101
|
+
def valid?
|
|
102
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
103
|
+
return false if @summary.nil?
|
|
104
|
+
return false if @tool_name.nil?
|
|
105
|
+
true
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Custom attribute writer method with validation
|
|
109
|
+
# @param [Object] summary Value to be assigned
|
|
110
|
+
def summary=(summary)
|
|
111
|
+
if summary.nil?
|
|
112
|
+
fail ArgumentError, 'summary cannot be nil'
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
@summary = summary
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Custom attribute writer method with validation
|
|
119
|
+
# @param [Object] tool_name Value to be assigned
|
|
120
|
+
def tool_name=(tool_name)
|
|
121
|
+
if tool_name.nil?
|
|
122
|
+
fail ArgumentError, 'tool_name cannot be nil'
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
@tool_name = tool_name
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Checks equality by comparing each attribute.
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def ==(o)
|
|
131
|
+
return true if self.equal?(o)
|
|
132
|
+
self.class == o.class &&
|
|
133
|
+
summary == o.summary &&
|
|
134
|
+
tool_name == o.tool_name
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# @see the `==` method
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def eql?(o)
|
|
140
|
+
self == o
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Calculates hash code according to all attributes.
|
|
144
|
+
# @return [Integer] Hash code
|
|
145
|
+
def hash
|
|
146
|
+
[summary, tool_name].hash
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Builds the object from hash
|
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
151
|
+
# @return [Object] Returns the model itself
|
|
152
|
+
def self.build_from_hash(attributes)
|
|
153
|
+
return nil unless attributes.is_a?(Hash)
|
|
154
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
155
|
+
transformed_hash = {}
|
|
156
|
+
openapi_types.each_pair do |key, type|
|
|
157
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
158
|
+
transformed_hash["#{key}"] = nil
|
|
159
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
160
|
+
# check to ensure the input is an array given that the attribute
|
|
161
|
+
# is documented as an array but the input is not
|
|
162
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
163
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
164
|
+
end
|
|
165
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
166
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
new(transformed_hash)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Returns the object in the form of hash
|
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
|
174
|
+
def to_hash
|
|
175
|
+
hash = {}
|
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
177
|
+
value = self.send(attr)
|
|
178
|
+
if value.nil?
|
|
179
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
180
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
hash[param] = _to_hash(value)
|
|
184
|
+
end
|
|
185
|
+
hash
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
end
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Fetch Hive Public API
|
|
3
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> ``` ## 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`.
|
|
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.
|
|
6
|
+
The version of the OpenAPI document: 0.4.1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.22.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Fetch Hive Public API
|
|
3
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> ``` ## 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`.
|
|
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.
|
|
6
|
+
The version of the OpenAPI document: 0.4.1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.22.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Fetch Hive Public API
|
|
3
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> ``` ## 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`.
|
|
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.
|
|
6
|
+
The version of the OpenAPI document: 0.4.1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.22.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Fetch Hive Public API
|
|
3
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> ``` ## 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`.
|
|
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.
|
|
6
|
+
The version of the OpenAPI document: 0.4.1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.22.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Fetch Hive Public API
|
|
3
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> ``` ## 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`.
|
|
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.
|
|
6
|
+
The version of the OpenAPI document: 0.4.1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.22.0
|