diff --git a/src/agents/_debug.py b/src/agents/_debug.py index 963c296b80..57e7d569ea 100644 --- a/src/agents/_debug.py +++ b/src/agents/_debug.py @@ -18,11 +18,11 @@ def _load_dont_log_tool_data() -> bool: DONT_LOG_MODEL_DATA = _load_dont_log_model_data() -"""By default we don't log LLM inputs/outputs, to prevent exposing sensitive information. Set this -flag to enable logging them. +"""By default we don't log LLM inputs/outputs, to prevent exposing sensitive information. Set the +`OPENAI_AGENTS_DONT_LOG_MODEL_DATA` environment variable to `0`/`false` to enable logging them. """ DONT_LOG_TOOL_DATA = _load_dont_log_tool_data() """By default we don't log tool call inputs/outputs, to prevent exposing sensitive information. Set -this flag to enable logging them. +the `OPENAI_AGENTS_DONT_LOG_TOOL_DATA` environment variable to `0`/`false` to enable logging them. """ diff --git a/src/agents/repl.py b/src/agents/repl.py index 6b493dd56b..fc53a4238c 100644 --- a/src/agents/repl.py +++ b/src/agents/repl.py @@ -43,7 +43,7 @@ async def run_demo_loop( break if user_input.strip().lower() in {"exit", "quit"}: break - if not user_input: + if not user_input.strip(): continue input_items.append({"role": "user", "content": user_input}) diff --git a/src/agents/strict_schema.py b/src/agents/strict_schema.py index 15b4c652fd..1ddbea34de 100644 --- a/src/agents/strict_schema.py +++ b/src/agents/strict_schema.py @@ -379,7 +379,7 @@ def _ensure_strict_json_schema( resolved = resolve_ref(root=root, ref=ref) if not is_dict(resolved): raise ValueError( - f"Expected `$ref: {ref}` to resolved to a dictionary but got {resolved}" + f"Expected `$ref: {ref}` to resolve to a dictionary but got {resolved}" ) # Pop the current `$ref` first so that if the resolved schema is itself a `$ref` @@ -456,7 +456,7 @@ def _resolve_non_constraining_ref_chain( budget.spend() target = resolve_ref(root=root, ref=ref) if not is_dict(target): - raise ValueError(f"Expected `$ref: {ref}` to resolved to a dictionary but got {target}") + raise ValueError(f"Expected `$ref: {ref}` to resolve to a dictionary but got {target}") resolved = target return {**resolved, **carried_siblings}