Cuerdo. Arazzo. Context
(cuerdo v0.1.0)
Copy Markdown
Internal Arazzo Context. Stores workflows and steps inputs/outputs, request/response, etc.
Summary
Functions
Fetch a source description by name. Returns {:ok, source_description, updated_context}
on success, or an error tuple
Returns the source description name for a given operation path or id
Creates a new context
Same as new/2 but raises on error
Puts a map of %{input_name => value} in the worfklow_id inputs. Returns
the updated context
Sets the source description value to the given schema. Returns the updated context
Returns the outputs map for the given stepId, or an empty map if the step does not define any outputs
Returns the request and response structs for the given stepId
Returns the outputs map for the given workflowId.
Types
Functions
@spec fetch_source_description(t(), binary()) :: {:ok, map(), t()} | {:error, Exception.t()}
Fetch a source description by name. Returns {:ok, source_description, updated_context}
on success, or an error tuple
Returns the source description name for a given operation path or id
@spec new(map(), module()) :: {:ok, t()} | {:error, Exception.t()}
Creates a new context
Same as new/2 but raises on error
Puts a map of %{input_name => value} in the worfklow_id inputs. Returns
the updated context
Sets the source description value to the given schema. Returns the updated context
Returns the outputs map for the given stepId, or an empty map if the step does not define any outputs
@spec step_request_response(t(), String.t(), String.t()) :: %{request: Req.Request.t(), response: Req.Response.t()} | nil
Returns the request and response structs for the given stepId
Returns the outputs map for the given workflowId.