fix(agent): read document attachments on demand (#5122)

This commit is contained in:
chengyongru authored and GitHub committed 2026-07-28 13:33:06 +08:00
1 parent 096a86a7f4
commit 12f828ea3d
15 files changed
+323 -450

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ class ChannelsConfig(Base):
send_progress: bool = True # stream agent's text progress to the channel
send_tool_hints: bool = True # stream tool-call hints (e.g. read_file("…"))
show_reasoning: bool = True # surface model reasoning when channel implements it
extract_document_text: bool = True # extract text from document attachments before sending to the model
extract_document_text: bool = True # Deprecated and ignored; documents are read on demand
send_max_retries: int = Field(default=3, ge=0, le=10) # Max delivery attempts (initial send included)
transcription_provider: str = "groq" # Deprecated: use top-level transcription.provider
transcription_language: str | None = Field(default=None, pattern=r"^[a-z]{2,3}$") # Deprecated: use top-level transcription.language