@artinet/sdk
Version:
A TypeScript SDK for building collaborative AI agents.
17 lines (16 loc) • 552 B
TypeScript
/**
* Copyright 2025 The Artinet Project
* SPDX-License-Identifier: Apache-2.0
*/
import { A2A } from "../../../types/index.js";
/**
* Extracts the content of an agent response.
* @param input - The input event.
* @param legacy - Whether to use the legacy content extraction logic.
* @returns The content of the input event.
*/
export declare function extractTextContent(input: A2A.Update, legacy?: boolean): string | undefined;
/**
* @deprecated Use extractTextContent instead.
*/
export declare const getContent: typeof extractTextContent;