Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix visibility of chat and session in typedoc #1558

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/ai/src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
Session,
SessionStore,
runWithSession,
} from './session';
} from './session.js';

export const MAIN_THREAD = 'main';

Expand Down Expand Up @@ -242,7 +242,7 @@ export class Chat {
return this._messages ?? [];
}

async updateMessages(messages: MessageData[]): Promise<void> {
private async updateMessages(messages: MessageData[]): Promise<void> {
this._messages = messages;
await this.session.updateMessages(this.threadName, messages);
}
Expand Down
2 changes: 1 addition & 1 deletion js/ai/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { z } from '@genkit-ai/core';
import { Registry } from '@genkit-ai/core/registry';
import { v4 as uuidv4 } from 'uuid';
import { Chat, ChatOptions, MAIN_THREAD, PromptRenderOptions } from './chat';
import { Chat, ChatOptions, MAIN_THREAD, PromptRenderOptions } from './chat.js';
import {
ExecutablePrompt,
GenerateOptions,
Expand Down
7 changes: 6 additions & 1 deletion js/genkit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ export {
type ToolRequestPart,
type ToolResponsePart,
} from '@genkit-ai/ai';
export { type SessionData, type SessionStore } from '@genkit-ai/ai/session';
export { Chat } from '@genkit-ai/ai/chat';
export {
Session,
type SessionData,
type SessionStore,
} from '@genkit-ai/ai/session';
export {
FlowServer,
GENKIT_CLIENT_HEADER,
Expand Down
Loading