mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 02:28:30 +08:00
Signed-off-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: 盐粒 Yanli <mail@yanli.one> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: zyssyz123 <916125788@qq.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: 盐粒 Yanli <yanli@dify.ai> Co-authored-by: 林玮 (Jade Lin) <linw1995@icloud.com>
42 lines
1.3 KiB
Python
42 lines
1.3 KiB
Python
from pydantic import Field, NonNegativeFloat
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class AgentBackendConfig(BaseSettings):
|
|
"""
|
|
Configuration settings for the Agent backend runtime integration.
|
|
"""
|
|
|
|
AGENT_BACKEND_BASE_URL: str | None = Field(
|
|
description="Base URL for the Dify Agent backend service.",
|
|
default=None,
|
|
)
|
|
|
|
AGENT_BACKEND_USE_FAKE: bool = Field(
|
|
description="Use the deterministic in-process fake Agent backend client.",
|
|
default=False,
|
|
)
|
|
|
|
AGENT_BACKEND_FAKE_SCENARIO: str = Field(
|
|
description="Scenario used by the fake Agent backend client.",
|
|
default="success",
|
|
)
|
|
|
|
AGENT_SHELL_ENABLED: bool = Field(
|
|
description=(
|
|
"Inject the dify.shell layer (sandboxed bash workspace) into Agent runs. "
|
|
"Requires the agent backend to be wired with a shellctl entrypoint; keep it "
|
|
"off until shellctl is deployed, otherwise every agent run that includes the "
|
|
"shell layer will fail."
|
|
),
|
|
default=False,
|
|
)
|
|
|
|
AGENT_APP_TEXT_DELTA_DEBOUNCE_SECONDS: NonNegativeFloat = Field(
|
|
description=(
|
|
"Buffer Agent App assistant text deltas for up to this many seconds before "
|
|
"publishing SSE chunks. Set to 0 to publish each delta immediately."
|
|
),
|
|
default=0.5,
|
|
)
|