-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add GA to check circular deps (#324)
* chore: Add GA to check circular deps * fix: Resolve circular deps
- Loading branch information
1 parent
f1b2cf0
commit 6b03682
Showing
20 changed files
with
1,077 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { | ||
CurrentSceneStatus, | ||
InworldPacket as ProtoPacket, | ||
} from '../../../proto/ai/inworld/packets/packets.pb'; | ||
import { Character } from '../../entities/character.entity'; | ||
import { InworldPacket } from '../../entities/packets/inworld_packet.entity'; | ||
import { HistoryItem } from './history'; | ||
import { | ||
AudioSessionStartPacketParams, | ||
CancelResponsesProps, | ||
SendPacketParams, | ||
TriggerParameter, | ||
} from './index'; | ||
|
||
export interface Extension< | ||
InworldPacketT extends InworldPacket = InworldPacket, | ||
HistoryItemT extends HistoryItem = HistoryItem, | ||
> { | ||
convertPacketFromProto?: (proto: ProtoPacket) => InworldPacketT; | ||
beforeLoadScene?: (packets: ProtoPacket[]) => ProtoPacket[]; | ||
afterLoadScene?: (res: CurrentSceneStatus) => void; | ||
historyItem?: (packet: InworldPacketT, item: HistoryItem) => HistoryItemT; | ||
} | ||
|
||
export interface ConvesationInterface< | ||
InworldPacketT extends InworldPacket = InworldPacket, | ||
> { | ||
getConversationId(): string; | ||
getParticipants(): string[]; | ||
getCharacters(): Character[]; | ||
changeParticipants(participants: string[]): void; | ||
updateParticipants( | ||
participants: string[], | ||
): Promise<ConvesationInterface<InworldPacketT>> | void; | ||
sendText: (text: string) => Promise<InworldPacketT>; | ||
sendAudio: (chunk: string) => Promise<InworldPacketT>; | ||
sendTrigger: ( | ||
name: string, | ||
parameters?: { parameters?: TriggerParameter[]; character?: Character }, | ||
) => Promise<InworldPacketT>; | ||
sendAudioSessionStart( | ||
params?: AudioSessionStartPacketParams, | ||
): Promise<InworldPacketT>; | ||
sendAudioSessionEnd(): Promise<InworldPacketT>; | ||
sendCancelResponse( | ||
cancelResponses?: CancelResponsesProps, | ||
): Promise<InworldPacketT>; | ||
sendTTSPlaybackMute(isMuted: boolean): Promise<InworldPacketT>; | ||
sendNarratedAction(text: string): Promise<InworldPacketT>; | ||
sendCustomPacket( | ||
getPacket: (params: SendPacketParams) => ProtoPacket, | ||
): Promise<InworldPacketT>; | ||
} |
Oops, something went wrong.