2026-02-07 00:37:36 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "esp_err.h"
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
|
|
/**
|
2026-02-07 23:04:24 +08:00
|
|
|
* Initialize web search tool.
|
2026-02-07 00:37:36 +08:00
|
|
|
*/
|
|
|
|
|
esp_err_t tool_web_search_init(void);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Execute a web search.
|
|
|
|
|
*
|
|
|
|
|
* @param input_json JSON string with "query" field
|
|
|
|
|
* @param output Output buffer for formatted search results
|
|
|
|
|
* @param output_size Size of output buffer
|
|
|
|
|
* @return ESP_OK on success
|
|
|
|
|
*/
|
|
|
|
|
esp_err_t tool_web_search_execute(const char *input_json, char *output, size_t output_size);
|
|
|
|
|
|