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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
open Awso_bedrock_agent_runtime
open Awso_async
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_invocation ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateInvocation input
let create_session ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateSession input
let delete_agent_memory ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteAgentMemory input
let delete_session ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteSession input
let end_session ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.EndSession input
let generate_query ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GenerateQuery input
let get_agent_memory ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetAgentMemory input
let get_execution_flow_snapshot ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetExecutionFlowSnapshot input
let get_flow_execution ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetFlowExecution input
let get_invocation_step ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetInvocationStep input
let get_session ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetSession input
let invoke_agent ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.InvokeAgent input
let invoke_flow ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.InvokeFlow input
let invoke_inline_agent ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.InvokeInlineAgent input
let list_flow_execution_events ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListFlowExecutionEvents input
let list_flow_executions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListFlowExecutions input
let list_invocation_steps ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListInvocationSteps input
let list_invocations ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListInvocations input
let list_sessions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListSessions input
let list_tags_for_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListTagsForResource input
let optimize_prompt ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.OptimizePrompt input
let put_invocation_step ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.PutInvocationStep input
let rerank ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.Rerank input
let retrieve ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.Retrieve input
let retrieve_and_generate ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RetrieveAndGenerate input
let retrieve_and_generate_stream ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RetrieveAndGenerateStream input
let start_flow_execution ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StartFlowExecution input
let stop_flow_execution ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StopFlowExecution input
let tag_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.TagResource input
let untag_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UntagResource input
let update_session ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateSession input