Home / Function/ _primitive_value_to_str() — anthropic-sdk-python Function Reference

_primitive_value_to_str() — anthropic-sdk-python Function Reference

Architecture documentation for the _primitive_value_to_str() function in _qs.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  ddfa0c97_1cdb_9784_5f60_3b9a93c5e730["_primitive_value_to_str()"]
  765fcca3_81c1_6ab1_98e8_c2929e7562e2["Querystring"]
  ddfa0c97_1cdb_9784_5f60_3b9a93c5e730 -->|defined in| 765fcca3_81c1_6ab1_98e8_c2929e7562e2
  fb8d0988_171e_e6ac_7477_809943dfac39["_stringify_item()"]
  fb8d0988_171e_e6ac_7477_809943dfac39 -->|calls| ddfa0c97_1cdb_9784_5f60_3b9a93c5e730
  style ddfa0c97_1cdb_9784_5f60_3b9a93c5e730 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/_qs.py lines 121–129

    def _primitive_value_to_str(self, value: PrimitiveData) -> str:
        # copied from httpx
        if value is True:
            return "true"
        elif value is False:
            return "false"
        elif value is None:
            return ""
        return str(value)

Subdomains

Called By

Frequently Asked Questions

What does _primitive_value_to_str() do?
_primitive_value_to_str() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_qs.py.
Where is _primitive_value_to_str() defined?
_primitive_value_to_str() is defined in src/anthropic/_qs.py at line 121.
What calls _primitive_value_to_str()?
_primitive_value_to_str() is called by 1 function(s): _stringify_item.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free