API 输入默认由外部服务存储
原文依据:2 处示例调用没有设置 store=False,而 Skill 明确说明交互默认存储:付费层保留 55 天,免费层保留 1 天。用户提示词、文档内容或其他上下文因此可能离开本地环境并被保留。
如果输入包含源代码、个人信息、凭据或未公开业务资料,这些数据会受外部服务的数据处理和保留规则约束。
Skill 明确说明交互默认存储,并给出保留期限;快速入门示例创建交互时未关闭存储。用户运行此类代码时,发送给 Gemini 的提示词或上下文可能由外部服务保留。可要求默认使用 store=False,并说明这会禁用连续交互和后台任务。
- **Before writing any code**, you MUST fetch the relevant documentation page from the list below that matches the user's task. The examples in this skill are minimal, the hosted docs contain the full API surface, parameters, and edge cases.- Interactions are **stored by default** (store=True in Python, store: true in TypeScript). Paid tier retains for 55 days, free tier for 1 day.- Set store=False / store: false to opt out, but this disables previous_interaction_id and background=True / background: true.- `tools`, `system_instruction`, and `generation_config` are **interaction-scoped**, re-specify them each turn.查看另外 1 个位置
interaction = client.interactions.create( model="gemini-3.8-flash", input="Tell me a short joke about programming.")print(interaction.output_text)