Repository navigation
Backlog
Description
想要什么,用来做什么 / What you want and what for
想要什么,用来做什么 / What you want and what for
Exact wire schemas and WAA proof bindings extracted from current AI Studio web bundles (YUh4Se.js / m_b.js) for five MakerSuite RPCs/transports not yet wired in v0.3.17:
-
MakerSuiteService/ImprovePrompt(native backend forPOST /v1beta/voices:improvePrompt)- Currently
internal/api/voices_extra.go(handleVoiceImprove) emulates voice prompt rewriting via aGenerateContentprompt (voiceImproveInstruction). - Native RPC:
POST /$rpc/google.internal.alkali.applications.makersuite.v1.MakerSuiteService/ImprovePrompt - Request (
_.ydb):- field
1(index0):prompt(string) - field
2(index1):waaProof(string) - field
3(index2):promptTypeenum (1=PROMPT_TYPE_GENERATE_VOICE,2=PROMPT_TYPE_INTERACTIVE_VIDEO) - fields
4,5: optional booleans (interactive video) - fields
6,7: optionalreferenceImagebytes + mimeType
- field
- WAA proof binding (
_.KBh):${prompt} ${promptTypeEnumName}(e.g.${prompt} PROMPT_TYPE_GENERATE_VOICE). - Response (
zdb): field1(index0) is the rewritten prompt string (optional field2text, fields3/4image bytes + mimeType for interactive video).
- Currently
-
MakerSuiteService/GeminiSpeechToText(lightweight STT without Drive upload/delete)- Currently
internal/aistudio/transcription_service.gouploads every audio clip to Google Drive, runsGenerateContent, and deletes the Drive file (3round-trips). - Native RPC:
POST /$rpc/google.internal.alkali.applications.makersuite.v1.MakerSuiteService/GeminiSpeechToText - Request (
_.N8a):- field
1(index0):Blob([mimeType, base64Audio]) - field
2(index1):waaProof(string)
- field
- WAA proof binding (
kBf):${mimeType} ${base64Audio}(Base64 string via.getData().If(), not byte length). - Response (
_.O8a): field1(index0) is the transcribed text string.
- Currently
-
Interactions-backed Live streaming (
/v1/createInteractionBidiStream)- AI Studio's Live client (
wNc) opensPOST https://webchannel-alkalimakersuite-pa.clients6.google.com/v1/createInteractionBidiStreamwithuseFetchStreams: truefor Interactions-backed Live sessions: - Setup frame (
_.mLouter):- field
1(index0): setup (iNc:[model, systemInstruction, voiceName, tools, thinkingLevel]) - field
4(index3):waaProof— binding (FMc):[model, systemInstruction, voiceName].filter(Boolean).join(" ")
- field
- Subsequent client frames (
_.mLoneof[1,2,3,5,6,7]):- field
2(index1): mediaBlob([mimeType, base64]) - field
3(index2): text string - field
5(index4):FunctionResponse
- field
- Server frames (
nNconeof[1,2,3,4,5,6,7]):- field
1: setup complete - field
2: mediaBlob(model audio) - field
3: transcription (lNc:[text, finishedBool, kindEnum (1=input, 2=output), durationMs]) - field
4: thought text (thought: true) - field
5: status/turn complete (kNc:[rpcStatus], code0=>turnComplete+generationComplete) - field
6:FunctionCall
- field
- AI Studio's Live client (
-
Account quota & verification introspection (
GetModelQuota,ListModelRateLimits,GetUserVerificationStatus)MakerSuiteService/GetModelQuota: request[model](_.bcb), response field1repeated[metricName, limit, remaining](Cee, e.g.successful_video_generations).MakerSuiteService/ListModelRateLimits: request[projectName](_.Xfb).MakerSuiteService/GetUserVerificationStatus: request[](_.ddb), response field1enum status (edb.yb()).- Useful for surfacing real per-model remaining quota in the pool quota panel and proactively detecting accounts requiring verification (
verify-account).
-
MakerSuiteService/GenerateFunctionCallAnswer(native backend for Live Playground auto-tool-response)- Currently
web/src/playground/media/live.ts:550emulates automatic function-call responses with aGenerateContentJSON call. - Native RPC:
POST /$rpc/google.internal.alkali.applications.makersuite.v1.MakerSuiteService/GenerateFunctionCallAnswer - Request (
_.n9a): field1FunctionDeclaration(_.xn), field2FunctionCall(_.ov), field3waaProof— binding (Zoi):[decl.name, decl.description, call.name].join(" ").
- Currently
版本 / Version
v0.3.17 (5deae85)
Metadata
Metadata
Assignees
Labels
No labels
Activity