MCPcopy
hub / github.com/openai/openai-agents-python / _read_schema_description

Function _read_schema_description

src/agents/agent_tool_input.py:248–254  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

246
247
248def _read_schema_description(value: Any) -> str | None:
249 if not isinstance(value, dict):
250 return None
251 description = value.get("description")
252 if isinstance(description, str) and description.strip():
253 return description
254 return None
255
256
257def _format_enum_label(values: list[Any] | None) -> str:

Calls 1

getMethod · 0.45

Tested by 1