MCPcopy Create free account
hub / github.com/LeapLabTHU/Agent-Attention / isinstance_str

Function isinstance_str

agentsd/utils.py:4–16  ·  view source on GitHub ↗

Checks whether x has any class *named* cls_name in its ancestry. Doesn't require access to the class's implementation. Useful for patching!

(x: object, cls_name: str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

apply_patchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected