Skip to main content

Crate agentstatedeveloper_python

Crate agentstatedeveloper_python 

Source
Expand description

Python language adapter for AgentStateDeveloper.

Implements LanguageAdapter on top of tree-sitter-python. Parses module-level functions, methods, and classes, and runs a small substring-based effect inference pass.

Structs§

PythonAdapter
Python language adapter.

Functions§

report_unresolved_calls_in_python
Plan L t-006: walk a Python file’s call nodes and report any that the static resolver couldn’t bind to a workspace qname. Includes stdlib + third-party + dynamic — callers should treat the count as “static-resolution gap,” not “bug list.”
scan_dynamic_dispatch_in_python
Plan L t-005: scan Python source for call patterns the static call-graph walker can’t resolve. Returns one hint per detected site so the indexer can surface a warning. The patterns we flag are deliberately conservative — only the ones that are unambiguously dynamic dispatch: