MCPcopy Index your code
hub / github.com/google/adk-python / _strip_optional_quotes

Function _strip_optional_quotes

src/google/adk/cli/api_server.py:151–155  ·  view source on GitHub ↗

Strip a single pair of wrapping quotes from a header value.

(value: str)

Source from the content-addressed store, hash-verified

149
150
151def _strip_optional_quotes(value: str) -> str:
152 """Strip a single pair of wrapping quotes from a header value."""
153 if len(value) >= 2 and value[0] == '"' and value[-1] == '"':
154 return value[1:-1]
155 return value
156
157
158def _get_scope_header(

Callers 1

_get_request_originFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected