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.
- checksums.yaml +4 -4
- data/README.md +41 -2
- data/lib/fetch_hive/client.rb +66 -3
- data/lib/fetch_hive/generated/api/agent_chat_messages_api.rb +1 -1
- data/lib/fetch_hive/generated/api/agent_chats_api.rb +1 -1
- data/lib/fetch_hive/generated/api/agents_api.rb +1 -1
- data/lib/fetch_hive/generated/api/assets_api.rb +1 -1
- data/lib/fetch_hive/generated/api/hive_agents_api.rb +1 -1
- data/lib/fetch_hive/generated/api/knowledge_base_items_api.rb +1 -1
- data/lib/fetch_hive/generated/api/knowledge_bases_api.rb +1 -1
- data/lib/fetch_hive/generated/api/models_api.rb +1 -1
- data/lib/fetch_hive/generated/api/prompts_api.rb +1 -1
- data/lib/fetch_hive/generated/api/requests_api.rb +1 -1
- data/lib/fetch_hive/generated/api/search_services_api.rb +1 -1
- data/lib/fetch_hive/generated/api/tool_action_approvals_api.rb +1 -1
- data/lib/fetch_hive/generated/api/workflows_api.rb +1 -1
- data/lib/fetch_hive/generated/api_client.rb +1 -1
- data/lib/fetch_hive/generated/api_error.rb +1 -1
- data/lib/fetch_hive/generated/api_model_base.rb +1 -1
- data/lib/fetch_hive/generated/configuration.rb +1 -1
- data/lib/fetch_hive/generated/models/agent_attachment.rb +1 -1
- data/lib/fetch_hive/generated/models/agent_attachment_one_of.rb +1 -1
- data/lib/fetch_hive/generated/models/agent_delegation.rb +1 -1
- data/lib/fetch_hive/generated/models/agent_invoke_async_config.rb +1 -1
- data/lib/fetch_hive/generated/models/agent_message.rb +1 -1
- data/lib/fetch_hive/generated/models/asset_object.rb +1 -1
- data/lib/fetch_hive/generated/models/asset_object_transcription.rb +1 -1
- data/lib/fetch_hive/generated/models/async_config.rb +1 -1
- data/lib/fetch_hive/generated/models/delete_public_workspaces_agents200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/delete_public_workspaces_agents_chats200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/delete_public_workspaces_agents_chats404_response.rb +1 -1
- data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases_items200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/denied_tool_call.rb +1 -1
- data/lib/fetch_hive/generated/models/error_response.rb +1 -1
- data/lib/fetch_hive/generated/models/generated_artifact.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_models200_response_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_requests200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_requests404_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response_services_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response_services_inner_countries_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_search_services_countries2404_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents2200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages200_response_messages_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages422_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_assets200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases2200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases2422_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items200_response_knowledge_base_items_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items2200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items2422_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_tool_action_approvals200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/get_public_workspaces_tool_action_approvals2200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/hive_agent_async_config.rb +1 -1
- data/lib/fetch_hive/generated/models/hive_agent_sources.rb +1 -1
- data/lib/fetch_hive/generated/models/invoke_agent_request.rb +36 -5
- data/lib/fetch_hive/generated/models/invoke_agent_request_decided_tool_approvals_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/invoke_agent_request_response_format.rb +191 -0
- data/lib/fetch_hive/generated/models/invoke_agent_request_response_format_json_schema.rb +167 -0
- data/lib/fetch_hive/generated/models/invoke_agent_response.rb +15 -3
- data/lib/fetch_hive/generated/models/invoke_agent_response_auto_approved_tool_calls_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/invoke_hive_agent_request.rb +1 -1
- data/lib/fetch_hive/generated/models/invoke_hive_agent_response.rb +1 -1
- data/lib/fetch_hive/generated/models/invoke_prompt_request.rb +1 -1
- data/lib/fetch_hive/generated/models/invoke_prompt_response.rb +1 -1
- data/lib/fetch_hive/generated/models/invoke_workflow_async_response.rb +1 -1
- data/lib/fetch_hive/generated/models/invoke_workflow_request.rb +1 -1
- data/lib/fetch_hive/generated/models/invoke_workflow_response.rb +1 -1
- data/lib/fetch_hive/generated/models/knowledge_base_object.rb +1 -1
- data/lib/fetch_hive/generated/models/list_thread_agent_delegations200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/metadata_value.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents422_response.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_clear_messages200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_request.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_request_chat.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_request.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_request_agent.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items_request.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items_request_knowledge_base_item.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_request.rb +1 -1
- data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_request_knowledge_base.rb +1 -1
- data/lib/fetch_hive/generated/models/pending_delegation.rb +1 -1
- data/lib/fetch_hive/generated/models/pending_tool_approval.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents422_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats200_response_chat.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats422_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats_request.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats_request_chat.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_request.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_agents_request_agent.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_assets200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_assets422_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items422_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_regenerate200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_request.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_request_knowledge_base_item.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_request.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_request_knowledge_base.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search200_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search422_response.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search_request.rb +1 -1
- data/lib/fetch_hive/generated/models/post_public_workspaces_tool_action_approvals_decide_request.rb +1 -1
- data/lib/fetch_hive/generated/models/sse_chunk.rb +15 -3
- data/lib/fetch_hive/generated/models/sse_chunk_auto_approved_tool_calls_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/token_usage.rb +1 -1
- data/lib/fetch_hive/generated/models/tool_action_approval_object.rb +1 -1
- data/lib/fetch_hive/generated/models/tool_action_approval_object_approval_votes_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/tool_action_approval_object_arguments_edited_by.rb +1 -1
- data/lib/fetch_hive/generated/models/tool_action_approval_object_batch_items_inner.rb +1 -1
- data/lib/fetch_hive/generated/models/tool_action_approval_object_capabilities.rb +1 -1
- data/lib/fetch_hive/generated/models/tool_action_approval_object_decided_by_user.rb +1 -1
- data/lib/fetch_hive/generated/models/tool_action_approval_object_requested_by.rb +1 -1
- data/lib/fetch_hive/generated/models/tool_invocation.rb +1 -1
- data/lib/fetch_hive/generated/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d78f0a534079b8b5db4f8d09aa34fb70531367ffc5e77ccc54fd839e9b836e6e
|
|
4
|
+
data.tar.gz: 87cabf9ff27d058b251fddfd4aea168ada1ecad3b9e7dd60b3a9aac9b53afa4d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83e2df49f2d894b8227832f76905891edbcc44d304de11b5a01f4dc3669c2b587f14a5101a5eec42c8823cdbc8d9d9668c2985f5b3c0c5c0fbf0ab668eefc4df
|
|
7
|
+
data.tar.gz: 8147af8863f553f33ce840eb40beaf060670a04fd05f8dd58777f7e59aaeac188999c1282e984a7d1d6681f001ab8c420d7b3a5fd6c1ea7a9d1f4e0d7a135c1b
|
data/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Official Ruby SDK for [Fetch Hive](https://fetchhive.com) — invoke AI prompts,
|
|
|
9
9
|
Add to your `Gemfile`:
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
gem "fetch_hive", "~> 0.
|
|
12
|
+
gem "fetch_hive", "~> 0.5.0"
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Then run:
|
|
@@ -79,6 +79,24 @@ run = client.invoke_workflow(
|
|
|
79
79
|
puts "Queued: #{run['run_id']}"
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
+
## Run a pipeline
|
|
83
|
+
|
|
84
|
+
A pipeline runs several workflows in a row and can stop at checkpoints for a person, so a run is always asynchronous: the call returns at once and the result is sent to your callback URL.
|
|
85
|
+
|
|
86
|
+
```ruby
|
|
87
|
+
run = client.invoke_pipeline(
|
|
88
|
+
deployment: "seo-article",
|
|
89
|
+
variant: "production",
|
|
90
|
+
inputs: { keyword: "running shoes" },
|
|
91
|
+
callback_url: "https://example.com/hooks/pipeline"
|
|
92
|
+
)["pipeline_run"]
|
|
93
|
+
|
|
94
|
+
status = client.get_pipeline_run(run_id: run["id"])
|
|
95
|
+
# At a checkpoint: read what it asks, then send the person's answer.
|
|
96
|
+
checkpoint = client.get_pipeline_checkpoint(run_id: run["id"])
|
|
97
|
+
client.answer_pipeline_checkpoint(run_id: run["id"], answer: { approved: true })
|
|
98
|
+
```
|
|
99
|
+
|
|
82
100
|
## Invoke an agent
|
|
83
101
|
|
|
84
102
|
```ruby
|
|
@@ -110,6 +128,27 @@ client.invoke_agent_stream(
|
|
|
110
128
|
end
|
|
111
129
|
```
|
|
112
130
|
|
|
131
|
+
## Tool approvals
|
|
132
|
+
|
|
133
|
+
`tool_approval` is optional on `invoke_agent`, `invoke_agent_stream`, and `invoke_workflow`. Omit it, or pass `"policy"`, to follow saved rules. `"auto_approve"` applies to this call only, and only when the API key is allowed to auto-approve actions.
|
|
134
|
+
|
|
135
|
+
When a response has `status` `"awaiting_approval"`, decide with the API key. The run resumes on the server. Do not send `decided_tool_approvals`.
|
|
136
|
+
|
|
137
|
+
```ruby
|
|
138
|
+
client.decide_tool_action_approval(workspace_id: "WORKSPACE_ID", id: "APPROVAL_ID", decision: "allow_once")
|
|
139
|
+
|
|
140
|
+
pending = client.list_tool_action_approvals(workspace_id: "WORKSPACE_ID", status: "pending")
|
|
141
|
+
one = client.get_tool_action_approval(workspace_id: "WORKSPACE_ID", id: "APPROVAL_ID")
|
|
142
|
+
|
|
143
|
+
reply = client.invoke_agent(
|
|
144
|
+
agent: "my-agent",
|
|
145
|
+
message: "Send the follow-up",
|
|
146
|
+
tool_approval: "auto_approve"
|
|
147
|
+
)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
`decision` is `"allow_once"` or `"deny"`. `always_allow` is only available in the dashboard.
|
|
151
|
+
|
|
113
152
|
## Multimodal (image) inputs
|
|
114
153
|
|
|
115
154
|
```ruby
|
|
@@ -149,7 +188,7 @@ client = FetchHive::Client.new # picks up FETCH_HIVE_API_KEY automatically
|
|
|
149
188
|
|
|
150
189
|
## Version
|
|
151
190
|
|
|
152
|
-
0.
|
|
191
|
+
0.5.0
|
|
153
192
|
|
|
154
193
|
## License
|
|
155
194
|
|
data/lib/fetch_hive/client.rb
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require "faraday"
|
|
4
4
|
require "json"
|
|
5
|
+
require "uri"
|
|
5
6
|
require_relative "streaming"
|
|
6
7
|
|
|
7
8
|
module FetchHive
|
|
@@ -65,12 +66,13 @@ module FetchHive
|
|
|
65
66
|
# ── Workflow ────────────────────────────────────────────────────────────────
|
|
66
67
|
|
|
67
68
|
# Invoke a workflow deployment (sync or async).
|
|
68
|
-
def invoke_workflow(deployment:, variant: nil, inputs: nil, async_mode: false, callback_url: nil, user: nil, metadata: nil)
|
|
69
|
+
def invoke_workflow(deployment:, variant: nil, inputs: nil, async_mode: false, callback_url: nil, user: nil, metadata: nil, tool_approval: nil)
|
|
69
70
|
body = { deployment: deployment }
|
|
70
71
|
body[:variant] = variant if variant
|
|
71
72
|
body[:inputs] = inputs if inputs
|
|
72
73
|
body[:user] = user if user
|
|
73
74
|
body[:metadata] = metadata if metadata
|
|
75
|
+
body[:tool_approval] = tool_approval if tool_approval
|
|
74
76
|
if async_mode
|
|
75
77
|
body[:async] = { enabled: true }
|
|
76
78
|
body[:async][:callback_url] = callback_url if callback_url
|
|
@@ -78,10 +80,46 @@ module FetchHive
|
|
|
78
80
|
post("/workflow/invoke", body)
|
|
79
81
|
end
|
|
80
82
|
|
|
83
|
+
# ── Pipeline ────────────────────────────────────────────────────────────────
|
|
84
|
+
|
|
85
|
+
# Starts a pipeline run. Always asynchronous: the result goes to callback_url. Name a deployment (and optionally
|
|
86
|
+
# a variant), or a pipeline id to run its default variant. Returns { "pipeline_run" => {...} }.
|
|
87
|
+
def invoke_pipeline(callback_url:, deployment: nil, variant: nil, pipeline: nil, inputs: nil, max_spend_usd: nil)
|
|
88
|
+
body = {}
|
|
89
|
+
body[:deployment] = deployment if deployment
|
|
90
|
+
body[:variant] = variant if variant
|
|
91
|
+
body[:pipeline] = pipeline if pipeline
|
|
92
|
+
body[:inputs] = inputs if inputs
|
|
93
|
+
body[:max_spend_usd] = max_spend_usd if max_spend_usd
|
|
94
|
+
body[:async] = { enabled: true, callback_url: callback_url }
|
|
95
|
+
post("/pipeline/invoke", body)
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def get_pipeline_run(run_id:)
|
|
99
|
+
request("GET", "/pipeline/runs/#{run_id}")
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# What the run is waiting for at a checkpoint, and the answer shape to send.
|
|
103
|
+
def get_pipeline_checkpoint(run_id:)
|
|
104
|
+
request("GET", "/pipeline/runs/#{run_id}/checkpoint")
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# request_id is the id of the checkpoint you were answering, so a late retry never lands on a later one.
|
|
108
|
+
def answer_pipeline_checkpoint(run_id:, answer:, request_id: nil, node_key: nil)
|
|
109
|
+
body = { answer: answer }
|
|
110
|
+
body[:request_id] = request_id if request_id
|
|
111
|
+
body[:node_key] = node_key if node_key
|
|
112
|
+
post("/pipeline/runs/#{run_id}/checkpoint/answer", body)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def cancel_pipeline_run(run_id:)
|
|
116
|
+
post("/pipeline/runs/#{run_id}/cancel", {})
|
|
117
|
+
end
|
|
118
|
+
|
|
81
119
|
# ── Agent ───────────────────────────────────────────────────────────────────
|
|
82
120
|
|
|
83
121
|
# Send a message to an agent and return the full response hash.
|
|
84
|
-
def invoke_agent(agent:, message:, thread_id: nil, user: nil, metadata: nil, messages: nil, image_urls: nil, attachments: nil, known_artifact_refs: nil, artifact_refs: nil, async: nil)
|
|
122
|
+
def invoke_agent(agent:, message:, thread_id: nil, user: nil, metadata: nil, messages: nil, image_urls: nil, attachments: nil, known_artifact_refs: nil, artifact_refs: nil, async: nil, tool_approval: nil)
|
|
85
123
|
body = { agent: agent, message: message, streaming: false }
|
|
86
124
|
body[:thread_id] = thread_id if thread_id
|
|
87
125
|
body[:user] = user if user
|
|
@@ -90,13 +128,14 @@ module FetchHive
|
|
|
90
128
|
body[:attachments] = attachments || image_urls if attachments || image_urls
|
|
91
129
|
body[:known_artifact_refs] = known_artifact_refs if known_artifact_refs
|
|
92
130
|
body[:artifact_refs] = artifact_refs if artifact_refs
|
|
131
|
+
body[:tool_approval] = tool_approval if tool_approval
|
|
93
132
|
body[:async] = async if async
|
|
94
133
|
post("/agent/invoke", body)
|
|
95
134
|
end
|
|
96
135
|
|
|
97
136
|
# Send a message to an agent and stream SSE events.
|
|
98
137
|
# Yields each parsed event hash. Returns an Enumerator when no block given.
|
|
99
|
-
def invoke_agent_stream(agent:, message:, thread_id: nil, user: nil, metadata: nil, messages: nil, image_urls: nil, attachments: nil, known_artifact_refs: nil, artifact_refs: nil, &block)
|
|
138
|
+
def invoke_agent_stream(agent:, message:, thread_id: nil, user: nil, metadata: nil, messages: nil, image_urls: nil, attachments: nil, known_artifact_refs: nil, artifact_refs: nil, tool_approval: nil, &block)
|
|
100
139
|
body = { agent: agent, message: message, streaming: true }
|
|
101
140
|
body[:thread_id] = thread_id if thread_id
|
|
102
141
|
body[:user] = user if user
|
|
@@ -105,6 +144,7 @@ module FetchHive
|
|
|
105
144
|
body[:attachments] = attachments || image_urls if attachments || image_urls
|
|
106
145
|
body[:known_artifact_refs] = known_artifact_refs if known_artifact_refs
|
|
107
146
|
body[:artifact_refs] = artifact_refs if artifact_refs
|
|
147
|
+
body[:tool_approval] = tool_approval if tool_approval
|
|
108
148
|
post_stream("/agent/invoke", body, &block)
|
|
109
149
|
end
|
|
110
150
|
|
|
@@ -144,6 +184,29 @@ module FetchHive
|
|
|
144
184
|
request("GET", "/agent/threads/#{thread_id}/delegations")
|
|
145
185
|
end
|
|
146
186
|
|
|
187
|
+
# List tool-action approvals. The server defaults status to pending.
|
|
188
|
+
def list_tool_action_approvals(workspace_id:, status: nil, agent_id: nil, run_id: nil, request_id: nil, cursor: nil, limit: nil)
|
|
189
|
+
pairs = []
|
|
190
|
+
pairs << ["status", status] if status
|
|
191
|
+
pairs << ["agent_id", agent_id] if agent_id
|
|
192
|
+
pairs << ["run_id", run_id] if run_id
|
|
193
|
+
pairs << ["request_id", request_id] if request_id
|
|
194
|
+
pairs << ["cursor", cursor] if cursor
|
|
195
|
+
pairs << ["limit", limit] unless limit.nil?
|
|
196
|
+
path = "/public/workspaces/#{workspace_id}/tool_action_approvals"
|
|
197
|
+
path = "#{path}?#{URI.encode_www_form(pairs)}" unless pairs.empty?
|
|
198
|
+
request("GET", path)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
def get_tool_action_approval(workspace_id:, id:)
|
|
202
|
+
request("GET", "/public/workspaces/#{workspace_id}/tool_action_approvals/#{id}")
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# decision is "allow_once" or "deny". An API-key run resumes on the server.
|
|
206
|
+
def decide_tool_action_approval(workspace_id:, id:, decision:)
|
|
207
|
+
post("/public/workspaces/#{workspace_id}/tool_action_approvals/#{id}/decide", { decision: decision })
|
|
208
|
+
end
|
|
209
|
+
|
|
147
210
|
def list_knowledge_bases(workspace_id:)
|
|
148
211
|
request("GET", "/public/workspaces/#{workspace_id}/knowledge_bases")
|
|
149
212
|
end
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases200_response.rb
CHANGED
|
@@ -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.
|
|
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
|
data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases_items200_response.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|