Table of Contents

Event RawContentReceived

Namespace
LMKit.Agents.Tools.BuiltIn.Net
Assembly
LM-Kit.NET.dll

Occurs when raw content is received from a search provider.

This event allows interception of the raw HTML or JSON response before parsing. Useful for logging, caching, or custom processing of full page content.

public event EventHandler<WebSearchTool.RawContentEventArgs> RawContentReceived

Returns

EventHandler<WebSearchTool.RawContentEventArgs>
Occurs when raw content is received from a search provider. This event allows interception of the raw HTML or JSON response before parsing. Useful for logging, caching, or custom processing of full page content.

Examples

var webSearch = new WebSearchTool();
webSearch.RawContentReceived += (sender, e) =>
{
    Console.WriteLine($"Received {e.RawContent.Length} chars from {e.ProviderName}");
    // Process full content here
};