Skip to main content

Module server

Module server 

Source
Expand description

Server-side helpers for the gateway protocol.

This module provides helpers for the gateway server to send frames to clients.

Functions§

parse_client_frame
Parse a ClientFrame from binary WebSocket message bytes.
send_auth_challenge
Build and send an auth challenge frame.
send_auth_result
Build and send an auth result frame.
send_chunk
Build and send a chunk frame.
send_error
Build and send an error frame.
send_frame
Send a ServerFrame as a binary WebSocket message. Works with any sink that accepts Binary messages.
send_hello
Build and send a hello frame.
send_info
Build and send an info frame.
send_reload_result
Build and send a reload_result frame.
send_response_done
Build and send a response done frame.
send_secrets_delete_credential_result
Build and send a secrets_delete_credential_result frame.
send_secrets_delete_result
Build and send a secrets_delete_result frame.
send_secrets_get_result
Build and send a secrets_get_result frame.
send_secrets_has_totp_result
Build and send a secrets_has_totp_result frame.
send_secrets_list_result
Build and send a secrets_list_result frame.
send_secrets_peek_result
Build and send a secrets_peek_result frame.
send_secrets_remove_totp_result
Build and send a secrets_remove_totp_result frame.
send_secrets_set_disabled_result
Build and send a secrets_set_disabled_result frame.
send_secrets_set_policy_result
Build and send a secrets_set_policy_result frame.
send_secrets_setup_totp_result
Build and send a secrets_setup_totp_result frame.
send_secrets_store_result
Build and send a secrets_store_result frame.
send_secrets_verify_totp_result
Build and send a secrets_verify_totp_result frame.
send_status
Build and send a status frame.
send_stream_start
Build and send a stream start frame.
send_tasks_update
Build and send a tasks update frame.
send_tool_approval_request
Build and send a tool approval request frame.
send_tool_call
Build and send a tool call frame.
send_tool_result
Build and send a tool result frame.
send_user_prompt_request
Build and send a user-prompt request frame (for the ask_user tool).
send_vault_unlocked
Build and send a vault_unlocked frame.