| hal_client | R Documentation |
Creates a new HalClient instance for low-level ACP communication.
Most users should use hal_chat() instead.
hal_client(
model = NULL,
cli_path = NULL,
permission_policy = "auto-allow",
on_text = NULL,
on_tool_call = NULL,
on_thought = NULL,
quiet = FALSE
)
model |
Model identifier (e.g., |
cli_path |
Path to the Copilot CLI binary. If |
permission_policy |
How to handle tool permission requests:
|
on_text |
Callback for streaming text chunks: |
on_tool_call |
Callback for tool call events: |
on_thought |
Callback for thought chunks: |
quiet |
Logical; suppress informational messages (default |
A HalClient object.
hal_chat(), hal_available()
## Not run:
client <- hal_client()
client$start()
client$handshake()
session <- client$new_session()
client$stop()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.