rdesign/frontend/node_modules/@copilotkitnext/react/dist/hooks/use-agent-context.d.mts

21 lines
791 B
TypeScript

//#region src/hooks/use-agent-context.d.ts
/**
* Represents any value that can be serialized to JSON.
*/
type JsonSerializable = string | number | boolean | null | JsonSerializable[] | {
[key: string]: JsonSerializable;
};
/**
* Context configuration for useAgentContext.
* Accepts any JSON-serializable value which will be converted to a string.
*/
interface AgentContextInput {
/** A human-readable description of what this context represents */
description: string;
/** The context value - will be converted to a JSON string if not already a string */
value: JsonSerializable;
}
declare function useAgentContext(context: AgentContextInput): void;
//#endregion
export { AgentContextInput, JsonSerializable, useAgentContext };
//# sourceMappingURL=use-agent-context.d.mts.map