Signed-off-by: chickeyton <ngton2014@gmail.com> Signed-off-by: Yueqian Lin <linyueqian@outlook.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Yueqian Lin <linyueqian@outlook.com>
This commit is contained in:
49 files changed
+3056
-1715
No files matched your search
@@ -121,7 +121,14 @@ class SessionEmitter:
|
||||
# ------------------------------------------------------------------ #
|
||||
|
||||
def auto_responds(self) -> bool:
|
||||
"""Whether the session answers committed input without a ``response.create``."""
|
||||
"""Whether the session answers committed input without a ``response.create``.
|
||||
|
||||
A model that takes no client commits (``supports_client_commit`` off, a
|
||||
lockstep model) can only auto-respond; for every other model the
|
||||
client opts in through ``extra_body.auto_response``.
|
||||
"""
|
||||
if not self._ctx.session.capabilities.supports_client_commit:
|
||||
return True
|
||||
extra = getattr(self._ctx.session.config, "extra_body", None)
|
||||
if not isinstance(extra, dict):
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user