package wcs-lib

  1. Overview
  2. Docs

Generic bot runtime.

val user_input_default : unit -> string

interpret cred ws_id msg_req executes a complet conversation turn (including skip_user_input and calls) on the workspace id ws_id with the message request msg_req. The result is composed of the workspace id for the next conversation turn, the message response and the value of the field return in the context if it is defined.

val exec : ?before:(Wcs_t.message_request -> Wcs_t.message_request) -> ?after:(Wcs_t.message_response -> Wcs_t.message_response) -> ?user_input:(unit -> string) -> ?output:(string -> unit) -> Wcs_t.credential -> string -> Wcs_t.json -> string -> Wcs_t.json

exec cred ws_id ctx_init txt_init executes the workspace ws_id with the initial context ctx_init and the initial input text txt_init. The execution is completed when the field return is defined in the context. The return value is the value of the field return.

OCaml

Innovation. Community. Security.