Method Inside Class Python Definition Functionary Agentic State