Attach repo Face speech to conversation contexts
This commit is contained in:
parent
9d6b51fc02
commit
b76f6c54a7
9 changed files with 241 additions and 16 deletions
|
|
@ -4,6 +4,7 @@ import {
|
|||
type GuildContext,
|
||||
type InteractionMemoryProfile,
|
||||
type PromptImageAttachment,
|
||||
type RepoFaceConversationFocus,
|
||||
type RetrievalResult,
|
||||
type SituationalSocialRead,
|
||||
type SourceGroundingHint,
|
||||
|
|
@ -18,6 +19,8 @@ export interface BuildContextInput {
|
|||
guildContext: GuildContext;
|
||||
recentMessages?: SourceMessage[];
|
||||
imageAttachments?: PromptImageAttachment[];
|
||||
repoFaceConversationFocus?: RepoFaceConversationFocus;
|
||||
repoFaceConversationThreads?: RepoFaceConversationFocus[];
|
||||
retrieval?: RetrievalResult[];
|
||||
interactionMemory?: InteractionMemoryProfile;
|
||||
situationalSocialRead?: SituationalSocialRead;
|
||||
|
|
@ -33,6 +36,8 @@ export class ContextBuilder {
|
|||
actor: input.actor,
|
||||
guildContext: input.guildContext,
|
||||
recentMessages: input.recentMessages ?? [],
|
||||
repoFaceConversationFocus: input.repoFaceConversationFocus,
|
||||
repoFaceConversationThreads: input.repoFaceConversationThreads,
|
||||
imageAttachments: input.imageAttachments,
|
||||
retrieval: input.retrieval ?? [],
|
||||
interactionMemory: input.interactionMemory,
|
||||
|
|
|
|||
|
|
@ -457,6 +457,8 @@ export interface ContextBundle {
|
|||
actor: Actor;
|
||||
guildContext: GuildContext;
|
||||
recentMessages: SourceMessage[];
|
||||
repoFaceConversationFocus?: RepoFaceConversationFocus;
|
||||
repoFaceConversationThreads?: RepoFaceConversationFocus[];
|
||||
imageAttachments?: PromptImageAttachment[];
|
||||
retrieval: RetrievalResult[];
|
||||
interactionMemory?: InteractionMemoryProfile;
|
||||
|
|
@ -467,6 +469,18 @@ export interface ContextBundle {
|
|||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface RepoFaceConversationFocus {
|
||||
contextId?: string;
|
||||
channelId: string;
|
||||
channelLabel?: string;
|
||||
messageId?: string;
|
||||
authorName?: string;
|
||||
timestamp?: string;
|
||||
reason: "pending_mention" | "latest_human_message" | "latest_visible_message";
|
||||
isCurrentRoom: boolean;
|
||||
hasMedia?: boolean;
|
||||
}
|
||||
|
||||
export interface JobApprovalRecord {
|
||||
stage: "run" | "post";
|
||||
status: "approved" | "rejected";
|
||||
|
|
|
|||
Loading…
Reference in a new issue