/*
 * SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
 *
 * SPDX-License-Identifier: Apache-2.0
 */
#pragma once

#include <stdbool.h>

#include "llm/claw_llm_types.h"

esp_err_t claw_llm_http_post_json(const claw_llm_http_json_request_t *request,
                                  claw_llm_http_response_t *out_response,
                                  char **out_error_message);
void claw_llm_http_response_free(claw_llm_http_response_t *response);

void claw_llm_http_arm_abort(volatile bool *flag);
void claw_llm_http_disarm_abort(void);
