@tanstack/ai
Version:
Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.
16 lines (15 loc) • 537 B
JavaScript
import { EventType } from "../types.js";
//#region src/utilities/reasoning-encrypted-value.ts
/** Spec event that carries a provider thinking / tool-call signature blob. */
function reasoningEncryptedValue(opts) {
return {
type: EventType.REASONING_ENCRYPTED_VALUE,
subtype: opts.subtype,
entityId: opts.entityId,
encryptedValue: opts.encryptedValue,
...opts.timestamp !== void 0 ? { timestamp: opts.timestamp } : {}
};
}
//#endregion
export { reasoningEncryptedValue };
//# sourceMappingURL=reasoning-encrypted-value.js.map