1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
open Awso_nova_act
open Awso_sync
module Io = Http.Io
let eval ?endpoint_url ?cfg endpoint input =
Io.bind (Io.resolve_cfg cfg)
(fun cfg ->
let meth = Endpoints.method_of_endpoint endpoint in
let uri = Endpoints.uri_of_endpoint endpoint input in
Io.map
(Io.call ?endpoint_url ~cfg ~service:Values.service meth
(Endpoints.to_request endpoint input) uri)
(fun resp_result -> Endpoints.of_response endpoint resp_result))
let create_act ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateAct input
let create_session ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateSession input
let create_workflow_definition ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateWorkflowDefinition input
let create_workflow_run ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateWorkflowRun input
let delete_workflow_definition ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteWorkflowDefinition input
let delete_workflow_run ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteWorkflowRun input
let get_workflow_definition ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetWorkflowDefinition input
let get_workflow_run ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetWorkflowRun input
let invoke_act_step ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.InvokeActStep input
let list_acts ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListActs input
let list_models ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListModels input
let list_sessions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListSessions input
let list_workflow_definitions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListWorkflowDefinitions input
let list_workflow_runs ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListWorkflowRuns input
let update_act ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateAct input
let update_workflow_run ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateWorkflowRun input