Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/agents/_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
2 changes: 1 addition & 1 deletion src/agents/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
4 changes: 2 additions & 2 deletions src/agents/strict_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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}

Expand Down
Loading