Spaces:
Sleeping
Sleeping
Download runtime-dist/runtime/runtimeClient.d.ts from kenken999/gemikenwork: direct link, hf CLI and curl.
- Browser
- Download file 3.05 kB
-
https://huggingface.co/spaces/kenken999/gemikenwork/resolve/main/runtime-dist/runtime/runtimeClient.d.ts
- Command line
-
hf download hf://spaces/kenken999/gemikenwork/runtime-dist/runtime/runtimeClient.d.ts
-
curl -L -o runtimeClient.d.ts https://huggingface.co/spaces/kenken999/gemikenwork/resolve/main/runtime-dist/runtime/runtimeClient.d.ts
3.05 kB
| import type { JsonValue, SessionSummary, WorldAction, WorldObservation } from "../types.js"; | |
| import type { HutterLectureSpeakInput, HutterLectureStartInput, HutterLectureState, HutterMessage, HutterMessageInput, HutterResult, HutterResultInput, HutterState } from "../hutter/hutterRuntime.js"; | |
| export type SessionDetails = { | |
| session: SessionSummary; | |
| recentObservations: WorldObservation[]; | |
| }; | |
| export type BridgeUrlOptions = { | |
| sessionId: string; | |
| iframeApiUrl?: string; | |
| }; | |
| export type RuntimeClient = { | |
| listSessions(): Promise<SessionSummary[]>; | |
| getSession(sessionId: string): Promise<SessionDetails>; | |
| enqueueAction(sessionId: string, action: WorldAction): Promise<unknown>; | |
| say(sessionId: string, text: string, options?: { | |
| channel?: "local" | "bubble"; | |
| voice?: boolean; | |
| }): Promise<unknown>; | |
| speak(sessionId: string, text: string): Promise<unknown>; | |
| sendAgentMessage(targetSessionId: string, fromSessionId: string, message: string, data?: JsonValue): Promise<unknown>; | |
| createBridgeUrl(options: BridgeUrlOptions): Promise<string>; | |
| getHutterState(): Promise<HutterState>; | |
| getHutterEntity(entityId: string): Promise<unknown>; | |
| submitHutterResult(input: HutterResultInput): Promise<HutterResult>; | |
| postHutterMessage(input: HutterMessageInput): Promise<HutterMessage>; | |
| getHutterLecture(): Promise<HutterLectureState>; | |
| startHutterLecture(input: HutterLectureStartInput): Promise<HutterLectureState>; | |
| nextHutterLectureSlide(): Promise<HutterLectureState>; | |
| stopHutterLecture(): Promise<HutterLectureState>; | |
| addHutterLectureTranscript(input: HutterLectureSpeakInput): Promise<HutterLectureState>; | |
| }; | |
| export declare class HttpRuntimeClient implements RuntimeClient { | |
| private readonly baseUrl; | |
| private readonly controlToken; | |
| constructor(baseUrl?: string); | |
| listSessions(): Promise<SessionSummary[]>; | |
| getSession(sessionId: string): Promise<SessionDetails>; | |
| enqueueAction(sessionId: string, action: WorldAction): Promise<unknown>; | |
| say(sessionId: string, text: string, options?: { | |
| channel?: "local" | "bubble"; | |
| voice?: boolean; | |
| }): Promise<unknown>; | |
| speak(sessionId: string, text: string): Promise<unknown>; | |
| sendAgentMessage(targetSessionId: string, fromSessionId: string, message: string, data?: JsonValue): Promise<unknown>; | |
| createBridgeUrl(options: BridgeUrlOptions): Promise<string>; | |
| getHutterState(): Promise<HutterState>; | |
| getHutterEntity(entityId: string): Promise<unknown>; | |
| submitHutterResult(input: HutterResultInput): Promise<HutterResult>; | |
| postHutterMessage(input: HutterMessageInput): Promise<HutterMessage>; | |
| getHutterLecture(): Promise<HutterLectureState>; | |
| startHutterLecture(input: HutterLectureStartInput): Promise<HutterLectureState>; | |
| nextHutterLectureSlide(): Promise<HutterLectureState>; | |
| stopHutterLecture(): Promise<HutterLectureState>; | |
| addHutterLectureTranscript(input: HutterLectureSpeakInput): Promise<HutterLectureState>; | |
| private request; | |
| } | |