AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.workspace_manager

PrewarmConfig

class PrewarmConfig(BaseModel)
源码Source agentscope/app/workspace_manager/_prewarm.py:36–55

预热配置,保存相关配置项。位于 agentscope.app.workspace_manager 包。

How many workspaces a manager keeps built ahead of demand. Declared in agentscope.app.workspace_manager.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
sizeint
大小字段。
Field(default=0, ge=0, description='Workspaces to keep built and idle, ready to hand to the next session that needs one. 0 disables pre-warming.')
max_creatingint
`max_creating` 字段。
Field(default=4, gt=0, description='Ceiling on builds running at once, so a burst of sessions queues instead of stampeding the provider.')

属性详情Attribute Detail

size

int = Field(default=0, ge=0, description='Workspaces to keep built and idle, ready to hand to the next session that needs one. 0 disables pre-warming.')

大小字段。声明为 int。

Workspaces to keep built and idle, ready to hand to the next session that needs one.

源码Source agentscope/app/workspace_manager/_prewarm.py:39

max_creating

int = Field(default=4, gt=0, description='Ceiling on builds running at once, so a burst of sessions queues instead of stampeding the provider.')

max_creating 字段。声明为 int。

Ceiling on builds running at once, so a burst of sessions queues instead of stampeding the provider.

源码Source agentscope/app/workspace_manager/_prewarm.py:48
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.